• 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: Jellyfin upgrade issue

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: Jellyfin upgrade issue

    cannot move '/var/lib/jellyfin/config'
    Abhishek Ranjan
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    #1
    2024-11-17, 12:11 PM
    Hi folks,
    I keep running into this issue every time jellyfin does a new release.
    My jellyfin is setup as a lxc using proxmox helper scripts.

    Code:
    root@jellyfin:~# sudo apt upgrade jellyfin
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    jellyfin is already the newest version (10.10.2+deb12).
    Calculating upgrade... Done
    The following packages will be upgraded:
      jellyfin-server
    1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    29 not fully installed or removed.
    Need to get 0 B/46.8 MB of archives.
    After this operation, 22.5 kB of additional disk space will be used.
    Do you want to continue? [Y/n]
    Reading changelogs... Done
    (Reading database ... 24588 files and directories currently installed.)
    Preparing to unpack .../jellyfin-server_10.10.2+deb12_amd64.deb ...
    Stopping Jellyfin!
    mv: cannot move '/var/lib/jellyfin/config' to '/etc/jellyfin/config': Directory not empty
    dpkg: error processing archive /var/cache/apt/archives/jellyfin-server_10.10.2+deb12_amd64.deb (--unpack):
    new jellyfin-server package pre-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    /var/cache/apt/archives/jellyfin-server_10.10.2+deb12_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I've been solving it so far by backing up my config directory, deleting it and then restoring the files after the upgrade.
    Is there a better way to do the upgrades ?
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-11-17, 03:49 PM
    /var/lib/jellyfin/config and /etc/jellyfin/config aren't part of the standard Jellyfin directory structure. I am assuming they are not owned by Jellyfin. Regardless, they should not be present in either directory.
    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]
    Oddstr13
    Offline

    Team Member

    Posts: 19
    Threads: 1
    Joined: 2023 Jun
    Reputation: 1
    Country:Norway
    #3
    2024-11-17, 11:04 PM
    It would be this block of code, presumably part of an old migration?
    https://github.com/jellyfin/jellyfin-pac...st#L57-L60


    sudo mv /var/lib/jellyfin/config{,~old} should be safe, and fix the issue. (moves config to config~old)
    Pollo
    Offline

    Junior Member

    Posts: 14
    Threads: 3
    Joined: 2024 Oct
    Reputation: 0
    Country:United States
    #4
    2024-11-18, 12:57 AM (This post was last modified: 2024-11-19, 10:53 PM by Pollo. Edited 1 time in total.)
    I'm not sure if this is an issue or not, but after upgrading the web and build versions are still 10.10.1.

    Right as I was typing this I ran the "jellyfin --help" command and it seemed to fix the issue. I'm not sure if this method is recommended, but this might be a 1 in a million situation for all I know.
    guunter
    Offline

    Junior Member

    Posts: 11
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:United States
    #5
    2024-11-18, 05:08 PM
    (2024-11-17, 12:11 PM)Abhishek Ranjan Wrote: Hi folks,
    I keep running into this issue every time jellyfin does a new release.
    My jellyfin is setup as a lxc using proxmox helper scripts.

    Code:
    root@jellyfin:~# sudo apt upgrade jellyfin
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    jellyfin is already the newest version (10.10.2+deb12).
    Calculating upgrade... Done
    The following packages will be upgraded:
      jellyfin-server
    1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    29 not fully installed or removed.
    Need to get 0 B/46.8 MB of archives.
    After this operation, 22.5 kB of additional disk space will be used.
    Do you want to continue? [Y/n]
    Reading changelogs... Done
    (Reading database ... 24588 files and directories currently installed.)
    Preparing to unpack .../jellyfin-server_10.10.2+deb12_amd64.deb ...
    Stopping Jellyfin!
    mv: cannot move '/var/lib/jellyfin/config' to '/etc/jellyfin/config': Directory not empty
    dpkg: error processing archive /var/cache/apt/archives/jellyfin-server_10.10.2+deb12_amd64.deb (--unpack):
    new jellyfin-server package pre-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    /var/cache/apt/archives/jellyfin-server_10.10.2+deb12_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I've been solving it so far by backing up my config directory, deleting it and then restoring the files after the upgrade.
    Is there a better way to do the upgrades ?

    When you use the helper-script you're supposed to just type update in console. You don't need to do sudo apt-get upgrade
    Abhishek Ranjan
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    #6
    2024-11-18, 08:22 PM
    (2024-11-17, 11:04 PM)Oddstr13 Wrote: It would be this block of code, presumably part of an old migration?
    https://github.com/jellyfin/jellyfin-pac...st#L57-L60


    sudo mv /var/lib/jellyfin/config{,~old} should be safe, and fix the issue. (moves config to config~old)
    Thank you for digging this in code.
    So I had this jellyfin set up as a docker container before, and now it's in a LXC. When I moved it,I tried to keep the directories same as before.
    It seems like even if you put all the directories as config variables properly, there are still hardcoded paths stored in the sqlite db, so had to manually fix those.

    Since then, I've been running this as is. If someone can help me move this to a more standard configuration, I'd be happy to do it to avoid this problem every time i update.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-11-18, 08:36 PM
    I'm assuming /etc/jellyfin/config and /var/lib/jellyfin/config are now empty. Since they aren't used in a non-Docker setup, you need to move them out of their respective directories.
    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]
    Abhishek Ranjan
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    #8
    2025-02-07, 07:25 PM
    (2024-11-18, 08:36 PM)TheDreadPirate Wrote: I'm assuming /etc/jellyfin/config and /var/lib/jellyfin/config are now empty.  Since they aren't used in a non-Docker setup, you need to move them out of their respective directories.

    I think since I moved from docker to jellyfin web and tried to keep the config, the paths might have followed me to here. What are the standard jelly fin config and other paths ?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #9
    2025-02-07, 07:50 PM
    Data directory - /var/lib/jellyfin
    Config directory - /etc/jellyfin
    Cache directory - /var/cache/jellyfin

    If you simply removed or relocated /var/lib/jellyfin/config and /etc/jellyfin/config, the upgrade should succeed.
    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]
    Abhishek Ranjan
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    #10
    2025-02-09, 10:57 AM (This post was last modified: 2025-02-09, 11:03 AM by Abhishek Ranjan. Edited 1 time in total.)
    (2025-02-07, 07:50 PM)TheDreadPirate Wrote: Data directory - /var/lib/jellyfin
    Config directory - /etc/jellyfin
    Cache directory - /var/cache/jellyfin

    If you simply removed or relocated /var/lib/jellyfin/config and /etc/jellyfin/config, the upgrade should succeed.

    Thanks, I did these. Are there any sure shot ways to check by doing a upgrade ? I'm already on the latest. I did a sudo apt install --reinstall jellyfin-server and that worked well.
    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