2024-07-10, 03:16 PM
(This post was last modified: 2024-07-10, 05:20 PM by jaiovi. Edited 2 times in total.)
Hello!
Jellyfin 1.9.7 - installed one liner
Ubuntu 22.0 A1 compute OCI
I restarted my server from web (button), but failed to restart. Trying to "sudo systemctl start jellyfin" again showed this status code
I noticed that in /var/logs/jellyfin this status
I made chown to ubuntu and jellyfin, none of them worked
Even restarting, the log didnt regenerate (where's saved then?)
Also I noticed that /opt/jellyfin/jellyfin.sh didn't existed, so I created this file:
And now we have 1 exit code:
sudo journalctl -u jellyfin gets:
Looking forward to the answer
Jellyfin 1.9.7 - installed one liner
Ubuntu 22.0 A1 compute OCI
I restarted my server from web (button), but failed to restart. Trying to "sudo systemctl start jellyfin" again showed this status code
Code:
ubuntu@cine-kixta:/var/log/jellyfin$ sudo service jellyfin status
× jellyfin.service - Jellyfin
Loaded: loaded (/etc/systemd/system/jellyfin.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/jellyfin.service.d
└─jellyfin.service.conf
Active: failed (Result: exit-code) since Wed 2024-07-10 14:31:56 UTC; 11min ago
Process: 1727 ExecStart=/opt/jellyfin/jellyfin.sh (code=exited, status=203/EXEC)
Main PID: 1727 (code=exited, status=203/EXEC)
CPU: 764us
Jul 10 14:31:56 cine-kixta systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Jul 10 14:31:56 cine-kixta systemd[1]: Stopped Jellyfin.
Jul 10 14:31:56 cine-kixta systemd[1]: jellyfin.service: Start request repeated too quickly.
Jul 10 14:31:56 cine-kixta systemd[1]: jellyfin.service: Failed with result 'exit-code'.
Jul 10 14:31:56 cine-kixta systemd[1]: Failed to start Jellyfin.
I noticed that in /var/logs/jellyfin this status
Code:
[2024-07-10 13:19:47.452 +00:00] [INF] Remote IP filter is "Allowlist"
[2024-07-10 13:19:47.453 +00:00] [INF] Filtered subnets: []
[2024-07-10 13:19:47.575 +00:00] [FTL] Error while starting server
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 8: 'attempt to write a readonly database'.
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Emby.Server.Implementations.Data.SqliteExtensions.Execute(SqliteConnection sqliteConnection, String commandText)
at Emby.Server.Implementations.Data.ManagedConnection.Execute(String commandText)
at Emby.Server.Implementations.Data.BaseSqliteRepository.Initialize()
at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize()
at Emby.Server.Implementations.ApplicationHost.InitializeServices()
at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
[2024-07-10 13:19:47.583 +00:00] [INF] Running query planner optimizations in the database... This might take a while
[2024-07-10 13:19:47.585 +00:00] [INF] Disposing "CoreAppHost"
[2024-07-10 13:19:47.586 +00:00] [INF] Disposing "PluginManager"
I made chown to ubuntu and jellyfin, none of them worked
Code:
sudo chown -R jellyfin:jellyfin /var/lib/jellyfin
sudo chmod -R u+rw /var/lib/jellyfin
Even restarting, the log didnt regenerate (where's saved then?)
Also I noticed that /opt/jellyfin/jellyfin.sh didn't existed, so I created this file:
Code:
#!/bin/bash
/usr/bin/jellyfin
And now we have 1 exit code:
Code:
× jellyfin.service - Jellyfin
Loaded: loaded (/etc/systemd/system/jellyfin.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/jellyfin.service.d
└─jellyfin.service.conf
Active: failed (Result: exit-code) since Wed 2024-07-10 14:59:26 UTC; 2s ago
Process: 2374 ExecStart=/opt/jellyfin/jellyfin.sh (code=exited, status=1/FAILURE)
Main PID: 2374 (code=exited, status=1/FAILURE)
CPU: 327ms
Jul 10 14:59:26 cine-kixta systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Jul 10 14:59:26 cine-kixta systemd[1]: Stopped Jellyfin.
Jul 10 14:59:26 cine-kixta systemd[1]: jellyfin.service: Start request repeated too quickly.
Jul 10 14:59:26 cine-kixta systemd[1]: jellyfin.service: Failed with result 'exit-code'.
Jul 10 14:59:26 cine-kixta systemd[1]: Failed to start Jellyfin.
sudo journalctl -u jellyfin gets:
Code:
Jul 10 15:15:53 cine-kixta jellyfin.sh[2578]: [15:15:53] [INF] [1] Main: Log directory path: /home/ubuntu/.local/share/jellyfin/log
Jul 10 15:15:53 cine-kixta jellyfin.sh[2578]: [15:15:53] [INF] [1] Main: Config directory path: /home/ubuntu/.config/jellyfin
Jul 10 15:15:53 cine-kixta jellyfin.sh[2578]: [15:15:53] [INF] [1] Main: Cache path: /home/ubuntu/.cache/jellyfin
Jul 10 15:15:53 cine-kixta jellyfin.sh[2578]: [15:15:53] [INF] [1] Main: Web resources path: /usr/lib/jellyfin/bin/jellyfin-web
Jul 10 15:15:53 cine-kixta jellyfin.sh[2578]: [15:15:53] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
Jul 10 15:15:53 cine-kixta jellyfin.sh[2578]: [15:15:53] [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/jellyf>
Jul 10 15:15:53 cine-kixta systemd[1]: [b]jellyfin.service: Main process exited, code=exited, status=1/FAILURE[/b]
Jul 10 15:15:53 cine-kixta systemd[1]: [b]jellyfin.service: Failed with result 'exit-code'.[/b]
Jul 10 15:15:53 cine-kixta systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 4.
Jul 10 15:15:53 cine-kixta systemd[1]: Stopped Jellyfin.
Jul 10 15:15:53 cine-kixta systemd[1]: Started Jellyfin.
Jul 10 15:15:53 cine-kixta systemd[1]: Started Jellyfin.
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Jellyfin version: 10.9.7
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /home/ubuntu/.local/share/jellyfin/log]"]
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll"]
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Operating system: Ubuntu 22.04.4 LTS
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Architecture: Arm64
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: 64-Bit Process: True
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: User Interactive: True
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Processor count: 2
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Program data path: /home/ubuntu/.local/share/jellyfin
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Log directory path: /home/ubuntu/.local/share/jellyfin/log
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Config directory path: /home/ubuntu/.config/jellyfin
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Cache path: /home/ubuntu/.cache/jellyfin
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Web resources path: /usr/lib/jellyfin/bin/jellyfin-web
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
Jul 10 15:15:53 cine-kixta jellyfin.sh[2589]: [15:15:53] [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/jellyf>
Jul 10 15:15:53 cine-kixta systemd[1]: jellyfin.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 15:15:53 cine-kixta systemd[1]: jellyfin.service: Failed with result 'exit-code'.
Jul 10 15:15:54 cine-kixta systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Jul 10 15:15:54 cine-kixta systemd[1]: Stopped Jellyfin.
Jul 10 15:15:54 cine-kixta systemd[1]: jellyfin.service: Start request repeated too quickly.
Jul 10 15:15:54 cine-kixta systemd[1]: jellyfin.service: Failed with result 'exit-code'.
Jul 10 15:15:54 cine-kixta systemd[1]: Failed to start Jellyfin.
Looking forward to the answer