Connection Failure Error message at login screen, Jellyfin 10.3.0 through Nginx (Docker) #598

Closed
opened 2025-12-21 16:58:17 +01:00 by backuprepo · 3 comments
Owner

Originally created by @triDcontrols on GitHub (Apr 20, 2019).

Describe the bug
After updating docker container Jellyfin to 10.3.0, I can no longer login remote through Nginx reverse proxy. Worked in 10.2.x. Works just fine If I login on my local network. http://192.168.1.7:8096
I know there have been changes in authentication.

I get this message when attempting to log in

"We're unable to connect to the selected server right now. Please ensure it is running and try again."

My Nginx config:

server {
listen 443 ssl;
listen [::]:443 ssl;

server_name jellly.*;

include /config/nginx/ssl.conf;

client_max_body_size 0;

location / {
    include /config/nginx/proxy.conf;
    resolver 127.0.0.11 valid=30s;
    set $upstream_jelly jellyfin;
    proxy_pass http://192.168.1.7:8096;
    proxy_set_header Range $http_range;
    proxy_set_header If-Range $http_if_range;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
}

}

To Reproduce
Setup Nginx reverse proxy server and try to login.

Expected behavior
Expect to login as Jellyfin 10.2.x

Logs
Console Logs from Chrome
Screen Shot 2019-04-19 at 7 58 07 PM

Screenshots

System (please complete the following information):

  • OS: Docker
  • Browser: Chrome, Firefox
  • Jellyfin Version: 10.3.0
  • Reverse proxy: nginx

Additional context

Originally created by @triDcontrols on GitHub (Apr 20, 2019). **Describe the bug** After updating docker container Jellyfin to 10.3.0, I can no longer login remote through Nginx reverse proxy. Worked in 10.2.x. Works just fine If I login on my local network. http://192.168.1.7:8096 I know there have been changes in authentication. I get this message when attempting to log in "We're unable to connect to the selected server right now. Please ensure it is running and try again." My Nginx config: server { listen 443 ssl; listen [::]:443 ssl; server_name jellly.*; include /config/nginx/ssl.conf; client_max_body_size 0; location / { include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s; set $upstream_jelly jellyfin; proxy_pass http://192.168.1.7:8096; proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } **To Reproduce** Setup Nginx reverse proxy server and try to login. **Expected behavior** Expect to login as Jellyfin 10.2.x **Logs** Console Logs from Chrome ![Screen Shot 2019-04-19 at 7 58 07 PM](https://user-images.githubusercontent.com/22411662/56451009-75324000-62de-11e9-9b09-72a4625067d0.png) **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **System (please complete the following information):** - OS: Docker - Browser: Chrome, Firefox - Jellyfin Version: 10.3.0 - Reverse proxy: nginx **Additional context**
backuprepo 2025-12-21 16:58:17 +01:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@triDcontrols commented on GitHub (Apr 20, 2019):

RTFM People:
https://jellyfin.readthedocs.io/en/latest/administrator-docs/reverse-proxy/#nginx

Sorry for my unnecessary bug report.

My new nginx config for others per the docs.

server {
listen 443 ssl;
listen [::]:443 ssl;

server_name jelly.*;

include /config/nginx/ssl.conf;

client_max_body_size 0;

location / {
    proxy_pass http://192.168.1.7:8096;
    proxy_redirect off;
    proxy_set_header Host $host;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $http_connection;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $remote_addr;
    proxy_set_header X-Forwarded-Protocol $scheme;
    proxy_set_header X-Forwarded-Host $http_host;

}

}

@triDcontrols commented on GitHub (Apr 20, 2019): RTFM People: https://jellyfin.readthedocs.io/en/latest/administrator-docs/reverse-proxy/#nginx Sorry for my unnecessary bug report. My new nginx config for others per the docs. server { listen 443 ssl; listen [::]:443 ssl; server_name jelly.*; include /config/nginx/ssl.conf; client_max_body_size 0; location / { proxy_pass http://192.168.1.7:8096; proxy_redirect off; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $remote_addr; proxy_set_header X-Forwarded-Protocol $scheme; proxy_set_header X-Forwarded-Host $http_host; } }
Author
Owner

@sparky8251 commented on GitHub (Apr 20, 2019):

Not a worry man! We changed those docs shortly after release when it became apparent there was an nginx config issue with the move to Kestrel as the HTTP server.

It def is a bug of sorts, we just found and addressed it properly very quickly :)

@sparky8251 commented on GitHub (Apr 20, 2019): Not a worry man! We changed those docs shortly after release when it became apparent there was an nginx config issue with the move to Kestrel as the HTTP server. It def is a bug of sorts, we just found and addressed it properly very quickly :)
Author
Owner

@darkralts commented on GitHub (Oct 30, 2020):

totally not an unneccessary bug report, this saved me lots of headaches thanks :D

@darkralts commented on GitHub (Oct 30, 2020): totally not an unneccessary bug report, this saved me lots of headaches thanks :D
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#598
No description provided.