Jellyfin Forum
Cannot change Web-Files path - 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: Cannot change Web-Files path (/t-cannot-change-web-files-path)



Cannot change Web-Files path - YP2743 - 2024-07-15

Hello everyone I'm having a problem with the Web-Files path. My path is at "/usr/share/jellyfin/web". After I have a restart of my server for some reasons the path is changed to "/usr/lib/jellyfin/bin/jellyfin-web" which does not existed so when I try to access the web interface i see a blank screen. But when i use "systemctl status jellyfin" I see that my webdir is correctly at "/usr/share/jellyfin/web" but when I use the jellyfin command line it tells me that the webdir is at "/usr/lib/jellyfin/bin/jellyfin-web". 

I even try to edit the " jellyfin.service " file to use the --webdir option but stills have the same problem. I start my jellyfin service using "systemctl start jellyfin".

(systemctl status jellyfin)

root@ypserverConfused-face# systemctl status jellyfin
● jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/etc/systemd/system/jellyfin.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2024-07-15 22:52:55 +07; 11min ago
  Main PID: 4405 (jellyfin)
      Tasks: 26 (limit: 18965)
    Memory: 316.4M
        CPU: 13.682s
    CGroup: /system.slice/jellyfin.service
            └─4405 /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg

Jul 15 22:58:09 ypserver jellyfin[4405]:    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
Jul 15 22:58:09 ypserver jellyfin[4405]:    at Emby.Server.Implementations.Data.SqliteExtensions.ExecuteQuery(SqliteCommand >Jul 15 22:58:09 ypserver jellyfin[4405]:    at Emby.Server.Implementations.Data.SqliteItemRepository.GetItemList(InternalIte>Jul 15 22:58:09 ypserver jellyfin[4405]:    at Emby.Server.Implementations.Library.LibraryManager.GetItemList(InternalItemsQ>Jul 15 22:58:09 ypserver jellyfin[4405]:    at Emby.Server.Implementations.Library.LibraryManager.GetItemList(InternalItemsQ>Jul 15 22:58:09 ypserver jellyfin[4405]:    at Emby.Server.Implementations.ScheduledTasks.Tasks.AudioNormalizationTask.Execu>Jul 15 22:58:09 ypserver jellyfin[4405]:    at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInterna>Jul 15 22:58:09 ypserver jellyfin[4405]: [22:58:09] [INF] [33] Emby.Server.Implementations.ScheduledTasks.TaskManager: Audio>Jul 15 23:01:02 ypserver jellyfin[4405]: [23:01:02] [INF] [22] Emby.Server.Implementations.Session.SessionWebSocketListener:>Jul 15 23:03:50 ypserver jellyfin[4405]: [23:03:50] [INF] [17] Emby.Server.Implementations.Session.SessionWebSocketListener:>


(jellyfin)

root@ypserverConfused-face# jellyfin
[23:07:08] [INF] [1] Main: Jellyfin version: 10.9.7
[23:07:08] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /root/.local/share/jellyfin/log]"]
[23:07:08] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll"]
[23:07:08] [INF] [1] Main: Operating system: Ubuntu 22.04.4 LTS
[23:07:08] [INF] [1] Main: Architecture: X64
[23:07:08] [INF] [1] Main: 64-Bit Process: True
[23:07:08] [INF] [1] Main: User Interactive: True
[23:07:08] [INF] [1] Main: Processor count: 12
[23:07:08] [INF] [1] Main: Program data path: /root/.local/share/jellyfin
[23:07:08] [INF] [1] Main: Log directory path: /root/.local/share/jellyfin/log
[23:07:08] [INF] [1] Main: Config directory path: /root/.config/jellyfin
[23:07:08] [INF] [1] Main: Cache path: /root/.cache/jellyfin
[23:07:08] [INF] [1] Main: Web resources path: /usr/lib/jellyfin/bin/jellyfin-web
[23:07:08] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
[23:07:08] [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/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


(jellyfin.service file)
                    
[Unit]
Description = Jellyfin Media Server
After = network-online.target

[Service]
Type = simple
EnvironmentFile = /etc/default/jellyfin
User = jellyfin
Group = jellyfin
WorkingDirectory = /var/lib/jellyfin
ExecStart = /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP>
Restart = on-failure
TimeoutSec = 15
SuccessExitStatus=0 143

[Install]
WantedBy = multi-user.target


(Ubuntu version)

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:      jammy



RE: Cannot change Web-Files path - TheDreadPirate - 2024-07-15

Do not run Jellyfin by simply typing "jellyfin". The service file contains a bunch of parameters that point Jellyfin-web to the correct directory, among other options, that simply typing "jellyfin" does not include.

Try to avoid editing the service files. The "JELLYFIN_WEB_OPT" variable is defined in /etc/default/jellyfin and correctly points to /usr/share/jellyfin/web. Revert the manual change you made.

Always start Jellyfin with systemctl. It should be starting on boot anyway.