Fallenbagel / jellyseerr

Fork of overseerr for jellyfin support.
https://docs.jellyseerr.dev/
MIT License
3.95k stars 250 forks source link

TMDB API connection errors and 500 internal errors while fetching details #586

Closed mahenkpatel closed 12 months ago

mahenkpatel commented 1 year ago

Description

Since last 2 weeks, my jellyseerr instance is not able to fetch details of movies and shows from TMDB. Some of the titles are downloaded properly but for most it shows the below errors in logs

2023-12-03T05:31:12.822Z [info][Server]: Server ready on port 5055 2023-12-03T05:31:15.943Z [debug][API]: Something went wrong retrieving trending items {"errorMessage":"[TMDB] Failed to fetch all trending: read ECONNRESET"}

2023-12-03T05:31:36.675Z [debug][API]: Something went wrong retrieving trending items {"errorMessage":"[TMDB] Failed to fetch all trending: read ECONNRESET"} 2023-12-03T05:31:36.679Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-03T05:31:36.682Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1113278"} 2023-12-03T05:31:36.685Z [debug][API]: Something went wrong retrieving series {"errorMessage":"[TMDB] Failed to fetch TV show details: read ECONNRESET","tvId":"94244"} 2023-12-03T05:31:36.688Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"957999"} 2023-12-03T05:31:36.691Z [debug][API]: Something went wrong retrieving series {"errorMessage":"[TMDB] Failed to fetch TV show details: read ECONNRESET","tvId":"202411"} 2023-12-03T05:31:36.693Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1131409"} 2023-12-03T05:31:36.696Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-03T05:31:36.698Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-03T05:31:36.700Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"798021"} 2023-12-03T05:31:36.721Z [debug][API]: Something went wrong retrieving series {"errorMessage":"[TMDB] Failed to fetch TV show details: read ECONNRESET","tvId":"111086"} 2023-12-03T05:31:36.760Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"945337"} 2023-12-03T05:31:38.885Z [debug][API]: Something went wrong retrieving the series genre slider {"errorMessage":"[TMDB] Failed to fetch TV genres: read ECONNRESET"} 2023-12-03T05:31:38.888Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-03T05:31:38.891Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-03T05:31:38.894Z [debug][API]: Something went wrong retrieving the movie genre slider {"errorMessage":"[TMDB] Failed to fetch movie genres: read ECONNRESET"} 2023-12-03T05:31:38.978Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-03T05:31:39.139Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1113278"} 2023-12-03T05:31:39.151Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"798021"} 2023-12-03T05:31:39.153Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"945337"} 2023-12-03T05:31:39.155Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"957999"} 2023-12-03T05:31:39.157Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1131409"} 2023-12-03T05:31:39.178Z [debug][API]: Something went wrong retrieving series {"errorMessage":"[TMDB] Failed to fetch TV show details: read ECONNRESET","tvId":"202411"} 2023-12-03T05:31:39.220Z [debug][API]: Something went wrong retrieving series {"errorMessage":"[TMDB] Failed to fetch TV show details: read ECONNRESET","tvId":"111086"} 2023-12-03T05:31:39.300Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-03T05:31:40.086Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1113278"} 2023-12-03T05:31:40.090Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"957999"} 2023-12-03T05:31:40.093Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1131409"} 2023-12-03T05:31:40.096Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-03T05:31:40.098Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-03T05:31:40.101Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-03T05:31:40.103Z [debug][API]: Something went wrong retrieving series {"errorMessage":"[TMDB] Failed to fetch TV show details: read ECONNRESET","tvId":"202411"} 2023-12-03T05:31:40.105Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-03T05:31:40.107Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"798021"} 2023-12-03T05:31:40.109Z [debug][API]: Something went wrong retrieving series {"errorMessage":"[TMDB] Failed to fetch TV show details: read ECONNRESET","tvId":"111086"} 2023-12-03T05:31:44.822Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1113278"} 2023-12-03T05:31:44.827Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-03T05:31:44.831Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"957999"} 2023-12-03T05:31:44.835Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-03T05:31:44.838Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"798021"} 2023-12-03T05:31:45.837Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-03T05:31:45.843Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-03T05:31:45.848Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"957999"} 2023-12-03T05:31:49.830Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-03T05:31:49.836Z [debug][API]: Something went wrong retrieving the series genre slider {"errorMessage":"[TMDB] Failed to fetch TV genres: read ECONNRESET"} 2023-12-03T05:31:49.841Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-03T05:31:50.982Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1131409"} 2023-12-03T05:31:50.989Z [debug][API]: Something went wrong retrieving the movie genre slider {"errorMessage":"[TMDB] Failed to fetch movie genres: read ECONNRESET"} 2023-12-03T05:31:50.994Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1113278"} 2023-12-03T05:31:50.999Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"798021"} 2023-12-03T05:31:51.001Z [debug][API]: Something went wrong retrieving series {"errorMessage":"[TMDB] Failed to fetch TV show details: read ECONNRESET","tvId":"111086"} 2023-12-03T05:31:51.004Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-03T05:31:51.006Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-03T05:32:00.013Z [debug][Jobs]: Starting scheduled job: Download Sync

