Jellyfin Forum
Issue Rebooting Server - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: Issue Rebooting Server (/t-issue-rebooting-server)



Issue Rebooting Server - EnzoZarx - 2024-05-15

Hello,
I have an issue with my Jellyfin Server, I'm running on Ubuntu 22.04.4 LTS and I have a clean new installation with literally only Jellyfin, I followed the GeeksForGeeks from February 2024 tutorial to install it and now when I reboot my server the Jellyfin Server status is on active (running), no problem in log (it seems like no problem) and I can't connect on my computer to the server, url do not respond, but when I restart the service all the problem are gone and I can access to the server. It happen on every reboot or shutdown and start. Here is the log of the start of the server, and then the log after restarting Jellyfin Service.

Please someone help me.

Code:
[2024-05-15 19:27:35.594 +00:00] [INF] Sending shutdown notifications
[2024-05-15 19:27:35.621 +00:00] [INF] WS "192.168.0.30" closed
[2024-05-15 19:27:35.625 +00:00] [INF] Stopping NAT discovery
[2024-05-15 19:27:35.631 +00:00] [INF] Running query planner optimizations in the database... This might take a while
[2024-05-15 19:27:35.664 +00:00] [INF] Disposing "CoreAppHost"
[2024-05-15 19:27:35.664 +00:00] [INF] Disposing "MusicBrainzArtistProvider"
[2024-05-15 19:27:35.664 +00:00] [INF] Disposing "MusicBrainzAlbumProvider"
[2024-05-15 19:27:35.664 +00:00] [INF] Disposing "PluginManager"
[2024-05-15 19:27:53.730 +00:00] [INF] Jellyfin version: "10.9.1"
[2024-05-15 19:27:53.755 +00:00] [INF] Environment Variables: ["[JELLYFIN_USER, jellyfin]", "[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_WEB_OPT, --webdir=/usr/share/jellyfin/web]", "[JELLYFIN_CACHE_DIR, /var/cache/jellyfin]", "[JELLYFIN_ADDITIONAL_OPTS, ]", "[JELLYFIN_LOG_DIR, /var/log/jellyfin]", "[JELLYFIN_DATA_DIR, /var/lib/jellyfin]", "[JELLYFIN_ARGS, $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS --datadir $JELLYFIN_DATA_DIR --configdir $JELLYFIN_CONFIG_DIR --logdir $JELLYFIN_LOG_DIR --cachedir $JELLYFIN_CACHE_DIR]", "[JELLYFIN_CONFIG_DIR, /etc/jellyfin]"]
[2024-05-15 19:27:53.757 +00:00] [INF] Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--webdir=/usr/share/jellyfin/web", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[2024-05-15 19:27:53.757 +00:00] [INF] Operating system: "Ubuntu 22.04.4 LTS"
[2024-05-15 19:27:53.757 +00:00] [INF] Architecture: X64
[2024-05-15 19:27:53.758 +00:00] [INF] 64-Bit Process: True
[2024-05-15 19:27:53.758 +00:00] [INF] User Interactive: True
[2024-05-15 19:27:53.758 +00:00] [INF] Processor count: 4
[2024-05-15 19:27:53.759 +00:00] [INF] Program data path: "/var/lib/jellyfin"
[2024-05-15 19:27:53.759 +00:00] [INF] Log directory path: "/var/log/jellyfin"
[2024-05-15 19:27:53.759 +00:00] [INF] Config directory path: "/etc/jellyfin"
[2024-05-15 19:27:53.759 +00:00] [INF] Cache path: "/var/cache/jellyfin"
[2024-05-15 19:27:53.759 +00:00] [INF] Web resources path: "/usr/share/jellyfin/web"
[2024-05-15 19:27:53.759 +00:00] [INF] Application directory: "/usr/lib/jellyfin/bin/"
[2024-05-15 19:27:53.941 +00:00] [INF] Setting cache path: "/var/cache/jellyfin"
[2024-05-15 19:27:54.003 +00:00] [INF] Loading assemblies
[2024-05-15 19:27:54.096 +00:00] [INF] Defined LAN addresses: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[2024-05-15 19:27:54.096 +00:00] [INF] Defined LAN exclusions: []
[2024-05-15 19:27:54.097 +00:00] [INF] Using LAN addresses: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[2024-05-15 19:27:54.098 +00:00] [INF] Using bind addresses: ["127.0.0.1"]
[2024-05-15 19:27:54.098 +00:00] [INF] Remote IP filter is "Allowlist"
[2024-05-15 19:27:54.098 +00:00] [INF] Filter list: []
[2024-05-15 19:27:55.252 +00:00] [INF] Loaded plugin: "TMDb" "10.9.1.0"
[2024-05-15 19:27:55.252 +00:00] [INF] Loaded plugin: "Studio Images" "10.9.1.0"
[2024-05-15 19:27:55.253 +00:00] [INF] Loaded plugin: "OMDb" "10.9.1.0"
[2024-05-15 19:27:55.272 +00:00] [INF] Loaded plugin: "MusicBrainz" "10.9.1.0"
[2024-05-15 19:27:55.273 +00:00] [INF] Loaded plugin: "AudioDB" "10.9.1.0"
[2024-05-15 19:27:55.331 +00:00] [INF] Kestrel is listening on "127.0.0.1"
[2024-05-15 19:27:55.826 +00:00] [WRN] The WebRootPath was not found: "/var/lib/jellyfin/wwwroot". Static files may be unavailable.
[2024-05-15 19:27:55.901 +00:00] [INF] Running startup tasks
[2024-05-15 19:27:55.914 +00:00] [INF] Daily trigger for "Générer des images Trickplay" set to fire at 2024-05-16 03:00:00.000 +00:00, which is 07:32:04.0861387 from now.
[2024-05-15 19:27:55.924 +00:00] [INF] Daily trigger for "Extraire les images de chapitre" set to fire at 2024-05-16 02:00:00.000 +00:00, which is 06:32:04.0756911 from now.
[2024-05-15 19:27:56.032 +00:00] [INF] Found ffmpeg version "6.0.1"
[2024-05-15 19:27:56.080 +00:00] [INF] Available "decoders": ["libdav1d", "av1", "av1_cuvid", "av1_qsv", "h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8", "libvpx", "vp8_cuvid", "vp8_qsv", "vp9", "libvpx-vp9", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "dca", "flac", "mp3", "truehd"]
[2024-05-15 19:27:56.095 +00:00] [INF] Available "encoders": ["libsvtav1", "av1_nvenc", "av1_qsv", "av1_amf", "av1_vaapi", "libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mjpeg_qsv", "mjpeg_vaapi", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "libfdk_aac", "ac3", "alac", "dca", "flac", "libmp3lame", "libopus", "truehd", "libvorbis", "srt"]
[2024-05-15 19:27:56.112 +00:00] [INF] Available filters: ["deinterlace_qsv", "deinterlace_vaapi", "hwupload_cuda", "hwupload_vaapi", "libplacebo", "overlay_opencl", "overlay_qsv", "overlay_vaapi", "overlay_vulkan", "overlay_cuda", "procamp_vaapi", "scale_cuda", "scale_opencl", "scale_qsv", "scale_vaapi", "scale_vulkan", "tonemap_cuda", "tonemap_opencl", "tonemap_vaapi", "vpp_qsv", "yadif_cuda", "zscale", "alphasrc"]
[2024-05-15 19:27:56.198 +00:00] [INF] Available hwaccel types: ["cuda", "vaapi", "qsv", "drm", "opencl", "vulkan"]
[2024-05-15 19:27:56.362 +00:00] [INF] FFmpeg: "/usr/lib/jellyfin-ffmpeg/ffmpeg"
[2024-05-15 19:27:56.363 +00:00] [INF] ServerId: "43c00eb3ca4e4b25805d423128284592"
[2024-05-15 19:27:56.363 +00:00] [INF] Core startup complete
[2024-05-15 19:27:56.363 +00:00] [INF] Startup complete 0:00:02.838623
[2024-05-15 19:27:58.957 +00:00] [INF] "Nettoyer les collections et les listes de lecture" Completed after 0 minute(s) and 0 seconds
[2024-05-15 19:28:00.737 +00:00] [INF] "Mettre à jour les extensions" Completed after 0 minute(s) and 1 seconds

