WebSocket returns 500 error! #2245

Closed
opened 2026-02-06 21:53:47 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @Anan5a on GitHub (Nov 8, 2020).

Describe the bug

Websocket connection result in a 500 error

System (please complete the following information):

  • OS: Debian
  • Virtualization:
  • Clients: Browser
  • Browser: Firefox
  • Jellyfin Version: 10.7.0
  • Playback:
  • Installed Plugins:
  • Reverse Proxy: nginx
  • Base URL: none
  • Networking: Host
  • Storage: local

To Reproduce

  1. Go to 'Fresh install of v10.7'
  2. Setup
  3. Try to access after setup
  4. See error

Expected behavior

Work as intended
Logs


[2020-11-08 19:17:32.040 +06:00] [ERR] Error sending socket message from "x.x.155.233" to "239.255.255.250:1900"
System.Net.Sockets.SocketException (13): Permission denied
   at System.Net.Sockets.Socket.DoBeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint endPointSnapshot, SocketAddress socketAddress, OverlappedAsyncResult asyncResult)
   at System.Net.Sockets.Socket.BeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, Object state)
   at Emby.Server.Implementations.Net.UdpSocket.SendToAsync(Byte[] buffer, Int32 offset, Int32 size, IPEndPoint endPoint, CancellationToken cancellationToken)
   at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(ISocket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
[2020-11-08 19:17:32.141 +06:00] [ERR] Error sending socket message from "0.0.0.0" to "239.255.255.250:1900"
System.Net.Sockets.SocketException (13): Permission denied
   at System.Net.Sockets.Socket.DoBeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint endPointSnapshot, SocketAddress socketAddress, OverlappedAsyncResult asyncResult)
   at System.Net.Sockets.Socket.BeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, Object state)
   at Emby.Server.Implementations.Net.UdpSocket.SendToAsync(Byte[] buffer, Int32 offset, Int32 size, IPEndPoint endPoint, CancellationToken cancellationToken)
   at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(ISocket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
[2020-11-08 19:17:32.141 +06:00] [ERR] Error sending socket message from "x.x.155.233" to "239.255.255.250:1900"
System.Net.Sockets.SocketException (13): Permission denied
   at System.Net.Sockets.Socket.DoBeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint endPointSnapshot, SocketAddress socketAddress, OverlappedAsyncResult asyncResult)
   at System.Net.Sockets.Socket.BeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, Object state)
   at Emby.Server.Implementations.Net.UdpSocket.SendToAsync(Byte[] buffer, Int32 offset, Int32 size, IPEndPoint endPoint, CancellationToken cancellationToken)
   at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(ISocket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
[2020-11-08 19:17:32.241 +06:00] [ERR] Error sending socket message from "0.0.0.0" to "239.255.255.250:1900"
System.Net.Sockets.SocketException (13): Permission denied
   at System.Net.Sockets.Socket.DoBeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint endPointSnapshot, SocketAddress socketAddress, OverlappedAsyncResult asyncResult)
   at System.Net.Sockets.Socket.BeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, Object state)
   at Emby.Server.Implementations.Net.UdpSocket.SendToAsync(Byte[] buffer, Int32 offset, Int32 size, IPEndPoint endPoint, CancellationToken cancellationToken)
   at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(ISocket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
[2020-11-08 19:17:32.242 +06:00] [ERR] Error sending socket message from "x.x.155.233" to "239.255.255.250:1900"
System.Net.Sockets.SocketException (13): Permission denied
   at System.Net.Sockets.Socket.DoBeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint endPointSnapshot, SocketAddress socketAddress, OverlappedAsyncResult asyncResult)
   at System.Net.Sockets.Socket.BeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, Object state)
   at Emby.Server.Implementations.Net.UdpSocket.SendToAsync(Byte[] buffer, Int32 offset, Int32 size, IPEndPoint endPoint, CancellationToken cancellationToken)
   at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(ISocket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)


Screenshots

Screenshot_20201108_190825

Additional context

