Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: Jellyfin libraries don't resist reboot / library rebuild is finnicky #8448

Closed
1 task done
maurocolella opened this issue Sep 24, 2022 · 4 comments
Closed
1 task done
Labels
bug Something isn't working stale Stale and will be closed if no activity occurs

Comments

@maurocolella
Copy link

Please describe your bug

Hi. First of all, Jellyfin is stunning. Wish I could contribute more.

Second: I have had this problem twice so far, within just a few days.

I run the official Jellyfin container on Docker (Portainer) via docker compose, on top of Manjaro.

I use watchtower to update containers automatically, a bind mount to keep configurations, and BTRFS.

The first time, watchtower updated and restarted, I think Portainer itself, causing all my stacks to restart, and my library was shot. There still is a catalog of metadata and it seems correct, but I am unable to browse the library, for all purposes it shows empty.

I tried rescanning all libraries, this was a bit finnicky. Moving away from that web page, then coming back to it, or trying to restart the scan a few times didn't quite appear to produce the desired result.

This same situation has happened again this morning after a power outage.

Finally, I tried running the full library scan again patiently, keeping a browser tab open for it to run, and would you know? It worked.

Is it possible to implement some kind of auto-healing and/or integrity checks on the db?

Also, is the library rebuild task dependent upon UI? Is it something that could run decoupled, through some queue?

It's not too much of a snag, but there's a grey area.

Thanks.

Jellyfin Version

Other

if other:

10.8.4

Environment

- OS: Manjaro Linux 22.0.0 
- Virtualization: Docker
- Clients: Android, Android/Google TV, Linux (desktop), browser
- Browser: Chrome Version 105.0.5195.125 (Official Build) (64-bit)
- FFmpeg Version: ffmpeg version 5.1-Jellyfin
- Playback Method: ?
- Hardware Acceleration: N/A
- Plugins: None
- Reverse Proxy: Custom, Nging
- Base URL: via IP
- Networking:
- Storage:

Jellyfin logs

No new logs since outage. Logs end yesterday, no log output from rescan.

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maurocolella maurocolella added the bug Something isn't working label Sep 24, 2022
@jellyfin-bot
Copy link
Contributor

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@jellyfin-bot jellyfin-bot added the stale Stale and will be closed if no activity occurs label Jan 23, 2023
@jellyfin-bot jellyfin-bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2023
@szszoke
Copy link

szszoke commented Apr 15, 2023

I seem to be having a similar problem, my libraries disappeared from Jellyfin after a server reboot. @maurocolella did you manage to find a solution to this problem?

@mdcayton
Copy link

Having the same issue. Every time the container is restarted Jellyfin thinks its starting from a fresh install.

@maurocolella
Copy link
Author

Actually (and apologies for the belated reply), this wasn't a software issue in my case, but primarily due to docker starting before my file systems were mounted - hence bind mounts just weren't available.

When running in Docker, I reckon there is little if anything Jellyfin can do about that; although there might have been other issues at play.

This much was on me, and a problem with the underlying filesystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Stale and will be closed if no activity occurs
Projects
None yet
Development

No branches or pull requests

4 participants