• 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 Migrating from Debian to Ubuntu

     
    • 0 Vote(s) - 0 Average

    Migrating from Debian to Ubuntu

    Broom5229
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2023 Sep
    Reputation: 0
    Country:United States
    #1
    2023-09-04, 10:25 PM
    Hello all, I'm having an issue that I can't seem to find any answers for and I've been searching for a few hours. So I'm moving from an old, "gonna die any day" Debian machine to a much higher spec'd (by comparison) Ubuntu device. I mainly used this Reddit post since there doesn't seem to be any documentation on moving from Linux to Linux: https://www.reddit.com/r/jellyfin/commen...ux_server/. In keeping with that post, I installed Ubuntu on the new device, installed Jellyfin, moved my /etc/jellyfin and /var/lib/jellyfin directories over, and changed the permissions using chmod 777 (I know that's not great, moving on). I was able to get a point where my new server does indeed see that there's an existing database, but it keeps saying I have the wrong username/password and it won't let me reset the password even when I'm on the same network (no VPN, same subnet, etc, I can't possibly be any more on the same network). Am I doing something wrong? Did I miss a step? Or is this migration simply not possible? My main concern is keeping watching history/progress but it would also be nice if I can keep users and passwords so my friends/family using the server can just log in as if nothing happened.

    Thanks in advance. Happy to share any logs or additional info, but I'm kind of a newb when it comes to server administration so you may need to tell me where they are.
    skribe
    Offline

    Community Moderator

    Posts: 147
    Threads: 0
    Joined: 2023 Jun
    Reputation: 5
    #2
    2023-09-05, 01:45 PM
    It should be that simple. Just copy the configuration and data directories and make sure that jellyfin has permission to access them. If that's not working, check to make sure that the files are actually copying correctly, and not getting corrupted in the migration process for one reason or another.
    Broom5229
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2023 Sep
    Reputation: 0
    Country:United States
    #3
    2023-09-07, 02:14 AM
    Okay the issue was solved. Somehow, no matter how many times I copied the original files from the old Debian server or how many different USB sticks I used, something somewhere was getting corrupted. I finally used scp and everything copied flawlessly. I'm gonna blame the old Debian server's hardware, which was a major reason I was wanting to migrate in the first place: old, unstable, low-powered. Thanks to those in the Matrix room who were able to help me figure that out. God damn that one was frustrating. It seemed like everything was copying so I never even suspected data corruption.
    pixel24
    Offline

    Member

    Posts: 196
    Threads: 56
    Joined: 2023 Aug
    Reputation: 1
    Country:Germany
    #4
    2023-09-07, 06:48 AM
    This is interesting. I unfortunately didn't quite understand what the problem was with Debian. I ask because I currently run my JF on an Ubuntu server and would like to go the other way and move to Debian.

    When the exams are over here :-)
    demuxer86
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2023 Sep
    Reputation: 0
    Country:United States
    #5
    2023-09-07, 02:24 PM
    Ubuntu is Debian....
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2023-09-07, 02:50 PM
    Ubuntu is not simply a copy+paste of Debian with a skin. Canonical has made a lot of quality of life changes to Debian to make it more accessible. In addition to providing professional support and much longer LTS support for Enterprises and Pro users (Ubuntu Pro is free for personal use, up to 5 PCs).

    Choosing Debian over Ubuntu boils down to how strong your FLOSS convictions are.
    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]
    TallNerd87
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Dec
    Reputation: 0
    #7
    2024-12-29, 02:54 AM
    (2023-09-07, 06:48 AM)pixel24 Wrote: This is interesting. I unfortunately didn't quite understand what the problem was with Debian. I ask because I currently run my JF on an Ubuntu server and would like to go the other way and move to Debian.

    When the exams are over here :-)

    I did what you are trying to (or have done) just now. I had some issues but was able to get it to work with the following:

    Migrating Jellyfin apt install from Ubuntu to Debian:

    The paths you need to copy are:
    /var/lib/jellyfin
    /etc/jellyfin

    The issue is there are files that can only be read/copied by the root user, so the root user is needed on both systems to properly copy all of the files.

    To enable root SSH (ubuntu/debian, I did this on my old server):
    Edit the /etc/ssh/sshd_config file, there should be a line that reads:
    PermitRootLogin [some statement, ie prohibit-password or yes]
    That line needs to read:
    PermitRootLogin yes

    For me, there was just a # in front of it commenting out the line, so I removed the #.
    Once /etc/ssh/sshd_config is edited and saved, you need to restart the ssh service:
    sudo systemctl restart ssh

    Now you can ssh into the root user on the old server. The steps I took are:
    1. Installed jellyfin on the new server.
    2. Stopped the jellyfin service on the new and old servers.
        a. sudo systemctl stop jellyfin
    3. Enabled root ssh on the old server.
        a. See above instructions.
    4. On the new server, ran the following:
        a. su -
            i. Enter root password
        b. rsync -a --info=progress2 root@[old_server]:/var/lib/jellyfin /var/lib
            i. -a does a bunch of things for rsync, but ultimately it saves the permissions and dates of all files
            ii. --info=progress2 just gives a nice readout of the progress
        c. rsync -a --info=progress2 root@[old_server]:/etc/jellyfin /etc
    5. Started the jellyfin service on the new server.
        a. sudo systemctl start jellyfin
    6. Access the new jellyfin service via the web interface and all of your users should be there.
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 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