Originally created by @Anan5a on GitHub (Nov 8, 2020). **Describe the bug** <!-- A clear and concise description of what the bug is. --> Websocket connection result in a 500 error **System (please complete the following information):** - OS: Debian - Virtualization: - Clients: Browser - Browser: Firefox - Jellyfin Version: 10.7.0 - Playback: - Installed Plugins: - Reverse Proxy: nginx - Base URL: none - Networking: Host - Storage: local **To Reproduce** <!-- Steps to reproduce the behavior: --> 1. Go to 'Fresh install of v10.7' 2. Setup 3. Try to access after setup 4. See error **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> Work as intended **Logs** <!-- Please paste any log errors. --> ``` [2020-11-08 19:17:32.040 +06:00] [ERR] Error sending socket message from "x.x.155.233" to "239.255.255.250:1900" System.Net.Sockets.SocketException (13): Permission denied at System.Net.Sockets.Socket.DoBeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint endPointSnapshot, SocketAddress socketAddress, OverlappedAsyncResult asyncResult) at System.Net.Sockets.Socket.BeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, Object state) at Emby.Server.Implementations.Net.UdpSocket.SendToAsync(Byte[] buffer, Int32 offset, Int32 size, IPEndPoint endPoint, CancellationToken cancellationToken) at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(ISocket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken) [2020-11-08 19:17:32.141 +06:00] [ERR] Error sending socket message from "0.0.0.0" to "239.255.255.250:1900" System.Net.Sockets.SocketException (13): Permission denied at System.Net.Sockets.Socket.DoBeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint endPointSnapshot, SocketAddress socketAddress, OverlappedAsyncResult asyncResult) at System.Net.Sockets.Socket.BeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, Object state) at Emby.Server.Implementations.Net.UdpSocket.SendToAsync(Byte[] buffer, Int32 offset, Int32 size, IPEndPoint endPoint, CancellationToken cancellationToken) at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(ISocket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken) [2020-11-08 19:17:32.141 +06:00] [ERR] Error sending socket message from "x.x.155.233" to "239.255.255.250:1900" System.Net.Sockets.SocketException (13): Permission denied at System.Net.Sockets.Socket.DoBeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint endPointSnapshot, SocketAddress socketAddress, OverlappedAsyncResult asyncResult) at System.Net.Sockets.Socket.BeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, Object state) at Emby.Server.Implementations.Net.UdpSocket.SendToAsync(Byte[] buffer, Int32 offset, Int32 size, IPEndPoint endPoint, CancellationToken cancellationToken) at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(ISocket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken) [2020-11-08 19:17:32.241 +06:00] [ERR] Error sending socket message from "0.0.0.0" to "239.255.255.250:1900" System.Net.Sockets.SocketException (13): Permission denied at System.Net.Sockets.Socket.DoBeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint endPointSnapshot, SocketAddress socketAddress, OverlappedAsyncResult asyncResult) at System.Net.Sockets.Socket.BeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, Object state) at Emby.Server.Implementations.Net.UdpSocket.SendToAsync(Byte[] buffer, Int32 offset, Int32 size, IPEndPoint endPoint, CancellationToken cancellationToken) at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(ISocket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken) [2020-11-08 19:17:32.242 +06:00] [ERR] Error sending socket message from "x.x.155.233" to "239.255.255.250:1900" System.Net.Sockets.SocketException (13): Permission denied at System.Net.Sockets.Socket.DoBeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint endPointSnapshot, SocketAddress socketAddress, OverlappedAsyncResult asyncResult) at System.Net.Sockets.Socket.BeginSendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, Object state) at Emby.Server.Implementations.Net.UdpSocket.SendToAsync(Byte[] buffer, Int32 offset, Int32 size, IPEndPoint endPoint, CancellationToken cancellationToken) at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(ISocket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken) ``` **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> ![Screenshot_20201108_190825](https://user-images.githubusercontent.com/16373480/98465998-f3bf3d00-21f6-11eb-9209-4c9260c8d919.png) **Additional context** <!-- Add any other context about the problem here. -->
OVERLORD added the bugstale labels 2026-02-06 21:53:47 +03:00
Author
Owner

@crobibero commented on GitHub (Nov 9, 2020):

I can't replicate this, can you try pulling latest unstable and testing again?

@crobibero commented on GitHub (Nov 9, 2020): I can't replicate this, can you try pulling latest unstable and testing again?
Author
Owner

@Anan5a commented on GitHub (Nov 9, 2020):

This was the latest unstable release available in Debian repository

@Anan5a commented on GitHub (Nov 9, 2020): This was the latest unstable release available in Debian repository
Author
Owner

@BaronGreenback commented on GitHub (Nov 10, 2020):

The messages in the system log are caused by the dlna ssdp sub-system not having sufficient permissions to broadcast. Check the permissons of the account that JF runs under. Some work has been done around this with the latest network PR.

The firefox msg, although referring to sockets - is another issue.
As a first port of call i'd check https://jellyfin.org/docs/general/administration/installing.html

@BaronGreenback commented on GitHub (Nov 10, 2020): The messages in the system log are caused by the dlna ssdp sub-system not having sufficient permissions to broadcast. Check the permissons of the account that JF runs under. Some work has been done around this with the latest network PR. The firefox msg, although referring to sockets - is another issue. As a first port of call i'd check https://jellyfin.org/docs/general/administration/installing.html
Author
Owner

@stale[bot] commented on GitHub (Mar 20, 2021):

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.

@stale[bot] commented on GitHub (Mar 20, 2021): 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](https://docs.jellyfin.org/general/getting-help.html).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#2245