[Jellyfin] 502 Bad Gateway

:uk: My YunoHost server

Hardware: Odroid HC2
YunoHost version: 4.2.5.2
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : Static IP in the Interfaces file + extraargs=net.ifnames=0 in /boot/armbianEnv.txt

Description of my issue

I’ve installed Jellyfin a few days back, and when I’m trying to go to the app adress, I’ve got a 502 Bad Gateway error.
I’ve red the documentation of Jellyfin and tried to get the integrated web interface by typing domain.ynh.fr:8096 but it doesn’t work either, the page failed to load.


:fr: Mon serveur YunoHost

Matériel: Odroid HC2
Version de YunoHost: 4.2.5.2
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : IP Statique attribuée dans le fichier interfaces, + extraargs=net.ifnames=0 dans /boot/armbianEnv.txt

Description du problème

J’ai installé Jellyfin il y deux jours et le lien de l’application m’envoie vers une erreur 502 Bad Gateway. J’ai ensuite essayé de joindre l’interface web via l’adresse domaine.ynh.fr:8096 et la page charge jusqu’à une erreur de chargement.

Error from the app adress in Yunohost Administration panel :
image

Error from domain.ynh.fr:8096 :

Thanks !

What does the Jellyfin service log show?

There they are : hastebin

LOGFILE: journalctl
– Logs begin at Tue 2021-06-01 21:49:23 CEST, end at Wed 2021-06-02 23:54:17 CEST. –
Jun 02 23:54:00 systemd[1]: jellyfin.service: Service RestartSec=100ms expired, scheduling restart.
Jun 02 23:54:00 systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 478.
Jun 02 23:54:00 systemd[1]: Stopped Jellyfin Media Server.
Jun 02 23:54:00 systemd[1]: Started Jellyfin Media Server.
Jun 02 23:54:08 jellyfin[17932]: [23:54:08] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration ‘MigrateActivityLogDatabase’
Jun 02 23:54:08 jellyfin[17932]: CannotOpen: SQLitePCL.pretty.SQLiteException: unable to open database file
Jun 02 23:54:08 jellyfin[17932]: at SQLitePCL.pretty.SQLiteException.Throw(Int32 rc, Int32 extended, String msg)
Jun 02 23:54:08 jellyfin[17932]: at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
Jun 02 23:54:08 jellyfin[17932]: at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build()
Jun 02 23:54:08 jellyfin[17932]: at SQLitePCL.pretty.SQLite3.Open(String filename, ConnectionFlags flags, String vfs)
Jun 02 23:54:08 jellyfin[17932]: at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform()
Jun 02 23:54:08 jellyfin[17932]: at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
Jun 02 23:54:08 jellyfin[17932]: [23:54:08] [FTL] [1] Main: Error while starting server.
Jun 02 23:54:08 jellyfin[17932]: CannotOpen: SQLitePCL.pretty.SQLiteException: unable to open database file
Jun 02 23:54:08 jellyfin[17932]: at SQLitePCL.pretty.SQLiteException.Throw(Int32 rc, Int32 extended, String msg)
Jun 02 23:54:08 jellyfin[17932]: at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
Jun 02 23:54:08 jellyfin[17932]: at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build()
Jun 02 23:54:08 jellyfin[17932]: at SQLitePCL.pretty.SQLite3.Open(String filename, ConnectionFlags flags, String vfs)
Jun 02 23:54:08 jellyfin[17932]: at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform()
Jun 02 23:54:08 jellyfin[17932]: at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
Jun 02 23:54:08 jellyfin[17932]: at Jellyfin.Server.Program.StartApp(StartupOptions options)
Jun 02 23:54:08 systemd[1]: jellyfin.service: Main process exited, code=exited, status=143/n/a
Jun 02 23:54:08 systemd[1]: jellyfin.service: Failed with result ‘exit-code’.
Jun 02 23:54:08 systemd[1]: jellyfin.service: Service RestartSec=100ms expired, scheduling restart.
Jun 02 23:54:08 systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 479.
Jun 02 23:54:08 systemd[1]: Stopped Jellyfin Media Server.
Jun 02 23:54:08 systemd[1]: Started Jellyfin Media Server.
Jun 02 23:54:16 jellyfin[17948]: [23:54:16] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration ‘MigrateActivityLogDatabase’
Jun 02 23:54:16 jellyfin[17948]: CannotOpen: SQLitePCL.pretty.SQLiteException: unable to open database file
Jun 02 23:54:16 jellyfin[17948]: at SQLitePCL.pretty.SQLiteException.Throw(Int32 rc, Int32 extended, String msg)
Jun 02 23:54:16 jellyfin[17948]: at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
Jun 02 23:54:16 jellyfin[17948]: at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build()
Jun 02 23:54:16 jellyfin[17948]: at SQLitePCL.pretty.SQLite3.Open(String filename, ConnectionFlags flags, String vfs)
Jun 02 23:54:16 jellyfin[17948]: at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform()
Jun 02 23:54:16 jellyfin[17948]: at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
Jun 02 23:54:16 jellyfin[17948]: [23:54:16] [FTL] [1] Main: Error while starting server.
Jun 02 23:54:16 jellyfin[17948]: CannotOpen: SQLitePCL.pretty.SQLiteException: unable to open database file
Jun 02 23:54:16 jellyfin[17948]: at SQLitePCL.pretty.SQLiteException.Throw(Int32 rc, Int32 extended, String msg)
Jun 02 23:54:16 jellyfin[17948]: at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
Jun 02 23:54:16 jellyfin[17948]: at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build()
Jun 02 23:54:16 jellyfin[17948]: at SQLitePCL.pretty.SQLite3.Open(String filename, ConnectionFlags flags, String vfs)
Jun 02 23:54:16 jellyfin[17948]: at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform()
Jun 02 23:54:16 jellyfin[17948]: at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
Jun 02 23:54:16 jellyfin[17948]: at Jellyfin.Server.Program.StartApp(StartupOptions options)
Jun 02 23:54:16 systemd[1]: jellyfin.service: Main process exited, code=exited, status=143/n/a
Jun 02 23:54:16 systemd[1]: jellyfin.service: Failed with result ‘exit-code’.
Jun 02 23:54:17 systemd[1]: jellyfin.service: Service RestartSec=100ms expired, scheduling restart.
Jun 02 23:54:17 systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 480.
Jun 02 23:54:17 systemd[1]: Stopped Jellyfin Media Server.
Jun 02 23:54:17 systemd[1]: Started Jellyfin Media Server.

Thanks

OK thanks! This one has already been reported, and I have yet to find a fix. Wait and see. :man_shrugging:t3:

Can you check for me that all files in /etc/jellyfin and /var/lib/jellyfin belong to the
jellyfin user?

I got these results, if it’s what you asked :confused:

For /etc/jellyfin

-rw-r–r-- 1 jellyfin jellyfin 1362 May 31 12:39 logging.default.json
-rw-r–r-- 1 jellyfin root 1356 Jun 2 22:48 logging.json
-rw-r–r-- 1 jellyfin jellyfin 535 May 31 12:40 migrations.xml
-rw-r–r-- 1 jellyfin jellyfin 1391 May 31 12:40 network.xml
-rw-r–r-- 1 jellyfin jellyfin 6733 May 31 12:40 system.xml

for /var/lib/jellyfin

drwxr-xr-x 2 jellyfin jellyfin 4096 Jun 5 16:37 data
drwxr-xr-x 2 jellyfin jellyfin 4096 May 31 12:40 metadata
drwxr-xr-x 4 jellyfin jellyfin 4096 May 31 12:40 plugins

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.