Jellyfin Forum
Jellyfin Unable To Connect To Data Base - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: Jellyfin Unable To Connect To Data Base (/t-jellyfin-unable-to-connect-to-data-base)

Pages: 1 2


Jellyfin Unable To Connect To Data Base - SimplyUnknown - 2024-08-13

So everything has been going well with Jellyfin, and then I added more content which it imports fine but does not get any metadata, instead getting the following error, 

[2024-08-13 12:17:55.289 -07:00] [ERR] [30] MediaBrowser.Providers.Manager.ProviderManager: "TmdbMovieImageProvider" failed in GetImageInfos for type "Movie" at "/SMB/Movies/Dune.2021.1080p.WEBRip.x264.AAC5.1-[YTS.MX].mp4"
System.Net.Http.HttpRequestException: Network is unreachable (api.themoviedb.org:443)
---> System.Net.Sockets.SocketException (101): Network is unreachable
  at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
  at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
  at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
  --- End of inner exception stack trace ---

I also can't access the plugin catalog even though the repository is added. I am running Jellyfin V10.9.9 on TrueNas Scale.


RE: Jellyfin Unable To Connect To Data Base - Efficient_Good_5784 - 2024-08-13

It's most likely some network issue with the Truenas Scale nas.

Try changing Scale's DNS to something else (like Cloudflare's 1.1.1.1) and make sure everything else is correct too.

Also are you using IPv6?


RE: Jellyfin Unable To Connect To Data Base - TheDreadPirate - 2024-08-13

This can also happen if you have an incomplete IPv6 configuration. Try disabling IPv6.


RE: Jellyfin Unable To Connect To Data Base - SimplyUnknown - 2024-08-15

(2024-08-13, 08:04 PM)Efficient_Good_5784 Wrote: It's most likely some network issue with the Truenas Scale nas.

Try changing Scale's DNS to something else (like Cloudflare's 1.1.1.1) and make sure everything else is correct too.

Also are you using IPv6?

Alright I tried changing the name server under network to both 1.1.1.1 & 8.8.8.8, it still isn't working but I get a 'new' error message,

[2024-08-14 21:21:01.979 -07:00] [ERR] [26] MediaBrowser.Providers.Movies.MovieMetadataService: Error in "TheMovieDb"
System.Net.Http.HttpRequestException: Resource temporarily unavailable (api.themoviedb.org:443)

I am not using IPv6, I have it disabled in the Jellyfin settings do I need to do anything else to ensure it is disabled?


RE: Jellyfin Unable To Connect To Data Base - TheDreadPirate - 2024-08-15

You'd have to disable it in the OS. For IPv6 to work every component needs to support it. ISP, router, OS, software.

If you look at the network interfaces and you see some IPv6 addresses, there's a chance that even though Jellyfin has it disabled, the OS may be making requests on behalf of jellyfin over IPv6.


RE: Jellyfin Unable To Connect To Data Base - SimplyUnknown - 2024-08-15

(2024-08-15, 02:36 PM)TheDreadPirate Wrote: You'd have to disable it in the OS.  For IPv6 to work every component needs to support it.  ISP, router, OS, software.

If you look at the network interfaces and you see some IPv6 addresses, there's a chance that even though Jellyfin has it disabled, the OS may be making requests on behalf of jellyfin over IPv6.

Alright I went in scale and used sysctl variable net.ipv6.conf.all.disable_ipv6 to completely disable IPV6, I don't know exactly if it worked, IDK if there is a way to test it, but Jellyfin is still giving me resource temporarily unavailable when scanning for metadata.


RE: Jellyfin Unable To Connect To Data Base - TheDreadPirate - 2024-08-15

On the command line can you run "curl -4 api.tmdb.org" and "curl -6 api.tmdb.org"? A successful curl to that url should return a 301 message.

You can also run "nslookup api.tmdb.org" to see what addresses it resolves to.