This was working fine until 2 weeks back.

If I click on any studio icons,or category like "Popular Series", "Movies Genres", it shows 500 internal server error, no logs for this error though

Screenshot 2023-12-03 at 11 02 45 AM

I even created a fresh docker container for Jellyseerr but the results was still same on the fresh installation, so it does not look like an issue with the configuration.

Version

1.7.0

Steps to Reproduce

  1. Install Jellyseerr on docker
  2. Jellyseerr frequently can't fetch movies/shows details

Screenshots

Screenshot 2023-12-03 at 11 02 45 AM

Logs

No response

Platform

desktop

Device

Linux

Operating System

Ubuntu 22.04

Browser

Firefox

Additional Context

Latest Jellyseerr version 1.7.0 installed on docker.

Code of Conduct

Fallenbagel commented 1 year ago

This is most likely a dns issue. could you add:

dns:
    - 1.1.1.1

to your docker compose

mahenkpatel commented 1 year ago

I did add the the dns 1.1.1.1 parameter to the docker compose, same results, no improvement.

Also, I have 15 more containers running on the same host, but none has any issues with dns so I don't think this is a dns problem.

I think "ECONNRESET" in the logs suggest that the problem is with the tcp connection reset from TMDB side, but not sure why this starts suddenly and also why it happens randomly with random titles.

Fallenbagel commented 1 year ago

Its not from the tmdb side. Your jellyseerr container doesn't have connection to the internet then. Try docker exec -it jellyseerr sh then try ping api.themoviedb.org

mahenkpatel commented 1 year ago

Here

ubuntu@homeserver:~/.docker/jellyseerr$ ubuntu@homeserver:~/.docker/jellyseerr$ docker exec -it jellyseerr sh /app # ping api.themoviedb.org PING api.themoviedb.org (13.227.254.5): 56 data bytes 64 bytes from 13.227.254.5: seq=0 ttl=247 time=43.068 ms 64 bytes from 13.227.254.5: seq=1 ttl=247 time=43.084 ms 64 bytes from 13.227.254.5: seq=2 ttl=247 time=43.085 ms 64 bytes from 13.227.254.5: seq=3 ttl=247 time=42.981 ms 64 bytes from 13.227.254.5: seq=4 ttl=247 time=43.290 ms ^C --- api.themoviedb.org ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 42.981/43.101/43.290 ms /app #

As i said it randomly happens with random titles where as the other titles will work fine randomly. So the container has internet connection just fine. If the issue was with internet connection, nothing would work.

Fallenbagel commented 1 year ago

If its randomly happening, then you're randomly losing connection to the moviedb api. That container itself is losing connection to the movie db api. Its still not from tbe tmdb side (if it was it will affect everyone including radarr users, overseerr, ombi).

Are you running any vpns?

You could try manually installing instead of docker to eliminate any docker related network issues

You could also try :develop but that's not really gonna help in this situation but worth a try (manual installation might be better to troubleshoot) as ECONNRESET means this is networking related.

mahenkpatel commented 1 year ago

No VPNs, but I think this is not Jellyseerr's problem though.

