Closed Pfuenzle closed 1 year ago
Make sure the jellyfin url is accessible from your browser. For example you can't use the docker's internal addresses, since the browser makes the requests. Also, can you check if you get any errors in your browser (F12 or right click > inspect element > console) and add them here? Either in the console tab of the developer tools or the network tab.
I had the same problem, I had to restart the container a few times and it eventually worked. I've been using my reversed proxied URL, sometimes it works, sometimes it doesn't.
Edit: This may have just been an issue with my Jellyfin URL, everything seems to work just fine now. #67
This might be an issue related to caching, can somebody confirm whether or not doing a full page refresh (ctrl + shift + r) fixes the issue temporarily?
It maybe related to issue #42 After performing a full page refresh the library fails to load and I receive many CORS errors that weren't previously present. But when I reload normally, I don't receive those errors and the page loads as expected.
It maybe related to issue #42 After performing a full page refresh the library fails to load and I receive many CORS errors that weren't previously present. But when I reload normally, I don't receive those errors and the page loads as expected.
I get the same errors, but the errors in your screenshot seem to only apply to a handful of requests to the TMDB. Iirc it's not involved in fetching the library.
I am having the same issue, but my errors are different. It seems there some type errors and errors when trying to get user.
@MenacingMight double check that your environment variables are alright, your client tries to access http://192.168.1.75:9494/192.168.1.74:8096/Users
for some reason. Also the requests to radarr & sonarr are refused, check that those base urls are accessbile from your browser.
Make sure the jellyfin url is accessible from your browser. For example you can't use the docker's internal addresses, since the browser makes the requests. Also, can you check if you get any errors in your browser (F12 or right click > inspect element > console) and add them here? Either in the console tab of the developer tools or the network tab.
Jellyfin, Sonarr and Radarr are all accessible with the browser and via the api on my device. I already checked the devconsole, no logs other then the occasional TMDB error (like written above).
I am not using the docker IPs, but fully set up domain names with Reverse Proxy, so IPs should not be a problem. Also, in the network tab of the devtools, I can see successful requests to the Jellyfin user/movie/series endpoint, but the library tab is still loading (even with cache disabled). The data returned from those endpoints are in the 20-30MB range (the Items endpoint is 126MB), is this a possible problem? Is there a way to enable some kind of debug log?
edit: Looking at the network tab, the data from the endpoint seems to be transmitted find (although one by one, which makes the initial load take 60 seconds or more), but after this the library tab is still unpopulated.
I left the tab open in the background and noticed, that it now hogs my whole CPU at 100%, but still nothing is showing. Is it processing the library data in the background? If so, it seems that reiverr has a problem with huge libraries, at least thats the only thing I can think of. I tried it with my Surface Pro 7 and my desktop with a i7-9770k, both with Firefox and Chrome, same result. After about 8 minutes with an unusable PC, some devconsole logs appeared with json info of some movies and it downloaded more images from TMDB. Does it download metadata for all entries at once? That could take a while :D I think for bigger libraries it would make sense to parse the library on the server, or at least load the images on-demand instead of once at the beginning.
@Pfuenzle Okay, well the size of the library is definitely the problem here then. How big library do you exactly have? Currently it tries to load the whole library at once and cache it on the browser, which apparently doesn't work with bigger libraries. I'll need to look if I can optimize this somehow.
About 2k shows and about 11k movies. Yeah, that wont work here. I couldnt look at the TMDB queries as my PC was frozen, but it seemed like they were for images&metadata? Couldnt this data get requested from Jellyfin if needed? This way, it would put less strain on TMDB's servers/your API-Key and there is not really a need to cache the data, since it was already requested by Jellyfin.
Maybe its enough if the list of series/movies gets requested once and then is stored locally for things like recommendations or other features. Otherwise, would require a lot of work to handle stuff like this on the server? With this, the API-Key would not be exposed to the user if the server sets it up kind of like a proxy setup
User -> reiverr/getLibraries -> jellyfin/getLibraries
Also, then the items list could be cached for more speed, as its a very expensive query to get the whole library, at least for bigger libraries with many single episodes.
If the issue still persists, even without the thousands of TMDB queries, doing something like this server-side is the only solution I can think of
BTW, if you need testing with this, Im happy to help or I could provide you with an API key to test.
Yeah, I'll probably have to actually think through a lot of the design choices to tackle this. First I'll need a good solution to caching, as well as probably redesign the library page to use posters instead of cards. Currently, because jellyfin only stores posters, the card backdrops have to be fetched from tmdb, which doesn't work if there are more of them than what can be cached. Also every show
Also, I created a separate issue for optimizing for larger libraries (#68). Those interested can track the progress of that in the taskboard.
@MenacingMight double check that your environment variables are alright, your client tries to access
http://192.168.1.75:9494/192.168.1.74:8096/Users
for some reason. Also the requests to radarr & sonarr are refused, check that those base urls are accessbile from your browser.
Ok I fixed my variables, but Jellyfin still does not work. Here are the errors I am getting now.
@MenacingMight what is the aws url?
@MenacingMight what is the aws url?
The first error is related to Reiverr, but the others are extension related.
Also here is my container logs
Error: Not found: /genres/documentary.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) Error: Not found: /genres/drama.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) Error: Not found: /genres/family.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) Error: Not found: /genres/fantasy.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) at runNextTicks (node:internal/process/task_queues:60:5) at process.processImmediate (node:internal/timers:447:9) Error: Not found: /genres/history.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) Error: Not found: /genres/music.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) at runNextTicks (node:internal/process/task_queues:60:5) at process.processImmediate (node:internal/timers:447:9) Error: Not found: /genres/horror.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) at runNextTicks (node:internal/process/task_queues:60:5) at process.processImmediate (node:internal/timers:447:9) Error: Not found: /genres/mystery.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) Error: Not found: /genres/romance.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) at runNextTicks (node:internal/process/task_queues:60:5) at process.processImmediate (node:internal/timers:447:9) Error: Not found: /genres/scienceFiction.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) Error: Not found: /genres/tvMovie.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) at runNextTicks (node:internal/process/task_queues:60:5) at process.processImmediate (node:internal/timers:447:9) Error: Not found: /genres/thriller.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) at runNextTicks (node:internal/process/task_queues:60:5) at process.processImmediate (node:internal/timers:447:9) Error: Not found: /genres/war.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43) Error: Not found: /genres/western.jpg at resolve (file:///usr/src/app/build/server/index.js:3925:18) at resolve (file:///usr/src/app/build/server/index.js:3800:34) at #options.hooks.handle (file:///usr/src/app/build/server/index.js:3970:61) at respond (file:///usr/src/app/build/server/index.js:3798:43)
Update I no longer get the runtime.lastError. Now I get the following and Jellyfin is still not working. For context I am running it on a docker container and here is my docker compose
version: '3.8'
name: reiverr
services:
reiverr:
image: ghcr.io/aleksilassila/reiverr:latest
container_name: reiverr
networks:
network:
ipv4_address: 192.168.1.75
ports:
- 9494:9494
environment:
PUBLIC_JELLYFIN_API_KEY: myapi
PUBLIC_JELLYFIN_BASE_URL: my_url
restart: unless-stopped
networks:
network:
name: br0
external: true
@MenacingMight that image loading error is not related the issue. How big is your jellyfin library?
@MenacingMight that image loading error is not related the issue. How big is your jellyfin library?
About 200 Movies and TV shows combined. I saw that others it took others a long time to load the first time so I guess I can wait till tmr and see.
I had the same problem, the documentation states that the environment variable should be PUBLIC_JELLYFIN_BASE_URL
but it only works for me when I use PUBLIC_JELLYFIN_URL
. It should work either way according to this line https://github.com/aleksilassila/reiverr/blob/4d84337f7d5d707887f248446e4685e89e15608d/src/lib/constants.ts#L17 but it fixed it for me anyhow
PUBLIC_JELLYFIN_URL
Ok that fixed it. Thank you. I can connect to Jellyfin now, but none of the content images load. I think it is because it is trying to use jellyfin.home instead of the ip and port. When I use the ip and port the images open in my browser.
I'm assuming that the v0.7.0 should've fixed issues regarding not being able to load large jellyfin libraries. Please reopen or comment if issues with library not loading persist.
I set up reiverr a day ago with the 0.3.0, and forgot about it, since my library did not load. Also, when clicking on a movie on the homepage, the detail page opens, but no buttons are revealed, instead there is a forever loading animation. Now, using the new 0.4.0, I get the same error
I set up sonarr, radarr and jellyfin with the correct urls and API-Keys (checked multiple times and have other tools set up with those keys). (I am running sonarr v4 and jellyfin 10.8.10)
I get no error logs, neither in jellyfin or in reiverr.
Jellyfin logs:
The reiverr logs are completely empty (except the genre stuff)
I am accessing reiverr using the port with http, and jellyfin, sonarr and radarr using a reverse proxy. For sonarr and radarr, I have all non-API endpoints behind a nginx auth request, so they are not accessible. Is reiverr accessing some non-api endpoints? I just now tried it without the SONARR and RADARR env vars (since they are now optional?), and it still does not load anything other than the popular movie list from Tmdb. What could this be?
Edit: Also tried it with https instead of the port and with correct cors headers, but still the same result. Browser console gives no errors.