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

system/server/info/public request has massive timeout/fails. #2169

Closed
grimkor opened this issue Dec 19, 2019 · 10 comments
Closed

system/server/info/public request has massive timeout/fails. #2169

grimkor opened this issue Dec 19, 2019 · 10 comments
Labels
bug Something isn't working confirmed This issue has been reviewed and confirmed

Comments

@grimkor
Copy link

grimkor commented Dec 19, 2019

Describe the bug

With docker images from jellyfin and linuxserver on x86:

When loading the application in the browser the https://example.com/system/info/public takes a long time to resolve, leaving the application in a loading state. Eventually the site will be presented and the request will still not have resolved.

This also prevents the Android application from making a connection with the server.

Blocking the URL through Firefox Development Tools proves this endpoint to be the issue as the page will instead load instantaneously.

To Reproduce

  1. Launch docker container, example of docker-compose below:
version: "3.4"
services:
  app:
    image: jellyfin/jellyfin:latest
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - UMASK_SET=022
    volumes:
      - /path_to/jellyfin/config:/config
      - /path_to/jellyfin/cache:/cache
      - /path_to/jellyfin/files/Music/:/media:ro
      - /path_to/jellyfin/transcoding:/transcode #optional
    ports:
      - 8096:8096
      - 8920:8920
    restart: unless-stopped
  1. Open browser developer console and go to network tab
  2. Go to http://<URL>:8096/
  3. Observe the "public" XHR request

Expected behavior

To resolve the request in a timely manner.

Logs

System (please complete the following information):

  • OS: Docker in Debian 9
  • Browser: Tested in all browsers, mobile app cannot connect to server
  • Jellyfin Version: 10.4.1 (latest)
  • Installed Plugins: None
  • Reverse proxy: Traefik, tried without traefik and connecting directly to IP address:port and still get the same issue

Additional context

None

@grimkor grimkor added the bug Something isn't working label Dec 19, 2019
@grimkor grimkor closed this as completed Dec 19, 2019
@grimkor grimkor reopened this Dec 19, 2019
@anthonylavado
Copy link
Member

Have you tried with the latest version of 10.4.3? The behaviour might be the same, but weMd just like to confirm. It’s strange that this would take so long though, because it’s a local page from the server...

You might have also been hit by the base URL issue - I think if you went to 10.4.0 at all you would be affected.

@grimkor
Copy link
Author

grimkor commented Dec 20, 2019

Have you tried with the latest version of 10.4.3? The behaviour might be the same, but weMd just like to confirm. It’s strange that this would take so long though, because it’s a local page from the server...

You might have also been hit by the base URL issue - I think if you went to 10.4.0 at all you would be affected.

Thank you for replying and apologies I have been using 10.4.3, I see in my original post I mis-quoted my Jellyfin version.

I've been playing around with it and looking further into other issues for hints and discovered the following:

  • I cannot replicate this outside of a Docker stack as a regular container either from the same server or from my local workstation (Ubuntu 18.04).
  • If I set the Networking > Bind to local network address to the Docker server's IP address it will instantly fix the issue until reboot where it will be unable to bind to that address.
  • Downgrading to a fresh install of 10.3.x did not resolve the issue.

@anthonylavado anthonylavado added the confirmed This issue has been reviewed and confirmed label Dec 21, 2019
@anthonylavado
Copy link
Member

Just as a test, what happens if you set

network_mode: "host" 

@grimkor
Copy link
Author

grimkor commented Dec 21, 2019

Just as a test, what happens if you set

network_mode: "host" 

I have tried this before; however with docker swarm there is a return message on deploying stating:

Ignoring unsupported options: network_mode

It still deployed but from my testing it did not make any difference.

@anthonylavado
Copy link
Member

anthonylavado commented Dec 21, 2019

Hrm okay. We do mention it in our own Docker instructions, but I don’t see it in the LSIO instructions.

Without it, DLNA doesn’t work, and neither does Live TV I believe.

@anthonylavado
Copy link
Member

For clarity, loading that endpoint is supposed to show the local address (among some other details), which is used for connecting some clients and things. We’ve run in to issues with it before, and I guess we have to look closer again.

@grimkor
Copy link
Author

grimkor commented Dec 21, 2019

Hrm okay. We do mention it in our own Docker instructions, but I don’t see it in the LSIO instructions.

Without it, DLNA doesn’t work, and neither does Live TV I believe.

So in that sense if there's no way to get the network_mode to host it will never be 100% in a Docker swarm. I'll do some reading/research to see what that network_mode does and how I might be able to replicate it in a swarm.

For clarity, loading that endpoint is supposed to show the local address (among some other details), which is used for connecting some clients and things. We’ve run in to issues with it before, and I guess we have to look closer again.

Thanks, I thought as much from my quick browse in the server code (totally note a .NET core dev) and would explain why the server information is also blank in the dashboard.

@PrplHaz4
Copy link
Contributor

@grimkor If you care about LiveTV or DLNA, you may want to look into using a macvlan network config in your swarm.

@anthonylavado /system/info/public is loading fine and returns immediately for me on both 10.4.3 (macvlan) and 10.5-dev (--net=host)

@grimkor
Copy link
Author

grimkor commented Dec 23, 2019

@grimkor If you care about LiveTV or DLNA, you may want to look into using a macvlan network config in your swarm.

I don't have a use for either of those yet but I'll look it up and give it a try and see if it fixes this issue.

@cvium
Copy link
Member

cvium commented Apr 8, 2021

Lots of network changes have since been made. Make a new issue if it persists.

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

No branches or pull requests

4 participants