Jellyfin Forum
SOLVED: jellyfin-web folder missing - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: jellyfin-web folder missing (/t-solved-jellyfin-web-folder-missing)



jellyfin-web folder missing - Takane7 - 2024-06-14

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


RE: jellyfin-web folder missing - TheDreadPirate - 2024-06-14

How are you starting Jellyfin? Arch uses systemd, right? Are you manually starting jellyfin or using systemctl?


RE: jellyfin-web folder missing - Takane7 - 2024-06-15

(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



RE: jellyfin-web folder missing - Takane7 - 2024-06-15

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