• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SOLVED: Migrate Jellyfish from bare metal linux to an lXC container

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: Migrate Jellyfish from bare metal linux to an lXC container

    Migrating Jellyfish from an old bare metal laptop running Ubuntu server to a ProxMox LXC container running Debian
    B B
    Offline

    Junior Member

    Posts: 7
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #1
    2024-03-18, 10:49 PM (This post was last modified: 2024-03-18, 11:05 PM by B B. Edited 1 time in total.)
    Hello,

    Please let me know if this is posted in the wrong place, as I am new.

    I wanted to transfer my Jellyfin installation from an old laptop that is running a bare-metal Ubuntu server to my new home lab server running ProxMox. I read on the subject as much as I could before starting and finally decided to follow the tips from this thread: https://forum.jellyfin.org/t-transferrin...x-to-linux. I copied the /etc/jellyfin and /var/lib/jellyfin directories from my old computer and put them on a USB flash drive. I then installed Jellyfin for Debian on a LXC container on my ProxMox server and stopped the process using "systemctl stop jellyfin" as instructed. I then copied the two directories onto the new Jellyfin installation, but I cannot connect to Jellyfin's Web UI. Some interesting things that might help narrow down the issue are: re: After Jellyfin is installed, I get the setup page without any issues, but it seems to break after I stop it and overwrite the /etc and /var/lib folders (and then run the service again). I might be mistaken here, but I also believe that installing jellyfin on the LXC container does not create the /etc and /var/lib directories at all, which makes me wonder if those files are stored somewhere else for some reason nowadays and I am breaking the system by putting them there. I can double check whether the directories are created in a new LXC container if you need me to.

    Thank you in advance!

    EDIT: Forgot to mention that I also changed the owner of both directories after copying them to the new computer.
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-03-18, 11:15 PM
    That forum post is for a bare metal linux to bare metal linux migration. Since this is a completely different install type, I'm not sure how much that post will apply here.

    How did you install Jellyfin in proxmox? Using the tteck install script? I'm going to assume yes for now.

    https://github.com/tteck/Proxmox

    I've never used Proxmox or LXCs, but based on tteck's Jellyfin install script it is just installing Jellyfin in the same manor as it would a bare metal debuntu system. But in a LXC. Simply copying /etc/jellyfin and /var/lib/jellyfin and putting them in the same path on the HOST system is not going to work. You would need to put them wherever Proxmox is putting the Jellyfin LXC's storage.

    Again, I have no idea where that is or even if it would work at all.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    B B
    Offline

    Junior Member

    Posts: 7
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #3
    2024-03-18, 11:25 PM
    (2024-03-18, 11:15 PM)TheDreadPirate Wrote: That forum post is for a bare metal linux to bare metal linux migration.  Since this is a completely different install type, I'm not sure how much that post will apply here.

    How did you install Jellyfin in proxmox?  Using the tteck install script?  I'm going to assume yes for now.

    https://github.com/tteck/Proxmox

    I've never used Proxmox or LXCs, but based on tteck's Jellyfin install script it is just installing Jellyfin in the same manor as it would a bare metal debuntu system.  But in a LXC.  Simply copying /etc/jellyfin and /var/lib/jellyfin and putting them in the same path on the HOST system is not going to work.  You would need to put them wherever Proxmox is putting the Jellyfin LXC's storage.

    Again, I have no idea where that is or even if it would work at all.


    Yes, I installed it using the Debuntu script, after also installing sudo and curl, which the Debian LXC container apparently does not come with. The files that I am overwriting are on the LXC container and not the host and yes, the folders are created during the installation(I just checked on a new container), so I was mistaken. As far as I could tell people are saying that Jellyfin runs without any issues on an LXC Container as long as you pass through the GPU, but none of them seem to have tried to transfer a previous installation, which means I have nowhere to read about this specific scenario.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-03-18, 11:33 PM
    So you have Proxmox. Then you have a Debian LXC that you installed Jellyfin to with the debuntu install script? Within this Debian LXC you copied and pasted /var/lib/jellyfin and /etc/jellyfin?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    B B
    Offline

    Junior Member

    Posts: 7
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #5
    2024-03-18, 11:35 PM
    (2024-03-18, 11:33 PM)TheDreadPirate Wrote: So you have Proxmox.  Then you have a Debian LXC that you installed Jellyfin to with the debuntu install script?  Within this Debian LXC you copied and pasted /var/lib/jellyfin and /etc/jellyfin?

    Yes.
    B B
    Offline

    Junior Member

    Posts: 7
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #6
    2024-03-18, 11:44 PM
    (2024-03-18, 11:33 PM)TheDreadPirate Wrote: So you have Proxmox.  Then you have a Debian LXC that you installed Jellyfin to with the debuntu install script?  Within this Debian LXC you copied and pasted /var/lib/jellyfin and /etc/jellyfin?

    As I mentioned in my first post, the Jellyfin Web UI works after the installation(before I overwrite the two directories) and gives me the setup screen, so I believe that my issue might be coming from the two directories themselves(corrupted maybe?).

    Is there a file or place in either of them that you could hint me towards or have me check? I tried checking the files on there for anything that stood out to me, but I would be lying if I said I understood everything I saw.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-03-18, 11:49 PM
    Pretty sure this will behave the same as a bare metal install from a Jellyfin data perspective. Just make sure that the file ownership is correct?

    Can you share your jellyfin logs via sourcebin? /var/log/jellyfin
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    B B
    Offline

    Junior Member

    Posts: 7
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #8
    2024-03-19, 12:03 AM (This post was last modified: 2024-03-19, 12:07 AM by B B. Edited 2 times in total.)
    (2024-03-18, 11:49 PM)TheDreadPirate Wrote: Pretty sure this will behave the same as a bare metal install from a Jellyfin data perspective.  Just make sure that the file ownership is correct?

    Can you share your jellyfin logs via sourcebin?  /var/log/jellyfin

    I have never used sourcebin, so hopefully pasting the log file on here will still work. At least it's not too big.


    Edit: I figured out what SourceBin is and have it here: https://srcb.in/n77y4IHMxa
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #9
    2024-03-19, 12:15 AM (This post was last modified: 2024-03-19, 12:15 AM by TheDreadPirate.)
    When you made a copy of /var/lib/jellyfin and /etc/jellyfin, did you recursively copy those directories? It sounds like the copy you made is incomplete or the new install doesn't have permissions to read the files maybe? These logs are those of a first time install.

    Try re-copying the copy you made and then "chown -R jellyfin: /var/lib/jellyfin /etc/jellyfin".
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    B B
    Offline

    Junior Member

    Posts: 7
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #10
    2024-03-19, 12:21 AM (This post was last modified: 2024-03-19, 12:22 AM by B B. Edited 1 time in total.)
    (2024-03-19, 12:15 AM)TheDreadPirate Wrote: When you made a copy of /var/lib/jellyfin and /etc/jellyfin, did you recursively copy those directories?  It sounds like the copy you made is incomplete or the new install doesn't have permissions to read the files maybe?  These logs are those of a first time install.

    Try re-copying the copy you made and then "chown -R jellyfin: /var/lib/jellyfin /etc/jellyfin".

    Yes, I made sure to recurse every command(cp, chown, chgrp) and I actually went back and did it a second time. Something that I noticed the second time around is that it did not copy one of the "People" in /var/lib/jellyfin/metadata/People, because of quotation marks in the name, but I would figure that missing the metadata for one person shouldn't break the whole service. Then again, it might, I don't know.
    Pages (2): 1 2 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode