Hi there!
I’ve updated jellyfin today. And now I can’t access the webui. I get this error and I don’t know how to proceed. What should I do?
15:23:30] [FTL] [1] Main: Error while starting server.
System.InvalidOperationException: The server is expected to host the web client, but the provided content directory is either invalid or empty: /usr/lib/jellyfin/bin/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.
Thanks.
can you share some more information on your system. What SBC uses? what image version used? Your DietPi version? Where did you find this error message?
That’s true! Sorry, my bad.
I use a RPi4 and it runs DietPi v7.0.
I can’t reach the webui and, when I type jellyfin in the terminal, I get this error.
Thanks.
can you have a look to journalctl -u jellyfin.service
error messages
or just share the log output journalctl -u jellyfin.service
No errors there.
The only one I got is this one:
[16:47:26] [INF] [1] Main: Jellyfin version: 10.7.0
[16:47:26] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /root/.local/share/jellyfin/log]"]
[16:47:26] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll"]
[16:47:26] [INF] [1] Main: Operating system: Linux
[16:47:26] [INF] [1] Main: Architecture: Arm
[16:47:26] [INF] [1] Main: 64-Bit Process: False
[16:47:26] [INF] [1] Main: User Interactive: True
[16:47:26] [INF] [1] Main: Processor count: 4
[16:47:26] [INF] [1] Main: Program data path: /root/.local/share/jellyfin
[16:47:26] [INF] [1] Main: Web resources path: /usr/lib/jellyfin/bin/jellyfin-web
[16:47:26] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
[16:47:27] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /root/.cache/jellyfin
[16:47:27] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[16:47:27] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : []
[16:47:27] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[16:47:27] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: []
[16:47:27] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: []
[16:47:27] [FTL] [1] Main: Error while starting server.
System.InvalidOperationException: The server is expected to host the web client, but the provided content directory is either invalid or empty: /usr/lib/jellyfin/bin/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.
at Jellyfin.Server.Program.StartApp(StartupOptions options)
[16:47:27] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
[16:47:27] [INF] [2] Main: Received a SIGTERM signal, shutting down
can you share Jellyfin config file as well as service configuration
cat /etc/default/jellyfin
systemctl cat jellyfin.service
Your system seems to be running on some kind of default config and not like a instance installed by DietPi
Your config seems to be default
[16:47:26] [INF] [1] Main: Program data path: /root/.local/share/jellyfin
[16:47:26] [INF] [1] Main: Web resources path: /usr/lib/jellyfin/bin/jellyfin-web
[16:47:26] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
[16:47:27] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /root/.cache/jellyfin
while this is how it should looks like
Mar 09 16:34:24 DietPi4 jellyfin[3920]: [16:34:24] [INF] Program data path: /mnt/dietpi_userdata/jellyfin
Mar 09 16:34:24 DietPi4 jellyfin[3920]: [16:34:24] [INF] Web resources path: /usr/share/jellyfin/web
Mar 09 16:34:24 DietPi4 jellyfin[3920]: [16:34:24] [INF] Application directory: /usr/lib/jellyfin/bin/
Mar 09 16:34:25 DietPi4 jellyfin[3920]: [16:34:25] [INF] Setting cache path: /mnt/dietpi_userdata/jellyfin/cache
I found a solution.
https://github.com/jellyfin/jellyfin/issues/5442#issuecomment-794142731
-Download manual jellyfin-web package:
https://repo.jellyfin.org/releases/server/debian/versions/stable/web/10.7.0/jellyfin-web_10.7.0-1_all.deb
-This package appears to be in the /usr/share/jellyfin/web directory
-I deleted the contents of that directory manually.
-I installed the downloaded web package with dpkg -i.
-The web interface works again!
EDIT: The interface works but I can’t paly content.
EDIT 2: https://github.com/jellyfin/jellyfin/issues/5442#issuecomment-794191785
Also if you end up removing dir /usr/share/jellyfin/web, you also lose given config file. So either back it up, or pull new from the same debian package. I had to do it manually for some reason.
nice you found it. Looks apt package update to latest Jellyfin version has some challenges. good to keep it in mind if there are more users.