Jellyfin Forum
SOLVED: Remote login error - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: Remote login error (/t-solved-remote-login-error)



Remote login error - skysor - 2024-12-13

Hello,
I encounter a very strange issue since I installed Jellyfin on my fedora server (in a podman container):
I cannot remotely login to my Jellyfin server from outside my internal network:

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


But from within my local network, it works very well, no issue at all !
Please find attached the screenshot of that error and the browser networking inspector logs (request authenticatebyname fails with NS_ERROR_REDIRECT_LOOP)

In case this can help, my jellyfin container is behind a nginx reverse proxy, like all my other self hosted apps.
I tried to do a cleaninstall but same error then.

Jellyfin logs when attempting to loging (debug mode) :
Code:
déc. 13 19:40:02 fedora-server jellyfin[91662]: [19:40:02] [DBG] [28] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.
déc. 13 19:40:02 fedora-server jellyfin[91662]: [19:40:02] [DBG] [28] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.
déc. 13 19:40:38 fedora-server jellyfin[91662]: [19:40:38] [DBG] [39] Jellyfin.Api.Middleware.BaseUrlRedirectionMiddleware: Normalizing an URL at /
déc. 13 19:40:38 fedora-server jellyfin[91662]: [19:40:38] [DBG] [39] Jellyfin.Api.Middleware.BaseUrlRedirectionMiddleware: Redirecting to web/
déc. 13 19:40:41 fedora-server jellyfin[91662]: [19:40:41] [DBG] [33] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.
déc. 13 19:40:42 fedora-server jellyfin[91662]: [19:40:42] [DBG] [29] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.
déc. 13 19:40:42 fedora-server jellyfin[91662]: [19:40:42] [DBG] [39] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.
déc. 13 19:40:42 fedora-server jellyfin[91662]: [19:40:42] [DBG] [29] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.
déc. 13 19:40:43 fedora-server jellyfin[91662]: [19:40:43] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.

My network.xml file content (fresh install):

Code:
<?xml version="1.0" encoding="utf-8"?>
<NetworkConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <BaseUrl />
  <EnableHttps>false</EnableHttps>
  <RequireHttps>false</RequireHttps>
  <CertificatePath />
  <CertificatePassword />
  <InternalHttpPort>8096</InternalHttpPort>
  <InternalHttpsPort>8920</InternalHttpsPort>
  <PublicHttpPort>8096</PublicHttpPort>
  <PublicHttpsPort>8920</PublicHttpsPort>
  <AutoDiscovery>true</AutoDiscovery>
  <EnableUPnP>false</EnableUPnP>
  <EnableIPv4>true</EnableIPv4>
  <EnableIPv6>false</EnableIPv6>
  <EnableRemoteAccess>true</EnableRemoteAccess>
  <LocalNetworkSubnets />
  <LocalNetworkAddresses />
  <KnownProxies />
  <IgnoreVirtualInterfaces>true</IgnoreVirtualInterfaces>
  <VirtualInterfaceNames>
    <string>veth</string>
  </VirtualInterfaceNames>
  <EnablePublishedServerUriByRequest>false</EnablePublishedServerUriByRequest>
  <PublishedServerUriBySubnet />
  <RemoteIPFilter />
  <IsRemoteIPFilterBlacklist>false</IsRemoteIPFilterBlacklist>
</NetworkConfiguration>%   

Thank you a lot in advance for your help !


RE: Remote login error - WesleyKawan - 2024-12-13

ja verificou a opção rede?
para verificar se contem algum URL setado?


RE: Remote login error - TheDreadPirate - 2024-12-13

Can you share your nginx config via pastebin?  Censor the domain name.

And can you double check that you're allowing each individual user to connect remotely?

   


RE: Remote login error - skysor - 2024-12-14

I just resolved my issue by looking further at my nginx and authelia config,
And the issue was in my authelia config, I just needed to use AuthRequest in my case given im using NGINX
(found the fix here: https://github.com/authelia/authelia/discussions/7561)
Thank you