jellyfin / jellyfin

The Free Software Media System
https://jellyfin.org
GNU General Public License v2.0
33.87k stars 3.1k forks source link

DLNA disabled but Jellyfin still tries to bind to :1900 #1717

Closed icf20 closed 4 years ago

icf20 commented 5 years ago

Describe the bug

Failed to bind to port 1900: Address already in use. DLNA will be unavailable

To Reproduce

  1. Go to Enable Dlna server and uncheck the option

Expected behavior

disable DLNA and stop the log spam

Logs

23:37:16] [ERR] Failed to bind to port 1900: Address already in use. DLNA will be unavailable
[23:38:16] [ERR] Failed to bind to port 1900: Address already in use. DLNA will be unavailable
[23:39:16] [ERR] Failed to bind to port 1900: Address already in use. DLNA will be unavailable

Screenshots

image

System (please complete the following information):

joshuaboniface commented 5 years ago

Something is already using the port. What does netstat -plunt | grep 1900 show in your port list? If something is already listening for DLNA Jellyfin won't be able to on the port, that's just the nature of it.

tyhawk commented 5 years ago

I'm seeing the same error in my logs and in my case, I have DLNA disabled as well, so I don't expect any error messages every single minute. I'm running Jellyfin 10.3.7 in a Docker Swarm setup.

$ sudo netstat -plunt | grep 1900
udp6       0      0 :::1900                 :::*                                1366/dockerd

Turns out it was Plex. I had port 1900 mapped, but since it's for DLNA, I removed it from my config. Then Jellyfin took over and the message disappeared from the logs.

$ sudo netstat -plunt | grep 1900
udp        0      0 0.0.0.0:1900            0.0.0.0:*                           11446/dotnet        
$ ps -ef | grep 11446
root     11446 11416  2 19:04 ?        00:03:00 dotnet /jellyfin/jellyfin.dll --datadir /config --cachedir /cache --ffmpeg /usr/local/bin/ffmpeg
myuser 16857 28941  0 21:31 pts/0    00:00:00 grep --color=auto 11446

So that solved it for me.

Still weird that Jellyfin grabs port 1900 with DLNA disabled and nags every minute when the port is already in use.

JustAMan commented 4 years ago

What is expected behaviour in your opinion?

tyhawk commented 4 years ago

@JustAMan If DLNA is disabled in Jellyfin, it should not try to bind to port 1900. Naturally, if DLNA is enabled, it should bind to port 1900.

JustAMan commented 4 years ago

I have fixed the issue title, please check that I did it correctly.

stale[bot] commented 4 years ago

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments. If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label. This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

randalotto commented 3 years ago

This issue still exists.

MartenBE commented 3 years ago

I still see this issue, even with UPnP and DLNA disabled in the dashboard. Can this be reopened?

comfreak89 commented 3 years ago

Same for me. Jellyfin still binds to UPNP Port 1900 while disabled in the settings. I also restarted the daemon.

root@jellyfin:~# netstat -tulpena |grep 1900 udp 0 0 0.0.0.0:1900 0.0.0.0:* 110 1970687255 90909/jellyfin udp 0 0 192.168.178.242:1900 0.0.0.0:* 110 1970738674 90909/jellyfin udp 0 0 127.0.0.1:1900 0.0.0.0:* 110 1970738672 90909/jellyfin

![Uploading Screenshot_1.png…]()

cvium commented 3 years ago

Auto discovery uses the same port

makerio90 commented 2 years ago

is there a way to disable dlna before a docker container has been made? 1900 is in use and binding it to 1901 wont work.