Code:
chris@rat-trap:~$ nslookup api.tmdb.org
Server:         127.0.0.53
Address:        127.0.0.53#53

Non-authoritative answer:
Name:   api.tmdb.org
Address: 18.160.41.31
Name:   api.tmdb.org
Address: 18.160.41.40
Name:   api.tmdb.org
Address: 18.160.41.52
Name:   api.tmdb.org
Address: 18.160.41.88
Name:   api.tmdb.org
Address: 2600:9000:24f2:2600:10:fb02:4000:93a1
Name:   api.tmdb.org
Address: 2600:9000:24f2:2a00:10:fb02:4000:93a1
Name:   api.tmdb.org
Address: 2600:9000:24f2:2e00:10:fb02:4000:93a1
Name:   api.tmdb.org
Address: 2600:9000:24f2:6a00:10:fb02:4000:93a1
Name:   api.tmdb.org
Address: 2600:9000:24f2:7800:10:fb02:4000:93a1
Name:   api.tmdb.org
Address: 2600:9000:24f2:8000:10:fb02:4000:93a1
Name:   api.tmdb.org
Address: 2600:9000:24f2:9400:10:fb02:4000:93a1
Name:   api.tmdb.org
Address: 2600:9000:24f2:fa00:10:fb02:4000:93a1



RE: Jellyfin Unable To Connect To Data Base - SimplyUnknown - 2024-08-15

(2024-08-15, 03:33 PM)TheDreadPirate Wrote: On the command line can you run "curl -4 api.tmdb.org" and "curl -6 api.tmdb.org"?  A successful curl to that url should return a 301 message.

You can also run "nslookup api.tmdb.org" to see what addresses it resolves to.

Code:
chris@rat-trap:~$ nslookup api.tmdb.org
Server:        127.0.0.53
Address:        127.0.0.53#53

Non-authoritative answer:
Name:  api.tmdb.org
Address: 18.160.41.31
Name:  api.tmdb.org
Address: 18.160.41.40
Name:  api.tmdb.org
Address: 18.160.41.52
Name:  api.tmdb.org
Address: 18.160.41.88
Name:  api.tmdb.org
Address: 2600:9000:24f2:2600:10:fb02:4000:93a1
Name:  api.tmdb.org
Address: 2600:9000:24f2:2a00:10:fb02:4000:93a1
Name:  api.tmdb.org
Address: 2600:9000:24f2:2e00:10:fb02:4000:93a1
Name:  api.tmdb.org
Address: 2600:9000:24f2:6a00:10:fb02:4000:93a1
Name:  api.tmdb.org
Address: 2600:9000:24f2:7800:10:fb02:4000:93a1
Name:  api.tmdb.org
Address: 2600:9000:24f2:8000:10:fb02:4000:93a1
Name:  api.tmdb.org
Address: 2600:9000:24f2:9400:10:fb02:4000:93a1
Name:  api.tmdb.org
Address: 2600:9000:24f2:fa00:10:fb02:4000:93a1

So for the first two I got unable to resolve host, and for nslookup I got the following

Code:
;; communications error to 8.8.4.4#53: timed out
;; communications error to 8.8.4.4#53: timed out
;; communications error to 8.8.4.4#53: timed out
;; communications error to 8.8.8.8#53: timed out
;; communications error to 1.1.1.1#53: timed out
;; no servers could be reached



RE: Jellyfin Unable To Connect To Data Base - TheDreadPirate - 2024-08-15

It looks like you're not able to resolve hostnames at all.

In my prior post, can you ping any of the addresses my nslookup returned for api.tmdb.org?


RE: Jellyfin Unable To Connect To Data Base - SimplyUnknown - 2024-08-15

(2024-08-15, 04:13 PM)TheDreadPirate Wrote: It looks like you're not able to resolve hostnames at all.

In my prior post, can you ping any of the addresses my nslookup returned for api.tmdb.org?

Nope, Destination Host Unreachable