Code:
[2024-05-15 19:43:56.406 +00:00] [INF] Sending shutdown notifications
[2024-05-15 19:43:56.414 +00:00] [INF] Stopping NAT discovery
[2024-05-15 19:43:56.420 +00:00] [INF] Running query planner optimizations in the database... This might take a while
[2024-05-15 19:43:56.438 +00:00] [INF] Disposing "CoreAppHost"
[2024-05-15 19:43:56.438 +00:00] [INF] Disposing "MusicBrainzArtistProvider"
[2024-05-15 19:43:56.438 +00:00] [INF] Disposing "MusicBrainzAlbumProvider"
[2024-05-15 19:43:56.438 +00:00] [INF] Disposing "PluginManager"
[2024-05-15 19:43:56.728 +00:00] [INF] Jellyfin version: "10.9.1"
[2024-05-15 19:43:56.745 +00:00] [INF] Environment Variables: ["[JELLYFIN_USER, jellyfin]", "[JELLYFIN_LOG_DIR, /var/log/jellyfin]", "[JELLYFIN_WEB_OPT, --webdir=/usr/share/jellyfin/web]", "[JELLYFIN_CACHE_DIR, /var/cache/jellyfin]", "[JELLYFIN_ADDITIONAL_OPTS, ]", "[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_ARGS, $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS --datadir $JELLYFIN_DATA_DIR --configdir $JELLYFIN_CONFIG_DIR --logdir $JELLYFIN_LOG_DIR --cachedir $JELLYFIN_CACHE_DIR]", "[JELLYFIN_CONFIG_DIR, /etc/jellyfin]", "[JELLYFIN_DATA_DIR, /var/lib/jellyfin]"]
[2024-05-15 19:43:56.747 +00:00] [INF] Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--webdir=/usr/share/jellyfin/web", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[2024-05-15 19:43:56.747 +00:00] [INF] Operating system: "Ubuntu 22.04.4 LTS"
[2024-05-15 19:43:56.747 +00:00] [INF] Architecture: X64
[2024-05-15 19:43:56.748 +00:00] [INF] 64-Bit Process: True
[2024-05-15 19:43:56.748 +00:00] [INF] User Interactive: True
[2024-05-15 19:43:56.748 +00:00] [INF] Processor count: 4
[2024-05-15 19:43:56.748 +00:00] [INF] Program data path: "/var/lib/jellyfin"
[2024-05-15 19:43:56.748 +00:00] [INF] Log directory path: "/var/log/jellyfin"
[2024-05-15 19:43:56.748 +00:00] [INF] Config directory path: "/etc/jellyfin"
[2024-05-15 19:43:56.748 +00:00] [INF] Cache path: "/var/cache/jellyfin"
[2024-05-15 19:43:56.748 +00:00] [INF] Web resources path: "/usr/share/jellyfin/web"
[2024-05-15 19:43:56.748 +00:00] [INF] Application directory: "/usr/lib/jellyfin/bin/"
[2024-05-15 19:43:56.867 +00:00] [INF] Setting cache path: "/var/cache/jellyfin"
[2024-05-15 19:43:56.893 +00:00] [INF] Loading assemblies
[2024-05-15 19:43:56.978 +00:00] [INF] Defined LAN addresses: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[2024-05-15 19:43:56.979 +00:00] [INF] Defined LAN exclusions: []
[2024-05-15 19:43:56.979 +00:00] [INF] Using LAN addresses: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[2024-05-15 19:43:56.980 +00:00] [INF] Using bind addresses: ["127.0.0.1", "192.168.0.253"]
[2024-05-15 19:43:56.980 +00:00] [INF] Remote IP filter is "Allowlist"
[2024-05-15 19:43:56.980 +00:00] [INF] Filter list: []
[2024-05-15 19:43:57.988 +00:00] [INF] Loaded plugin: "TMDb" "10.9.1.0"
[2024-05-15 19:43:57.989 +00:00] [INF] Loaded plugin: "Studio Images" "10.9.1.0"
[2024-05-15 19:43:57.989 +00:00] [INF] Loaded plugin: "OMDb" "10.9.1.0"
[2024-05-15 19:43:58.008 +00:00] [INF] Loaded plugin: "MusicBrainz" "10.9.1.0"
[2024-05-15 19:43:58.008 +00:00] [INF] Loaded plugin: "AudioDB" "10.9.1.0"
[2024-05-15 19:43:58.060 +00:00] [INF] Kestrel is listening on "127.0.0.1"
[2024-05-15 19:43:58.061 +00:00] [INF] Kestrel is listening on "192.168.0.253"
[2024-05-15 19:43:58.535 +00:00] [WRN] The WebRootPath was not found: "/var/lib/jellyfin/wwwroot". Static files may be unavailable.
[2024-05-15 19:43:58.608 +00:00] [INF] Running startup tasks
[2024-05-15 19:43:58.619 +00:00] [INF] Daily trigger for "Générer des images Trickplay" set to fire at 2024-05-16 03:00:00.000 +00:00, which is 07:16:01.3802170 from now.
[2024-05-15 19:43:58.629 +00:00] [INF] Daily trigger for "Extraire les images de chapitre" set to fire at 2024-05-16 02:00:00.000 +00:00, which is 06:16:01.3703557 from now.
[2024-05-15 19:43:58.653 +00:00] [INF] Found ffmpeg version "6.0.1"
[2024-05-15 19:43:58.695 +00:00] [INF] Available "decoders": ["libdav1d", "av1", "av1_cuvid", "av1_qsv", "h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8", "libvpx", "vp8_cuvid", "vp8_qsv", "vp9", "libvpx-vp9", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "dca", "flac", "mp3", "truehd"]
[2024-05-15 19:43:58.710 +00:00] [INF] Available "encoders": ["libsvtav1", "av1_nvenc", "av1_qsv", "av1_amf", "av1_vaapi", "libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mjpeg_qsv", "mjpeg_vaapi", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "libfdk_aac", "ac3", "alac", "dca", "flac", "libmp3lame", "libopus", "truehd", "libvorbis", "srt"]
[2024-05-15 19:43:58.726 +00:00] [INF] Available filters: ["deinterlace_qsv", "deinterlace_vaapi", "hwupload_cuda", "hwupload_vaapi", "libplacebo", "overlay_opencl", "overlay_qsv", "overlay_vaapi", "overlay_vulkan", "overlay_cuda", "procamp_vaapi", "scale_cuda", "scale_opencl", "scale_qsv", "scale_vaapi", "scale_vulkan", "tonemap_cuda", "tonemap_opencl", "tonemap_vaapi", "vpp_qsv", "yadif_cuda", "zscale", "alphasrc"]
[2024-05-15 19:43:58.815 +00:00] [INF] Available hwaccel types: ["cuda", "vaapi", "qsv", "drm", "opencl", "vulkan"]
[2024-05-15 19:43:58.989 +00:00] [INF] FFmpeg: "/usr/lib/jellyfin-ffmpeg/ffmpeg"
[2024-05-15 19:43:58.990 +00:00] [INF] ServerId: "43c00eb3ca4e4b25805d423128284592"
[2024-05-15 19:43:58.990 +00:00] [INF] Core startup complete
[2024-05-15 19:43:58.990 +00:00] [INF] Startup complete 0:00:02.3979854
[2024-05-15 19:44:00.421 +00:00] [INF] WS "192.168.0.30" request
[2024-05-15 19:44:01.635 +00:00] [INF] "Nettoyer les collections et les listes de lecture" Completed after 0 minute(s) and 0 seconds
[2024-05-15 19:44:02.993 +00:00] [INF] "Mettre à jour les extensions" Completed after 0 minute(s) and 1 seconds
[2024-05-15 19:47:24.636 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.



RE: Issue Rebooting Server - TheDreadPirate - 2024-05-15

It looks like your network interface isn't ready when Jellyfin starts on a reboot.

[2024-05-15 19:27:54.098 +00:00] [INF] Using bind addresses: ["127.0.0.1"]

vs

[2024-05-15 19:43:56.980 +00:00] [INF] Using bind addresses: ["127.0.0.1", "192.168.0.253"]

The service is already set to wait for the network service to start. Is your server IP address static or DHCP?


RE: Issue Rebooting Server - EnzoZarx - 2024-05-15

My IP address is set on static and I had to do this 2 awnsers to stopping my server from searching for 2 min before really start.
https://askubuntu.com/questions/972215/a-start-job-is-running-for-wait-for-network-to-be-configured-ubuntu-server-17-1

My netplan .yaml config
# This is the network config written by 'subiquity'
network:
version: 2
wifis:
wlp2s0:
access-points:
wifi_doe:
password: *******************
dhcp4: false
addresses:
- 192.168.0.253/24
routes:
- to: 0.0.0.0/0
via: 192.168.0.254
nameservers:
addresses:
- 1.1.1.1
- 8.8.8.8


RE: Issue Rebooting Server - TheDreadPirate - 2024-05-15

You should look at your system logs to see why the network interface isn't starting right away. What I think is happening is that the network service starts, which triggers jellyfin to start since it will wait for the network service, but the actual interface isn't binding to your static address in a timely manner.


RE: Issue Rebooting Server - EnzoZarx - 2024-05-16

I remade all the installation of my server. Fresh install, I have done this yet :

Put my wifi config in netplan.
systemctl disable systemd-networkd-wait-online.service
systemctl mask systemd-networkd-wait-online.service
This two commands to disable A start job... message.
Install Jellyfin from here https://www.geeksforgeeks.org/how-to-install-jellyfin-media-server-on-ubuntu-22-04/
And that's all.
I reboot the computer and like last time. How can I see my log like you said with my wifi configuration to see if it's this ?

Also with the new fresh install and after service restart I access the Jellyfin and have to select a server and I have an error message.


RE: Issue Rebooting Server - TheDreadPirate - 2024-05-16

Is this WiFi connection the only active network connection for this server?


RE: Issue Rebooting Server - EnzoZarx - 2024-05-16

yes this is the only, I do have a wired card but not connected and configured


RE: Issue Rebooting Server - TheDreadPirate - 2024-05-16

(2024-05-16, 06:07 PM)EnzoZarx Wrote: systemctl disable systemd-networkd-wait-online.service
systemctl mask systemd-networkd-wait-online.service

Circling back to this.

Did you do this before or after you started having this problem?  I'm pretty sure this is the is disabling the very thing we need.

https://stackoverflow.com/questions/35805354/systemd-start-service-at-boot-time-after-network-is-really-up-for-wol-purpose