mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-24 07:30:57 +01:00
Leaving local bind address blank slows Jellyfin and prevents Android login #890
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#890
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alexdelorenzo on GitHub (Sep 6, 2019).
Describe the bug
When the local bind address is not set on Jellyfin's backend, logging in via the Android app fails. Jellyfin's backend fails to detect the "LocalAddress" as reported by the
/emby/system/info/publicendpoint.To Reproduce
Go to Jellyfin's admin dashboard.
Go to "Advanced"
Leave "Bind to local network address:" blank such that Jellyfin will bind to all IP addresses.
Try to login via the Android app. It will hang and then fail due to a "Connection Error". I couldn't get any relevant details using logcat with a Jellyfin Android app debug build.
Access the
/emby/system/info/publicREST endpoint via a web browser. It will hang for a long time. Eventually, you'll get this JSON response:Backend logs will show this:
Expected behavior
/emby/system/info/publicendpoint.Logs
Screenshots
N/A
System (please complete the following information):
I am using the
linuxserver/jellyfinDocker image via Docker Swarm with an overlay network, and I have the container port 8096 forwarded to the host node on port 8096. The host node is a low-poweredarmv7lboard.Additional context
edit: I should note that while Android logins fail in this context, at no point does the web app fail to login. I am consistently able to use the web interface, however it is noticeably slower.
On the first few runs of Jellyfin's backend, I am able to log into the Android app without having to set the local bind address. It is only after a few days and reboots that I must set the local bind address to be able to login.
Setting the local bind address to the host node's LAN IP address allows me to login via the Android app instantly.
Given that there is a consistent 1m40s delay when accessing
/emby/system/info/publicwithout a local bind address set, there is probably a 100-second timeout somewhere on the backend.From what I can tell, the Android app will hang waiting for a response from
/emby/system/info/public, but because the Android app has a lower response timeout than the Jellyfin backend does, the Android app will stop waiting before the backend times out and returns a response.As an aside, setting the local bind address in Jellyfin's backend causes the
/emby/system/info/publicendpoint to return a different response than when the local bind address is left blank.Example:
Local bind address is set:
{"LocalAddress":"http://my-lan-ip:8096","WanAddress":"http://my-wan-ip:8096","ServerName":"jellyfin","Version":"10.3.7","ProductName":"Jellyfin Server","OperatingSystem":"Linux","Id":"myid"}Local bind address is not set:
{"WanAddress":"http://my-wan-ip:8096","ServerName":"jellyfin","Version":"10.3.7","ProductName":"Jellyfin Server","OperatingSystem":"Linux","Id":"myid"}@joshuaboniface commented on GitHub (Sep 10, 2019):
@thismachinechills If you're willing to test it, can you try out the 10.4.0 nightlies (Docker tag
jellyfin:nightly) and see if the issue still occurs there? Be sure to use a fresh data folder (or back up your stable one) first. I'm on the nightlies and unable to reproduce, but I do use a reverse proxy.@alexdelorenzo commented on GitHub (Oct 10, 2019):
Tested with the 10.4.0 release, and this is no longer a problem.