xfangfang / Macast

Macast is a cross-platform application which using mpv as DLNA Media Renderer.

Home Page:https://xfangfang.github.io/Macast/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] SSDP Can't start

ogry opened this issue · comments

commented

Versions

  • System: Debian
  • System version: 10 Buster
  • Processor architecture: X64
  • APP version: 1.8

Bug recurrence

Starting gui from menu (Objetos perdidos)

Additional information

Download .deb from Releases GitHub Repo
Installed with Discover

Log

[16/Mar/2022:02:20:06] ENGINE Listening for SIGTERM.
[16/Mar/2022:02:20:06] ENGINE Listening for SIGHUP.
[16/Mar/2022:02:20:06] ENGINE Listening for SIGUSR1.
[16/Mar/2022:02:20:07] ENGINE Bus STARTING
[16/Mar/2022:02:20:07] ENGINE Serving on http://0.0.0.0:36191
[16/Mar/2022:02:20:07] ENGINE Started monitor thread 'SSDP_NOTIFY_THREAD'.
[16/Mar/2022:02:20:07] ENGINE Started monitor thread 'Autoreloader'.
[16/Mar/2022:02:20:07] ENGINE Bus STARTED
[16/Mar/2022:02:20:07] ENGINE Bus STOPPING
[16/Mar/2022:02:20:08] ENGINE HTTP Server cherrypy._cpnative_server.CPHTTPServer(('0.0.0.0', 36191)) shut down
[16/Mar/2022:02:20:08] ENGINE Stopped thread 'Autoreloader'.
[16/Mar/2022:02:20:08] ENGINE Stopped thread 'SSDP_NOTIFY_THREAD'.
[16/Mar/2022:02:20:08] ENGINE Bus STOPPED
[16/Mar/2022:02:20:08] ENGINE Bus EXITING
[16/Mar/2022:02:20:08] ENGINE Bus EXITED
[16/Mar/2022:02:20:08] ENGINE Waiting for child threads to terminate...
[16/Mar/2022:02:20:08] ENGINE Waiting for thread Thread-13.

Linux

macast-cli
{'Additional_Interfaces': [], 'ApplicationPort': 36191, 'Blocked_Interfaces': [], 'CheckUpdate': 1, 'DLNA_FriendlyName': 'Macast(Testeles)', 'Macast_Protocol': 'DLNA Protocol', 'Macast_Renderer': 'MPV Renderer', 'MenubarIcon': 0, 'PlayerHW': 1, 'PlayerOntop': 1, 'PlayerPosition': 2, 'PlayerSize': 1, 'StartAtLogin': 0, 'USN': '06ec5a35-69ef-4518-b874-71e2a216aaee'}
ERROR:SSDPServer:add membership 192.168.2.12
ERROR:SSDPServer:[Errno 98] Address already in use
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE Serving on http://0.0.0.0:36191
INFO:MPVRenderer:starting mpv and mpv ipc
INFO:MPVRenderer:mpv starting
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE Started monitor thread 'SSDP_NOTIFY_THREAD'.
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE Started monitor thread 'Autoreloader'.
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE Bus STARTED
INFO:main:Server current run on port: 36191
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE Bus STOPPING
ERROR:MPVRenderer:mpv ipc socket start connect
INFO:MPVRenderer:{'event': 'property-change', 'id': 1, 'name': 'volume', 'data': 50.0}
INFO:MPVRenderer:{'event': 'property-change', 'id': 3, 'name': 'pause', 'data': False}
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 36191)) shut down
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE Stopped thread 'Autoreloader'.
INFO:MPVRenderer:stoping mpv and mpv ipc
ERROR:MPVRenderer:mpv ipc stopped
INFO:MPVRenderer:mpv stopped
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE Stopped thread 'SSDP_NOTIFY_THREAD'.
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE Bus STOPPED
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE Bus EXITING
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE Bus EXITED
INFO:cherrypy.error:[16/Mar/2022:02:32:56] ENGINE Waiting for child threads to terminate...
INFO:main:Service stopped

Duplicate issue: #63

commented

Not at all. I have not minidlna nor other process with dlna so any process is using port 1900...

ssdp listened to udp 0.0.0.0:1900, I can't think of any possibility except that other applications occupy this address.

You can try to check if any process is using port 36191. I've met the same problem just now.

same here, happens with every port i try.

Guys, maybe jellyfin is running?

i resolved this lately and figured my qbittorrent was using upnp for some reason, turned it off and everything worked as expected. make sure nothing else is blocking the upnp port.

Ha. I discovered early on that BitTorrent's automatic mapping and Jellyfin's DLNA management function would occupy the upnp port. After turning them off, I found that it still didn't work. I found on the Jellyfin docs that the upnp port cannot be changed or closed. Jellyfin issue (jellyfin/jellyfin#1717)
I am currently looking for a way to make Macast start before Jellyfin and occupy the 1900 port first.