Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] SSDP Can't start #131

Open
ogry opened this issue Mar 16, 2022 · 8 comments
Open

[BUG] SSDP Can't start #131

ogry opened this issue Mar 16, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@ogry
Copy link

ogry commented Mar 16, 2022

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

@ogry ogry added the bug Something isn't working label Mar 16, 2022
@xfangfang
Copy link
Owner

Duplicate issue: #63

@ogry
Copy link
Author

ogry commented Mar 17, 2022

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

@xfangfang
Copy link
Owner

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

@FlyMan2004
Copy link

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

@bendschs
Copy link

same here, happens with every port i try.

@Resurrection2981
Copy link

Guys, maybe jellyfin is running?

@bendschs
Copy link

bendschs commented Oct 9, 2023

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.

@Resurrection2981
Copy link

Resurrection2981 commented Oct 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants