Jellyfin error when using dietpi-update

the RPI don’t have a HW clock (RTC). Since the RPI lacks an RTC, it forgets the time whenever it’s powered down. When it boots up, it normally:

  • Gets the current time from the internet via NTP (Network Time Protocol), or
  • Falls back to the last known timestamp if there’s no internet connection.

If you need accurate timekeeping without internet access (for example, in remote or offline projects), you can add a hardware RTC module via the GPIO header.

1 Like

I think my RPi5’s do have an hardware clock and I have installed the backup battery. Unless I am badly mistaken, I suppose I could be,

Damn you are right, I have to apologize! The RPi 5 comes with a RTC, I didn’t know that :grimacing:

So you can read out the time with hwclock -r as you already mentioned.
You can set this time as system time with hwclock -s.
And with hwclock -w you write the system time to RTC.

Yes it turns out you can use hwclock to change the time

hwclock --systohc TO SET THE TIME change the hardware clock to the current system clock time (SYSTEM-TO-HWCLOCK)

And the other wat around as well

hwclock --hctosys To set the system clock time from the hardware clock (HWCLOCK-TO-SYSTEM CLOCK)

I have followed the instructions, but I can’t access Jellyfin in a web browser with port 8097 and ufw allows 8097

Did you check if the service is running?

service running

Btw there is no need to do screen shots, you should be able to copy everything from ssh terminal directly.

Can you check ports listen

