[Jellyfin] Media streaming server

Jellyfin is served via NGINX from its internal server, hence the proxy_pass clause. I see nothing wrong in this conf file. A 502 Bad Gateway error means the NGINX cannot communicate with this internal Jellyfin server, most likely because the service handling it has failed.

Can you:

  • restart the service (via the webadmin or systemctl restart jellyfin)
  • then share the output of journalctl -xe -u jellyfin.service

NB: please use the block code quotes: ``` before and after the logs, and not the standard quote >

```
like this
```

Thanks @tituspijean, restarted service, here is the output:


– An ExecStart= process belonging to unit jellyfin.service has exited.

– The process’ exit code is ‘exited’ and its exit status is 143.
Jul 09 18:51:40 redacted-domain systemd[1]: jellyfin.service: Failed with result ‘exit-code’.
– Subject: Unit failed
– Defined-By: systemd
– Support: Debian -- User Support

– The unit jellyfin.service has entered the ‘failed’ state with result ‘exit-code’.
lines 2367-2389/2389 (END)
Jul 09 18:51:40 redacted-domain jellyfin[17317]: [18:51:40] [FTL] [1] Main: Error while starting server.
Jul 09 18:51:40 redacted-domain jellyfin[17317]: CannotOpen: SQLitePCL.pretty.SQLiteException: unable to open
Jul 09 18:51:40 redacted-domain jellyfin[17317]: at SQLitePCL.pretty.SQLiteException.Throw(Int32 rc, Int32
Jul 09 18:51:40 redacted-domain jellyfin[17317]: at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, I
Jul 09 18:51:40 redacted-domain jellyfin[17317]: at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build
Jul 09 18:51:40 redacted-domain jellyfin[17317]: at SQLitePCL.pretty.SQLite3.Open(String filename, Connect
Jul 09 18:51:40 redacted-domain jellyfin[17317]: at Jellyfin.Server.Migrations.Routines.MigrateActivityLog
Jul 09 18:51:40 redacted-domain jellyfin[17317]: at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreApp
Jul 09 18:51:40 redacted-domain jellyfin[17317]: at Jellyfin.Server.Program.StartApp(StartupOptions option
Jul 09 18:51:40 redacted-domain systemd[1]: jellyfin.service: Main process exited, code=exited, status=143/n/
– Subject: Unit process exited
– Defined-By: systemd
– Support: Debian -- User Support

– An ExecStart= process belonging to unit jellyfin.service has exited.

– The process’ exit code is ‘exited’ and its exit status is 143.
Jul 09 18:51:40 redacted-domain systemd[1]: jellyfin.service: Failed with result ‘exit-code’.
– Subject: Unit failed
– Defined-By: systemd
– Support: Debian -- User Support

– The unit jellyfin.service has entered the ‘failed’ state with result ‘exit-code’.

Salut à tous,
je poste ici mais peut-être devrais-je mieux ouvrir un autre sujet… enfin je voulais savoir si vous avez remarqué une limitation lorsque vous télécharger un fichier depuis votre jellyfin, je m’explique lorsque je lance un téléchargement sur mon JF depuis un pc chez un ami j’ai au début un débit de 2Mb/s voir un peu plus puis rapidement cela redescend pour ce caler à 1Mb/s et ça n’en bouge plus… est-ce qu’il est possible d’optimiser le taux d’upload de mon JF, ou est-ce que cela vient de mon routeur 4G (Bouygues) qui bride le transfert…
Si vous avez des idées, merci par avance…

@kloinka your log is truncated, it is missing important information. Try

journalctl -xe -u jellyfin.service | yunopaste


@AC2N, il y a tellement de choses qui pourraient affecter le débit, je ne saurais pas t’aider. Tourne toi plutôt vers le support officiel de Jellyfin, il n’y a priori rien dans la config de Jellyfin pour YunoHost qui toucherait à cette perf, et ils ont sûrement plus d’expertise sur ça.

1 Like

That didn’t work:
journalctl -xe -u jellyfin.service | yunopaste
/usr/bin/yunopaste: line 18: /usr/bin/curl: Argument list too long

but dumped it to: debian Pastezone

My YunoHost server

**Hardware: Odroid N2+/N2/Helios 64 (3 ARM board)
YunoHost version: 4.2.6.1 (stable)
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 ? : no

Hello I can’t install Jellyfin via my yuno since months now.

Here the log https://paste.yunohost.org/raw/ohopikejez

Is it a problem from my config or more general ?

Any tips ?

Thks by advance.

Somehow one of the directories does not get removed while your server removes the app. Try sudo rm -rf /var/lib/jellyfin
And try installing again.

Ca marche merci beaucoup

1 Like

:test_tube: New version in testing!

  • :arrow_heading_up: Upgrade to 10.7.7
  • :bug: LDAP plugin can now be upgraded alongside Jellyfin

To test: yunohost app install https://github.com/YunoHost-Apps/jellyfin_ynh/tree/testing --force
Feedback is most welcome. :rocket: Notably, I feel that the app takes noticeably more time starting up. What do you think?

2 Likes

Bonjour à tous,

Tout d’abord merci pour votre travail,

Mon serveur YunoHost

Matériel: VPS OVH
Version de YunoHost: 4.2.8.3
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modifications particulières sur votre instance ? : non

Description du problème

L’application Jellyfin 1.7.6 a été désinstallé de mon serveur car des problèmes mineurs avec authentification LDAP (plugin LDAP) étaient apparus. Lors de la nouvelle installation de Jellyfin 10.7.7~ynh1, le script d’installation s’exécute correctement mais l’application ne s’initialise pas et redémarre à l’infini.

Oct 27 12:13:19 systemd[1]: Started Jellyfin Media Server.
Oct 27 12:13:22 jellyfin[15233]: [12:13:22] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration 'MigrateActivityLogDatabase'
Oct 27 12:13:22 jellyfin[15233]: CannotOpen: SQLitePCL.pretty.SQLiteException: unable to open database file
Oct 27 12:13:22 jellyfin[15233]:    at SQLitePCL.pretty.SQLiteException.Throw(Int32 rc, Int32 extended, String msg)
Oct 27 12:13:22 jellyfin[15233]:    at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
Oct 27 12:13:22 jellyfin[15233]:    at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build()
Oct 27 12:13:22 jellyfin[15233]:    at SQLitePCL.pretty.SQLite3.Open(String filename, ConnectionFlags flags, String vfs)
Oct 27 12:13:22 jellyfin[15233]:    at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform()
Oct 27 12:13:22 jellyfin[15233]:    at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
Oct 27 12:13:22 jellyfin[15233]: [12:13:22] [FTL] [1] Main: Error while starting server.
Oct 27 12:13:22 jellyfin[15233]: CannotOpen: SQLitePCL.pretty.SQLiteException: unable to open database file
Oct 27 12:13:22 jellyfin[15233]:    at SQLitePCL.pretty.SQLiteException.Throw(Int32 rc, Int32 extended, String msg)
Oct 27 12:13:22 jellyfin[15233]:    at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
Oct 27 12:13:22 jellyfin[15233]:    at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build()
Oct 27 12:13:22 jellyfin[15233]:    at SQLitePCL.pretty.SQLite3.Open(String filename, ConnectionFlags flags, String vfs)
Oct 27 12:13:22 jellyfin[15233]:    at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform()
Oct 27 12:13:22 jellyfin[15233]:    at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
Oct 27 12:13:22 jellyfin[15233]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 27 12:13:22 systemd[1]: jellyfin.service: Main process exited, code=exited, status=143/n/a
Oct 27 12:13:22 systemd[1]: jellyfin.service: Failed with result 'exit-code'.
Oct 27 12:13:22 systemd[1]: jellyfin.service: Service RestartSec=100ms expired, scheduling restart.
Oct 27 12:13:22 systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 49.
Oct 27 12:13:22 systemd[1]: Stopped Jellyfin Media Server.

J’ignore comment solutionner le problème : Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration ‘MigrateActivityLogDatabase’
Le script de restauration de la version 1.7.6 ne fonctionne pas, il m’est donc impossible de revenir en arrière.


Hello to all,

My YunoHost server

Hardware: VPS OVH
YunoHost version: 4.2.8.3
I have access to my server : By SSH | By the webadmin
Are you in a particular context or have you made any particular changes to your instance? No

Description of the problem

The Jellyfin 1.7.6 application was uninstalled from my server because minor problems with LDAP authentication (LDAP plugin) had occurred. When installing Jellyfin 10.7.7~ynh1 again, the installation script runs correctly but the application does not initialize and restarts over and over.

Oct 27 12:13:19 systemd[1]: Started Jellyfin Media Server.
Oct 27 12:13:22 jellyfin[15233]: [12:13:22] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration 'MigrateActivityLogDatabase'
Oct 27 12:13:22 jellyfin[15233]: CannotOpen: SQLitePCL.pretty.SQLiteException: unable to open database file
Oct 27 12:13:22 jellyfin[15233]: at SQLitePCL.pretty.SQLiteException.Throw(Int32 rc, Int32 extended, String msg)
Oct 27 12:13:22 jellyfin[15233]: at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
Oct 27 12:13:22 jellyfin[15233]: at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build()
Oct 27 12:13:22 jellyfin[15233]: at SQLitePCL.pretty.SQLite3.Open(String filename, ConnectionFlags flags, String vfs)
Oct 27 12:13:22 jellyfin[15233]: at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform()
Oct 27 12:13:22 jellyfin[15233]: at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
Oct 27 12:13:22 jellyfin[15233]: [12:13:22] [FTL] [1] Main: Error while starting server.
Oct 27 12:13:22 jellyfin[15233]: CannotOpen: SQLitePCL.pretty.SQLiteException: unable to open database file
Oct 27 12:13:22 jellyfin[15233]: at SQLitePCL.pretty.SQLiteException.Throw(Int32 rc, Int32 extended, String msg)
Oct 27 12:13:22 jellyfin[15233]: at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
Oct 27 12:13:22 jellyfin[15233]: at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build()
Oct 27 12:13:22 jellyfin[15233]: at SQLitePCL.pretty.SQLite3.Open(String filename, ConnectionFlags flags, String vfs)
Oct 27 12:13:22 jellyfin[15233]: at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform()
Oct 27 12:13:22 jellyfin[15233]: at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
Oct 27 12:13:22 jellyfin[15233]: at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 27 12:13:22 systemd[1]: jellyfin.service: Main process exited, code=exited, status=143/n/a
Oct 27 12:13:22 systemd[1]: jellyfin.service: Failed with result 'exit-code'.
Oct 27 12:13:22 systemd[1]: jellyfin.service: Service RestartSec=100ms expired, scheduling restart.
Oct 27 12:13:22 systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 49.
Oct 27 12:13:22 systemd[1]: Stopped Jellyfin Media Server.

I don’t know how to solve the problem: Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration ‘MigrateActivityLogDatabase’
The restore script for version 1.7.6 does not work, so I cannot go back.

Call for testers!

Jellyfin 10.7.7~ynh2, PR 87:

  • @Kayou has made a huge work on handling the sources for Jellyfin. Installation shall not fail anymore whenever we are slightly behind Jellyfin’s release scheme. :heart:
  • I have also simplified the configuration of the app. @Vince2, I got your bug too and I do not seem to get it anymore with this version.
  • Jellyfin will not be upgraded, since this testing version still ships v10.7.7. But let’s make sure nothing breaks. Your language settings may get overwritten.

To test it out: yunohost app upgrade jellyfin -u https://github.com/YunoHost-Apps/jellyfin_ynh/tree/testing -F

Please report your tests in the PR on GitHub. :rocket:

4 Likes

Hi,
I was looking for a way to install Jellyfin on Yunohost and stumbled on this thread as the app is not present in the administration interface.
I installed it yesterday using this testing branch and so far so good, so I just wanted to let you know.
Let me know if there is a particular log file I should check for errors but I did not notice any issue at the moment by simply using it.
Thank you for all the work.

1 Like

New release!

Jellyfin 10.7.7~ynh2, PR 87:

  • Improvements mentioned right above (though your config should not get overwritten :magic_wand: )
  • Rework of the sources and dependencies for Bullseye by @Salamandar (PR 88)
  • Removal of websocket proxy by hikaps, introduced by yours truly but brought more troubles than fixes. (PR 79)
  • Adding access to multimedia directories in /home/yunohost.multimedia (PR 89)
3 Likes

Hi,
the application are always disable with the catalogue with this update ? Or i need to make an update to fix the diagnostic message ?
Thank @tituspijean and @Salamandar about your work !

1 Like

You will need to wait for the update of the catalog, which should happen over the weekend. If you can’t wait, you can install it manually (sudo yunohost app install https://github.com/YunoHost-Apps/jellyfin_ynh -f). :wink:

1 Like

Is a good idea creating a mirror for source downloads? Could avoid broken flag on this package when upstream code is updated due Jellyfin mantainers delete old binaries from their server

Hi,

I updated the Jellyfin app today. Unfortunately this failed and removed the app from my server. A try to restore my backup failed, too. Can I try the suggestions to restore Jellyfin that are made some posts above? Or is it another problem at the moment?

Thanks and best regards

without your upgrade logs, we can’t help

Sorry, youre right. Here is my logfile:
https://paste.yunohost.org/raw/tatefepivi

It’s not your upgrade log but the backup_restore_app logs