Jellyfin Forum
SOLVED: Unable to connect to the selected server - 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: Unable to connect to the selected server (/t-solved-unable-to-connect-to-the-selected-server)

Pages: 1 2


RE: Unable to connect to the selected server - SenileOtaku - 2024-08-19

I'm having the same sort of issue. Different server configuration though.


Jellyfin 10.9.9
Fedora 40
Dell OptiPlex 5040
16GB DDR3

Have run OS updates, restarted the server (not just the service). Checking the status of the service


● jellyfin.service - Jellyfin Media Server
Loaded: loaded (/usr/lib/systemd/system/jellyfin.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
/etc/systemd/system/jellyfin.service.d
└─override.conf
Active: active (running) since Mon 2024-08-19 14:23:53 EDT; 23min ago
Main PID: 1048 (jellyfin)
Tasks: 24 (limit: 18991)
Memory: 811.9M (peak: 846.0M)
CPU: 58.971s
CGroup: /system.slice/jellyfin.service
└─1048 /usr/lib64/jellyfin/jellyfin --webdir=/usr/share/jellyfin-web

Aug 19 14:29:05 5040mediaserver jellyfin[1048]: [14:29:05] [INF] [17] Emby.Server.Implementations.IO.LibraryMonitor: Floraison (/InternalD/Multimedia/Music/Touhou/Floraison --A-- ESQUARIA >
Aug 19 14:29:05 5040mediaserver jellyfin[1048]: [14:29:05] [INF] [17] Emby.Server.Implementations.IO.LibraryMonitor: Drake (/InternalD/Multimedia/Music/Touhou/Drake --A-- ALiCE'S EMOTiON ×>
Aug 19 14:29:05 5040mediaserver jellyfin[1048]: [14:29:05] [INF] [17] Emby.Server.Implementations.IO.LibraryMonitor: Lost in the Abyss (/InternalD/Multimedia/Music/Touhou/Lost in the Abyss>
Aug 19 14:29:05 5040mediaserver jellyfin[1048]: [14:29:05] [INF] [17] Emby.Server.Implementations.IO.LibraryMonitor: Dead or Alive (/InternalD/Multimedia/Music/Touhou/Dead or Alive --A-- A>
Aug 19 14:29:05 5040mediaserver jellyfin[1048]: [14:29:05] [INF] [17] Emby.Server.Implementations.IO.LibraryMonitor: Ring Wandering ~from 領域ZERO「東方空宴歌-HAYATE-」~ (/InternalD/Mult>
Aug 19 14:29:09 5040mediaserver jellyfin[1048]: [14:29:09] [ERR] [13] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item
Aug 19 14:29:09 5040mediaserver jellyfin[1048]: System.ArgumentException: Guid can't be empty (Parameter 'id')
Aug 19 14:29:09 5040mediaserver jellyfin[1048]: at MediaBrowser.Providers.Manager.ProviderManager.StartProcessingRefreshQueue()
Aug 19 14:29:18 5040mediaserver jellyfin[1048]: [14:29:18] [INF] [31] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting ffprobe with args -analyzeduration 200M -probesize 1G -i fil>
Aug 19 14:29:18 5040mediaserver jellyfin[1048]: [14:29:18] [INF] [31] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting ffprobe with args -analyzeduration 200M -probesize 1G -i fil>


But still fails to connect to the server (tried on multiple browsers, multiple OS)

I don't want to go through the trouble of a complete reinstall (although now that I'm not at my old job I may get rid of Fedora).


RE: Unable to connect to the selected server - TheDreadPirate - 2024-08-19

It looks like this isn't a fresh install since it is scanning your library. If the service is running, double check you didn't change any firewall rules or that the LAN IP didn't change.


RE: Unable to connect to the selected server - SenileOtaku - 2024-08-19

Yes, this is an install that was working before. The IP is statically assigned, and I didn't start fiddling with the firewall until *after" it stopped working (if it was working I wasn't going to change anything).

I hate to wipe out the index for all my media, since I've had to correct a lot of entries.


RE: Unable to connect to the selected server - TheDreadPirate - 2024-08-20

Can you share your full jellyfin log via pastebin?

And can you share the output of these commands?

Code:
sudo firewall-cmd --list-all
sudo ss -tulpn



RE: Unable to connect to the selected server - SenileOtaku - 2024-08-21

https://pastebin.com/uB8ViQpv (Aug 21)
https://pastebin.com/jWTL4UJH (Aug 20)

~$ sudo firewall-cmd --list-all
Code:
FedoraServer (default, active)
  target: default
  ingress-priority: 0
  egress-priority: 0
  icmp-block-inversion: no
  interfaces: enp0s31f6
  sources:
  services: cockpit dhcpv6-client ssh
  ports: 8096/tcp 8096/udp
  protocols:
  forward: yes
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:


~$ sudo ss -tulpn
Code:
Netid      State        Recv-Q      Send-Q                                      Local Address:Port                Peer Address:Port      Process                                         
udp        UNCONN      0            0                                                0.0.0.0:5355                    0.0.0.0:*          users:(("systemd-resolve",pid=808,fd=10))     
udp        UNCONN      0            0                                                0.0.0.0:7359                    0.0.0.0:*          users:(("jellyfin",pid=1048,fd=479))           
udp        UNCONN      0            0                                              127.0.0.54:53                      0.0.0.0:*          users:(("systemd-resolve",pid=808,fd=19))     
udp        UNCONN      0            0                                          127.0.0.53%lo:53                      0.0.0.0:*          users:(("systemd-resolve",pid=808,fd=17))     
udp        UNCONN      0            0                                              127.0.0.1:323                      0.0.0.0:*          users:(("chronyd",pid=886,fd=5))               
udp        UNCONN      0            0                                        239.255.255.250:1900                    0.0.0.0:*          users:(("jellyfin",pid=1048,fd=475))           
udp        UNCONN      0            0                                            192.168.3.15:44642                    0.0.0.0:*          users:(("jellyfin",pid=1048,fd=476))           
udp        UNCONN      0            0                                                    [::]:5355                        [::]:*          users:(("systemd-resolve",pid=808,fd=12))     
udp        UNCONN      0            0                                                  [::1]:323                        [::]:*          users:(("chronyd",pid=886,fd=6))               
udp        UNCONN      0            0                  [fe80::1a66:daff:fe20:c759]%enp0s31f6:546                        [::]:*          users:(("NetworkManager",pid=945,fd=27))       
tcp        LISTEN      0            4096                                              0.0.0.0:5355                    0.0.0.0:*          users:(("systemd-resolve",pid=808,fd=11))     
tcp        LISTEN      0            4096                                        127.0.0.53%lo:53                      0.0.0.0:*          users:(("systemd-resolve",pid=808,fd=18))     
tcp        LISTEN      0            4096                                          127.0.0.54:53                      0.0.0.0:*          users:(("systemd-resolve",pid=808,fd=20))     
tcp        LISTEN      0            128                                              0.0.0.0:22                      0.0.0.0:*          users:(("sshd",pid=1011,fd=3))                 
tcp        LISTEN      0            512                                                    *:8096                          *:*          users:(("jellyfin",pid=1048,fd=508))           
tcp        LISTEN      0            4096                                                [::]:5355                        [::]:*          users:(("systemd-resolve",pid=808,fd=13))     
tcp        LISTEN      0            128                                                  [::]:22                          [::]:*          users:(("sshd",pid=1011,fd=4))                 
tcp        LISTEN      0            4096                                                    *:9090                          *:*          users:(("systemd",pid=1,fd=81))               



RE: Unable to connect to the selected server - TheDreadPirate - 2024-08-21

You might have general network connectivity issues? Or Jellyfin has network connectivity issues?

Code:
[2024-08-20 05:47:35.294 -04:00] [ERR] [97] MediaBrowser.Providers.Music.ArtistMetadataService: Error in "MusicBrainz"
System.Net.Http.HttpRequestException: Name or service not known (musicbrainz.org:443)
[2024-08-20 05:47:41.438 -04:00] [ERR] [51] MediaBrowser.Providers.Music.ArtistMetadataService: Error in "VGMdb"
System.Net.Http.HttpRequestException: Name or service not known (vgmdb.info:443)

Looks like your server is trying to scrape for metadata and can't reach the Internet? I see those messages in yesterday's and today's log.

I don't know enough about firewall-cmd or the particulars of Fedora to advise you much on that front.

Can you share the network.xml file? Located in /etc/jellyfin


RE: Unable to connect to the selected server - SenileOtaku - 2024-08-23

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>
  <InternalHttpPort>8096</InternalHttpPort>
  <InternalHttpsPort>8920</InternalHttpsPort>
  <PublicHttpPort>8096</PublicHttpPort>
  <PublicHttpsPort>8920</PublicHttpsPort>
  <AutoDiscovery>true</AutoDiscovery>
  <EnableUPnP>false</EnableUPnP>
  <EnableIPv4>true</EnableIPv4>
  <EnableIPv6>true</EnableIPv6>
  <EnableRemoteAccess>false</EnableRemoteAccess>
  <LocalNetworkSubnets />
  <LocalNetworkAddresses />
  <KnownProxies />
  <IgnoreVirtualInterfaces>true</IgnoreVirtualInterfaces>
  <VirtualInterfaceNames />
  <EnablePublishedServerUriByRequest>false</EnablePublishedServerUriByRequest>
  <PublishedServerUriBySubnet />
  <RemoteIPFilter />
  <IsRemoteIPFilterBlacklist>false</IsRemoteIPFilterBlacklist>



RE: Unable to connect to the selected server - SenileOtaku - 2024-08-23

(2024-08-21, 04:17 PM)TheDreadPirate Wrote: Looks like your server is trying to scrape for metadata and can't reach the Internet?  I see those messages in yesterday's and today's log.

I don't know enough about firewall-cmd or the particulars of Fedora to advise you much on that front.

Yeah, if I were still at my old job I could have asked some of the Fedora devs.


RE: Unable to connect to the selected server - TheDreadPirate - 2024-08-23

Try disabling IPv6 in Jellyfin. This will require you restart Jellyfin after unchecking and saving.


RE: Unable to connect to the selected server - SenileOtaku - 2024-08-27

Yes, disabling IPv6 seems to have cleared it up. It took a couple reboots (had to get the media directory recognized again) and a a couple hours of refreshing the service and the media.

One thing to point out for anyone else looking at an issue like this: I could not even log into the Web UI to do any sort of management. What I had to do was change "EnableIPv6" to "false" manually in /etc/jellyfin/network.xml. I think there was a lot of confusion thinking I could get to the Web interface (then again, I'm accustomed to editing configuration files).