• 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-web folder missing

     
    • 0 Vote(s) - 0 Average

    SOLVED: jellyfin-web folder missing

    the jellyfin-web folder somehow moved itself while i wasn't even home
    Takane7
    Offline

    Junior Member

    Posts: 10
    Threads: 2
    Joined: 2024 Jan
    Reputation: 0
    Country:Austria
    #1
    2024-06-14, 08:44 AM
    While I was out and about I suddenly lost access to my jellyfin server via the webinterface, however, finamp on my phone still connected and worked fine, after looking into journalctl i saw that when it couldn't find the jellyfin-web folder anymore:
    Code:
    [10:56:09] [ERR] [1] Main: The server is expected to host the web client, but the provided content directory is either invalid or empty: /usr/lib/jellyfin/jellyfin-web. If you do not want to host the web client with the server, you may set the '--nowebclient' command line flag, or set'hostwebclient=false' in your config settings

    then I did a pacman -Syu to see if maybe there's a jellyfin update that might fix it, there was none, other things updated, none seem to be required by jellyfin
    then after that, finamp couldnt connect anymore either..

    now I found the missing folder twice somehow:
    - /lib/jellyfin/jellyfin-web/web
    - /usr/share/jellyfin/web

    so i tried to open it twice with the option -w with both folders, jellyfin started, but i can't log in anymore with any account
    Server specs: i5 7600K (4c/4t@4.5GHz); GTX 1050ti; 2TB HDD; 8GB DDR4; MSI Z270; Arch Linux; "Jellytem"; old gaming PC 
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-06-14, 04:00 PM
    How are you starting Jellyfin? Arch uses systemd, right? Are you manually starting jellyfin or using systemctl?
    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]
    Takane7
    Offline

    Junior Member

    Posts: 10
    Threads: 2
    Joined: 2024 Jan
    Reputation: 0
    Country:Austria
    #3
    2024-06-15, 02:21 PM
    (2024-06-14, 04:00 PM)TheDreadPirate Wrote: How are you starting Jellyfin?  Arch uses systemd, right?  Are you manually starting jellyfin or using systemctl?

    It's supposed to autostart with systemd on boot, but atm i can only get it to run if i manually start it, somehow the original startup-script (copied right from the jellyfin documentation), worked despite trying to access folders that don't even exist..
    this is that script: 
    Code:
    #!/bin/bash
    JELLYFINDIR="/opt/jellyfin"
    FFMPEGDIR="/usr/share/jellyfin-ffmpeg"

    $JELLYFINDIR/jellyfin/jellyfin \
    -d $JELLYFINDIR/data \
    -C $JELLYFINDIR/cache \
    -c $JELLYFINDIR/config \
    -l $JELLYFINDIR/log \
    --ffmpeg $FFMPEGDIR/ffmpeg
    and this is the systemd unit file, or at least how the documentation says it should look like
    Code:
    [Unit]
    Description=Jellyfin
    After=network.target

    [Service]
    Type=simple
    User=youruser
    Restart=always
    ExecStart=/opt/jellyfin/jellyfin.sh

    [Install]
    WantedBy=multi-user.target
    and this is what i set the systemd unit file to while trying to fix it:
    Code:
    [Unit]
    Description=Jellyfin
    After=network.target

    [Service]
    Type=simple
    User=jellyfin
    Restart=always
    ExecStart=/var/lib/jellyfin/jellyfin.sh

    [Install]
    WantedBy=multi-user.target
    and the startup script:  
    Code:
    #!/bin/bash
    JELLYFINDIR="/lib/jellyfin"
    FFMPEGDIR="/usr/share"

    jellyfin \
    -w /usr/lib/jellyfin/jellyfin-web/web \
    --ffmpeg $FFMPEGDIR/ffmpeg
    Server specs: i5 7600K (4c/4t@4.5GHz); GTX 1050ti; 2TB HDD; 8GB DDR4; MSI Z270; Arch Linux; "Jellytem"; old gaming PC 
    Takane7
    Offline

    Junior Member

    Posts: 10
    Threads: 2
    Joined: 2024 Jan
    Reputation: 0
    Country:Austria
    #4
    2024-06-15, 02:56 PM
    ok, so turns out the systemd unit file should've used my normal user...
    so that works now
    and I only had to start it and can login again..i have no idea why
    my only guess is that i kept trying to start it with root before, and that that's why it couldnt access wherever the user accounts are saved...somehow??
    maybe it just made a new file in the root home directory instead..
    I wasn't home so i could only try connecting remotely
    Server specs: i5 7600K (4c/4t@4.5GHz); GTX 1050ti; 2TB HDD; 8GB DDR4; MSI Z270; Arch Linux; "Jellytem"; old gaming PC 
    « 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