Jellyfin Forum
Sync jellyfin settings across multiple servers - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Sync jellyfin settings across multiple servers (/t-sync-jellyfin-settings-across-multiple-servers)



Sync jellyfin settings across multiple servers - McNobbets00 - 2024-12-30

Hi there,

I would like to begin with the obligatory apology. Sorry if this isn't the right place.

My hardware:
1x Dell R220 running opnsense

2x HP microserver g7 n40l each with 3x 2TB drives and a 160GB SSD to boot linux mint from

4x HP micro PCs running proxmox with a 500GB SSD for boot and storage

My software:

The HP microservers have Linux mint installed natively and are configured as a 12TB gluster volume.

The proxmox nodes all have a Linux mint VM with jellyfin installed. The jellyfin media library is in a mounted directory on the gluster volume.

The microservers and the proxmox nodes are on separate subnets of the opnsense box but there aren't any firewall rules set up aside from a basic "allow any" rule so they communicate as if the opnsense box was a switch.

My problem:

There are 4 jellyfin instances and I would like them to sync their settings.

I can get the libraries to sync by mounting /var/lib/jellyfin/root/default to a folder on the gluster volume but the settings (such as enabling/disabling the library) won't sync. Checking the XML file, it does change the options but the other instances don't update.

Mounting /var/lib/jellyfin/data to the gluster volume just breaks the particular jellyfin instance so that screws up syncing users for now, but I plan to use LDAP/active directory to circumvent that.

Does anyone here have an idea of how to do it properly?

Thanks


RE: Sync jellyfin settings across multiple servers - TheDreadPirate - 2024-12-31

Most of what you need to sync is in jellyfin.db and library.db. Not just the root folder. Users are also contained in jellyfin.db.


RE: Sync jellyfin settings across multiple servers - McNobbets00 - 2024-12-31

Hi there,

Thanks for your response.

I have moved 2 of the VMs to syncthing as opposed to a mounted share for testing.

Syncing /var/lib/jellyfin/data/jellyfin.db and library.db seems to not have any effect.

Am I looking in the right place?

My theory aside from syncthing not behaving is that Jellyfin doesn't update it's configuration until a setting is changed. Can I force JF to look at it's setting in some way? Restarting the service with systemctl doesn't do the trick.


RE: Sync jellyfin settings across multiple servers - TheDreadPirate - 2025-01-01

Really, you should be syncing the entire /var/lib/jellyfin folder. There are a lot of things in the two database files that use absolute paths for metadata files and whatnot.

Again, Jellyfin IS NOT designed nor do we support this kind of deployment.


RE: Sync jellyfin settings across multiple servers - McNobbets00 - 2025-01-01

You were correct. Thank you.

Syncing the entirety of /var/lib/jellyfin causes the settings to transfer across, but only after a restart.

Now I'm on to getting jellyfin to update the live configuration every so often.