Jellyfin Forum
SOLVED: Collection problem - 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: Collection problem (/t-solved-collection-problem)

Pages: 1 2


Collection problem - Afgin - 2024-05-22

Hello!


I have been using jellyfin server on my ubuntu machine for several years now, with little to no problems. 
Updating it frequently, to keep it up to date.

A week ago I made an update to newest version. Now all my movies from my custom collections flung out of the collections.
I haven't used the automatic collection thing at all. I have always manually made my own. 

So then I spent few hours organizing all back to their correct collections.

Today I updated it again, and restarted the server, and the same happened again.

Is this a known bug, or something I don't understand? 
Could't find any info on this problem.


I'll try to give more information if needed. Any help would be appreciated. Super frustrating problem.


RE: Collection problem - TheDreadPirate - 2024-05-22

Did you upgrade to 10.9.2? There were some collections specific bug fixes in that version.

Do you still have the server logs from when this happened? If so, can you share them via pastebin?


RE: Collection problem - Afgin - 2024-05-22

(2024-05-22, 02:09 PM)TheDreadPirate Wrote: Did you upgrade to 10.9.2?  There were some collections specific bug fixes in that version.

Do you still have the server logs from when this happened?  If so, can you share them via pastebin?


Hi!

Currently updated to 10.9.2 version

I tested it out a bit. Restarting jellyfin service didn't vanish stuff from collections, but by restarting the system it did once again. 

Sorry I'm not that familiar with those log files and stuff. I'm gonna try to figure it out, and get them for you.


RE: Collection problem - TheDreadPirate - 2024-05-22

The server logs are in /var/log/jellyfin/ or in the UI in Dashboard > Logs (left task bar at the bottom). Copy and paste the entire contents of your log file into pastebin.


RE: Collection problem - Afgin - 2024-05-22

(2024-05-22, 03:32 PM)TheDreadPirate Wrote: The server logs are in /var/log/jellyfin/ or in the UI in Dashboard > Logs (left task bar at the bottom).  Copy and paste the entire contents of your log file into pastebin.



This is somewhere after the last reboot. 
Hope this helps. 

Something to do with the paths. Dunno what's it about, since the paths do work and media plays correctly.


RE: Collection problem - TheDreadPirate - 2024-05-22

It looks like Jellyfin is starting before your drives are mounted. This is why this problem doesn't happen when you restart jellyfin but it does happen when you reboot.

Read this forum post.

https://forum.jellyfin.org/t-jellyfin-deletes-all-media-metadata-when-unable-to-access-media-filles

You will probably need implement the same solution and modify the jellyfin service file to wait for the drive to mount before starting.


RE: Collection problem - Afgin - 2024-05-22

(2024-05-22, 03:55 PM)TheDreadPirate Wrote: It looks like Jellyfin is starting before your drives are mounted.  This is why this problem doesn't happen when you restart jellyfin but it does happen when you reboot.

Read this forum post.

https://forum.jellyfin.org/t-jellyfin-deletes-all-media-metadata-when-unable-to-access-media-filles

You will probably need implement the same solution and modify the jellyfin service file to wait for the drive to mount before starting.


I see what you mean. 
To be honest I have had a certain problem for a long time. The thing is I never figured out a way to auto mount the HDD I have connected via sata. I tried some methods suggested in the interwebs, but none of em worked. HDD stood asleep until I click the Icon. 

So after awhile I just accepted my fate, and when I reboot I gotta manually click for it to wake up. 

External drives work automatically.

So in order to do your fix, I'd first have to try to fix that problem first.

But the thing is. There was never any problem with the collection thing before the latest updates. So what changed? 
Is there an easy way to revert back to older version?

Maybe I'll just stick to it if it works. Slightly-frowning-face


RE: Collection problem - TheDreadPirate - 2024-05-22

Unless you have a backup, you cannot downgrade.

The proper solution is to mount the drive via /etc/fstab

https://askubuntu.com/questions/154180/how-to-mount-a-new-drive-on-startup

Having the hard drive configured in fstab will auto mount the drive on boot and that will happen before Jellyfin starts.


RE: Collection problem - Afgin - 2024-05-22

(2024-05-22, 04:19 PM)TheDreadPirate Wrote: Unless you have a backup, you cannot downgrade.

The proper solution is to mount the drive via /etc/fstab

https://askubuntu.com/questions/154180/how-to-mount-a-new-drive-on-startup

Having the hard drive configured in fstab will auto mount the drive on boot and that will happen before Jellyfin starts.


Your theory was correct. I tried it by disabling jellyfin service, and then manually turning it on after reboot and when drives are online. 
Then it doesn't lose collection data.

To be honest I'm thinking of manually starting the service in the future rather than trying to configure all that stuff. 
That fstab page is the one I tried different solutions with none of them working for me. Probably cause I suck at this.


RE: Collection problem - TheDreadPirate - 2024-05-22

We can work through that.

What is the output of this command?

Code:
sudo cat /proc/mounts | egrep "/media/mutka/Seagatetwo|/media/mutka/Exos1"