ss -alnp | grep LISTEN
root@DietPi:\~# ss -alnp | grep LISTEN
u_str LISTEN 0      5                                                              /run/samba/nmbd/unexpected 1570349                \* 0    users:((“nmbd”,pid=245065,fd=22))
u_str LISTEN 0      4096                                                       /run/tailscale/tailscaled.sock 1406688                \* 0    users:((“tailscaled”,pid=219586,fd=12))
u_str LISTEN 0      4096                                                          /run/dbus/system_bus_socket 3825                   \* 0    users:((“dbus-daemon”,pid=344,fd=3),(“systemd”,pid=1,fd=194))
u_str LISTEN 0      4096                                                                     /run/docker.sock 3827                   \* 0    users:((“dockerd”,pid=245421,fd=4),(“systemd”,pid=1,fd=135))
u_str LISTEN 0      4096                                                                 /tmp/php-cgi-74.sock 9041                   \* 0    users:((“php-fpm”,pid=1068,fd=7))
u_str LISTEN 0      4096                                                           /run/ssh-unix-local/socket 8498                   \* 0    users:((“systemd”,pid=1,fd=121))
u_str LISTEN 0      4096                                                                 /tmp/php-cgi-83.sock 9049                   \* 0    users:((“php-fpm”,pid=1075,fd=7))
u_str LISTEN 0      4096                                                     /run/systemd/io.systemd.Hostname 8499                   \* 0    users:((“systemd”,pid=1,fd=196))
u_str LISTEN 0      4096                                                /run/containerd/containerd.sock.ttrpc 10080                  \* 0    users:((“containerd”,pid=928,fd=6))
u_str LISTEN 0      4096                                                      /run/containerd/containerd.sock 10082                  \* 0    users:((“containerd”,pid=928,fd=7))
u_str LISTEN 0      80                                                                /run/mysqld/mysqld.sock 1568378                \* 0    users:((“mariadbd”,pid=245121,fd=49))
u_str LISTEN 0      500                                                                       /tmp/panel.sock 15863                  \* 0    users:((“BT-Panel”,pid=2045,fd=3))
u_str LISTEN 0      244                                                         /run/postgresql/.s.PGSQL.5432 1570829                \* 0    users:((“postgres”,pid=245167,fd=5))
u_str LISTEN 0      4096                                           /run/systemd/userdb/io.systemd.DynamicUser 7347                   \* 0    users:((“systemd”,pid=1,fd=86))
u_str LISTEN 0      4096                                                   /run/systemd/io.systemd.ManagedOOM 7348                   \* 0    users:((“systemd”,pid=1,fd=87))
u_str LISTEN 0      4096                                                  /run/systemd/io.systemd.Credentials 7361                   \* 0    users:((“systemd”,pid=1,fd=133))
u_str LISTEN 0      4096                                                         /var/run/docker/metrics.sock 1572079                \* 0    users:((“dockerd”,pid=245421,fd=7))
u_str LISTEN 0      4096                                                          /run/systemd/journal/stdout 8232                   \* 0    users:((“systemd-journal”,pid=221,fd=5),(“systemd”,pid=1,fd=192))
u_str LISTEN 0      4096                                         /var/run/docker/libnetwork/6a0d6553d0f6.sock 1569560                \* 0    users:((“dockerd”,pid=245421,fd=16))
u_seq LISTEN 0      4096                                                                    /run/udev/control 8233                   \* 0    users:((“systemd-udevd”,pid=255,fd=3),(“systemd”,pid=1,fd=113))
u_str LISTEN 0      4096   /run/containerd/s/85913635703b7dd1f1db3bb168692a578dca4a9375691bd074b4bcd485b02cc3 1572299                \* 0    users:((“containerd-shim”,pid=245675,fd=9))
u_str LISTEN 0      4096                                              /run/systemd/journal/io.systemd.journal 3478                   \* 0    users:((“systemd-journal”,pid=221,fd=9))
u_str LISTEN 0      4096   /run/containerd/s/f2c62bad7d70c82241674b6ddd31ab103044df194ceeacbacbb661dfb540217f 1571404                \* 0    users:((“containerd-shim”,pid=245683,fd=9))
u_str LISTEN 0      4096   /run/containerd/s/5e3af293f0273047f34b33bda7e9044794b561a8d6d68d6db26438b654c7ddb3 1572302                \* 0    users:((“containerd-shim”,pid=245688,fd=9))
u_str LISTEN 0      4096                                                       /run/systemd/io.systemd.sysext 8411                   \* 0    users:((“systemd”,pid=1,fd=230))
u_str LISTEN 0      4096                                                                 /run/systemd/private 1628376                \* 0    users:((“systemd”,pid=1,fd=21))
tcp   LISTEN 0      4096                                                                              0.0.0.0:9000             0.0.0.0:\*    users:((“docker-proxy”,pid=245863,fd=7))
tcp   LISTEN 0      511                                                                               0.0.0.0:8000             0.0.0.0:\*    users:((“webserver”,pid=2241,fd=7),(“webserver”,pid=2239,fd=7))
tcp   LISTEN 0      4096                                                                            127.0.0.1:8088             0.0.0.0:\*    users:((“influxd”,pid=245311,fd=3))
tcp   LISTEN 0      4096                                                                              0.0.0.0:5000             0.0.0.0:\*    users:((“docker-proxy”,pid=245818,fd=7))
tcp   LISTEN 0      4096                                                                              0.0.0.0:8081             0.0.0.0:\*    users:((“docker-proxy”,pid=245900,fd=7))
tcp   LISTEN 0      50                                                                                0.0.0.0:445              0.0.0.0:\*    users:((“smbd”,pid=245083,fd=29))
tcp   LISTEN 0      4096                                                                              0.0.0.0:3001             0.0.0.0:\*    users:((“docker-proxy”,pid=245833,fd=7))
tcp   LISTEN 0      4096                                                                            127.0.0.1:20241            0.0.0.0:\*    users:((“cloudflared”,pid=1355,fd=3))
tcp   LISTEN 0      511                                                                             127.0.0.1:6379             0.0.0.0:\*    users:((“redis-server”,pid=245095,fd=9))
tcp   LISTEN 0      1000                                                                              0.0.0.0:22               0.0.0.0:\*    users:((“dropbear”,pid=866,fd=3))
tcp   LISTEN 0      9                                                                                 0.0.0.0:21               0.0.0.0:\*    users:((“pure-ftpd”,pid=420,fd=4))
tcp   LISTEN 0      4096                                                                       100.108.200.68:45977            0.0.0.0:\*    users:((“tailscaled”,pid=219586,fd=23))
tcp   LISTEN 0      50                                                                                0.0.0.0:139              0.0.0.0:\*    users:((“smbd”,pid=245083,fd=30))
tcp   LISTEN 0      80                                                                                0.0.0.0:3306             0.0.0.0:\*    users:((“mariadbd”,pid=245121,fd=47))
tcp   LISTEN 0      511                                                                               0.0.0.0:9982             0.0.0.0:\*    users:((“tvheadend”,pid=994,fd=7))
tcp   LISTEN 0      511                                                                               0.0.0.0:9981             0.0.0.0:\*    users:((“tvheadend”,pid=994,fd=6))
tcp   LISTEN 0      511                                                                                     *:9999                   :*    users:((“httpd”,pid=222068,fd=6),(“httpd”,pid=451,fd=6),(“httpd”,pid=437,fd=6),(“httpd”,pid=436,fd=6),(“httpd”,pid=433,fd=6))
tcp   LISTEN 0      4096                                                                                 \[::\]:9000                \[::\]:    users:((“docker-proxy”,pid=245870,fd=7))
tcp   LISTEN 0      511                                                                                  \[::\]:8000                \[::\]:\*    users:((“webserver”,pid=2241,fd=8),(“webserver”,pid=2239,fd=8))
tcp   LISTEN 0      511                                                                                     *:8008                   :*    users:((“httpd”,pid=222068,fd=12),(“httpd”,pid=451,fd=12),(“httpd”,pid=437,fd=12),(“httpd”,pid=436,fd=12),(“httpd”,pid=433,fd=12))
tcp   LISTEN 0      511                                                                                 \[::1\]:6379                \[::\]:    users:((“redis-server”,pid=245095,fd=10))
tcp   LISTEN 0      511                                                                                     *:888                    :*    users:((“httpd”,pid=222068,fd=14),(“httpd”,pid=451,fd=14),(“httpd”,pid=437,fd=14),(“httpd”,pid=436,fd=14),(“httpd”,pid=433,fd=14))
tcp   LISTEN 0      4096                                                                                 \[::\]:5000                \[::\]:    users:((“docker-proxy”,pid=245825,fd=7))
tcp   LISTEN 0      4096                                                                                    *:8086                   :*    users:((“influxd”,pid=245311,fd=23))
tcp   LISTEN 0      4096                                                                                    *:8084                   :*    users:((“filebrowser”,pid=245240,fd=6))
tcp   LISTEN 0      4096                                                                                    *:8083                   :*    users:((“AdGuardHome”,pid=847,fd=11))
tcp   LISTEN 0      4096                                                                                 \[::\]:8081                \[::\]:    users:((“docker-proxy”,pid=245907,fd=7))
tcp   LISTEN 0      50                                                                                   \[::\]:445                 \[::\]:    users:((“smbd”,pid=245083,fd=27))
tcp   LISTEN 0      4096                                                                                 \[::\]:3001                \[::\]:    users:((“docker-proxy”,pid=245841,fd=7))
tcp   LISTEN 0      511                                                                                     *:1000                   :*    users:((“httpd”,pid=222068,fd=8),(“httpd”,pid=451,fd=8),(“httpd”,pid=437,fd=8),(“httpd”,pid=436,fd=8),(“httpd”,pid=433,fd=8))
tcp   LISTEN 0      4096                                                          \[fd7a:115c:a1e0::3c32:c844\]:45091               \[::\]:    users:((“tailscaled”,pid=219586,fd=24))
tcp   LISTEN 0      1000                                                                                 \[::\]:22                  \[::\]:\*    users:((“dropbear”,pid=866,fd=4))
tcp   LISTEN 0      9                                                                                    \[::\]:21                  \[::\]:\*    users:((“pure-ftpd”,pid=420,fd=5))
tcp   LISTEN 0      4096                                                                                    \*:53                     *:*    users:((“AdGuardHome”,pid=847,fd=13))
tcp   LISTEN 0      511                                                                                     \*:80                     *:*    users:((“httpd”,pid=222068,fd=4),(“httpd”,pid=451,fd=4),(“httpd”,pid=437,fd=4),(“httpd”,pid=436,fd=4),(“httpd”,pid=433,fd=4))
tcp   LISTEN 0      4096                                                                                    \*:5201                   *:*    users:((“iperf3”,pid=880,fd=3))
tcp   LISTEN 0      511                                                                                     *:8800                   :*    users:((“httpd”,pid=222068,fd=10),(“httpd”,pid=451,fd=10),(“httpd”,pid=437,fd=10),(“httpd”,pid=436,fd=10),(“httpd”,pid=433,fd=10))
tcp   LISTEN 0      1024                                                                                    *:5252                   :*    users:((“dietpi-dashboar”,pid=860,fd=9))
tcp   LISTEN 0      50                                                                                   \[::\]:139                 \[::\]:    users:((“smbd”,pid=245083,fd=28))
tcp   LISTEN 0      80                                                                                   \[::\]:3306                \[::\]:    users:((“mariadbd”,pid=245121,fd=48))

have you done as was suggested by Micalng :-1:

G_CONFIG_INJECT ‘JELLYFIN_LOG_DIR=’ ‘JELLYFIN_LOG_DIR=/mnt/dietpi_userdata/jellyfin/log’ /etc/default/jellyfin
G_CONFIG_INJECT ‘TMPDIR=’ ‘TMPDIR=“$JELLYFIN_CACHE_DIR/temp”’ /etc/default/jellyfin

Sorry, I saw the first thing that came up in a google search, after I checked github again, it turns out the problem has been solved, thanks for the suggestion.