I ran packet capture and found that there are continuous reset packets coming from the server side (api.themoviedb.org) for every client request but I think this is my ISP that is resetting the connections not the actual TMDB servers. (Github isn't allowing me to attach pcap files)

Not sure why would the ISP close these sessions though.

You can close the issue. I will continue to troubleshoot from my end.

Thanks

mangotango69202 commented 1 year ago

same issue for me randomly get errored it's only happening with jellyseerr radarr and sonarr are fine

Fallenbagel commented 1 year ago

same issue for me randomly get errored it's only happening with jellyseerr radarr and sonarr are fine

Same ECONNRESET? I cannot seem to replicate that. Also you can't have that issue with sonarr. In radarr case the only time you access tmdb is when you add a movie so even if you face that issue it might slip out because of that.

mangotango69202 commented 1 year ago

yes ECONNRESET my logs are just filled with these 2023-12-03T15:18:41.259Z [debug][API]: Something went wrong retrieving popular movies{"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"}

Fallenbagel commented 1 year ago

yes ECONNRESET my logs are just filled with these 2023-12-03T15:18:41.259Z [debug][API]: Something went wrong retrieving popular movies{"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"}

Are you able to try native install? Just to eliminate any weird docker networking issues

mangotango69202 commented 12 months ago

Sorry for the delay lost connectivity for a while. The problem has appeared to fix itself, now it's back normal

mangotango69202 commented 12 months ago

you may close this issue

abhi-maybe commented 11 months ago

Happening again with me :(

Fallenbagel commented 11 months ago

Happening again with me :(

ECONNRESET?

aadhithbala commented 11 months ago

Not OP but I've been encountering this issue over the past couple of weeks. I attempted to resolve it by setting up a fresh Docker instance, everything seemed to be working fine for a few hours before going back to throwing the same "ECONNRESET" errors. Here are the recent logs.

2023-12-23T16:27:11.724Z [info][Jobs]: Scheduled jobs loaded 2023-12-23T16:27:12.288Z [info][Server]: Server ready on port 5055 2023-12-23T16:27:28.342Z [debug][API]: Something went wrong retrieving trending items {"errorMessage":"[TMDB] Failed to fetch all trending: read ECONNRESET"} 2023-12-23T16:27:28.353Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-23T16:27:29.084Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-23T16:27:29.091Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-23T16:27:29.097Z [debug][API]: Something went wrong retrieving the series genre slider {"errorMessage":"[TMDB] Failed to fetch TV genres: read ECONNRESET"} 2023-12-23T16:27:29.328Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-23T16:27:29.373Z [debug][API]: Something went wrong retrieving the movie genre slider {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-23T16:27:42.618Z [debug][API]: Something went wrong retrieving trending items {"errorMessage":"[TMDB] Failed to fetch all trending: read ECONNRESET"} 2023-12-23T16:27:42.645Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-23T16:27:43.330Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-23T16:27:43.403Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"899112"} 2023-12-23T16:27:43.408Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"891699"} 2023-12-23T16:27:43.431Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1071215"} 2023-12-23T16:27:43.462Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"726209"} 2023-12-23T16:27:43.469Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"915935"} 2023-12-23T16:27:43.863Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1063157"} 2023-12-23T16:27:43.871Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"466420"} 2023-12-23T16:27:43.876Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-23T16:27:43.909Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1007074"} 2023-12-23T16:27:48.497Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-23T16:27:48.635Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"891699"} 2023-12-23T16:27:52.803Z [debug][API]: Something went wrong retrieving trending items {"errorMessage":"[TMDB] Failed to fetch all trending: read ECONNRESET"} 2023-12-23T16:27:53.235Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: read ECONNRESET"} 2023-12-23T16:27:53.826Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1071215"} 2023-12-23T16:27:53.867Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"726209"} 2023-12-23T16:27:54.300Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"1063157"} 2023-12-23T16:27:54.314Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: read ECONNRESET"} 2023-12-23T16:27:54.330Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: read ECONNRESET","movieId":"466420"} 2023-12-23T16:28:00.029Z [debug][Jobs]: Starting scheduled job: Download Sync 2023-12-23T16:29:00.034Z [debug][Jobs]: Starting scheduled job: Download Sync 2023-12-23T16:30:00.037Z [debug][Jobs]: Starting scheduled job: Download Sync 2023-12-23T16:30:00.094Z [info][Jobs]: Starting scheduled job: Jellyfin Recently Added Sync

Fallenbagel commented 11 months ago

Unfortunately this seems to be an issue with isp+tmdb connection so I cannot help you there 😔

My advise would be try a proxy. From a simple small vps