You are not logged in.
Hey all,
I have some issues with a system that is unable to shutdown when a CIFS share is mounted.
I nailed it down to a service (Jellyfin) that is blocking the unmount of my CIFS share as long at it is running.
So my question is: How can I stop Jellyfin BEFORE the system is trying to unmount my CIFS share during shutdown?
I already used Google and the forums search but couldn't find anything that got my any further.
Ideally I would like to solve this by just editing the service / mount files.
I already tried this, with not success: https://stackoverflow.com/a/52882065/17193869
/usr/lib/systemd/system/jellyfin.service
========================================
[Unit]
Description=Jellyfin Media Server
After=network.target
[Service]
User=jellyfin
EnvironmentFile=/etc/conf.d/jellyfin
ExecStart=/usr/lib/jellyfin/bin/jellyfin --datadir ${JELLYFIN_DATA_DIRECTORY} --cachedir ${JELLYFIN_CACHE_DIRECTORY} ${JELLYFIN_ADD_OPTS}
Restart=on-abort
TimeoutSec=20
[Install]
WantedBy=multi-user.target/etc/systemd/system/mnt-media.mount
===================================
[Unit]
Description=Mount media share r/w at boot.
After=nss-lookup.target
[Mount]
What=//NAS/nas/Media
Where=/mnt/media
Type=cifs
Options=_netdev,noatime,uid=jellyfin,gid=jellyfin,user=rw_smb_user,pass=x,iocharset=utf8
ForceUnmount=true
TimeoutSec=30
[Install]
WantedBy=multi-user.targetKind Regards
TheHellSite
Offline
I already tried this
That's not reflected by the posted services, though?
with not success
And what error? Does jellyfin not terminate or is the service not stopped?
Offline
That's not reflected by the posted services, though?
I know, I posted the bare configs without any "fixes".
Below is what it looked like with the "fix". Which didn't work.
/etc/systemd/system/mnt-media.mount
===================================
[Unit]
Description=Mount media share r/w at boot.
After=mnt-media.mount nss-lookup.target
BindsTo=mnt-media.mount
[Mount]
What=//NAS/nas/Media
Where=/mnt/media
Type=cifs
Options=_netdev,noatime,uid=jellyfin,gid=jellyfin,user=rw_smb_user,pass=x,iocharset=utf8
ForceUnmount=true
TimeoutSec=30
[Install]
WantedBy=multi-user.targetAnd what error? Does jellyfin not terminate or is the service not stopped?
The service is stopped. It is even stopped before the the cifs shares are unmounted.
Maybe it is not a problem with jellyfin?
Dec 03 12:46:58 JELLY-LXC systemd[1]: Unmounting Mount media share r/o at boot....
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Record System Boot/Shutdown in UTMP...
Dec 03 12:46:58 JELLY-LXC umount[127]: umount: /mnt/media: block devices are not permitted on filesystem.
Dec 03 12:46:58 JELLY-LXC systemd[1]: mnt-media.mount: Mount process exited, code=exited, status=32/n/a
Dec 03 12:46:58 JELLY-LXC systemd[1]: Failed unmounting Mount media share r/o at boot..See the full log below, I highlighted the relevant parts.
-- Boot bd53967a94a74d8e9f32957961959d46 --
Dec 03 12:46:44 JELLY-LXC systemd-journald[47]: Journal started
Dec 03 12:46:44 JELLY-LXC systemd-journald[47]: Runtime Journal (/run/log/journal/a6bd54abd9b54717876a3e9852818091) is 8.0M, max 557.4M, 549.4M free.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Starting Flush Journal to Persistent Storage...
Dec 03 12:46:44 JELLY-LXC systemd-journald[47]: Time spent on flushing to /var/log/journal/a6bd54abd9b54717876a3e9852818091 is 5.343ms for 3 entries.
Dec 03 12:46:44 JELLY-LXC systemd-journald[47]: System Journal (/var/log/journal/a6bd54abd9b54717876a3e9852818091) is 288.0M, max 1.5G, 1.2G free.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Finished Flush Journal to Persistent Storage.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Started User Database Manager.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Finished Create Static Device Nodes in /dev.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Reached target Preparation for Local File Systems.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Condition check resulted in Virtual Machine and Container Storage (Compatibility) being skipped.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Reached target Local File Systems.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Reached target Containers.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Condition check resulted in Rebuild Dynamic Linker Cache being skipped.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Condition check resulted in Store a System Token in an EFI Variable being skipped.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Condition check resulted in Commit a transient machine-id on disk being skipped.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Starting Create Volatile Files and Directories...
Dec 03 12:46:44 JELLY-LXC systemd[1]: Condition check resulted in Rule-based Manager for Device Events and Files being skipped.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Starting Network Configuration...
Dec 03 12:46:44 JELLY-LXC systemd[1]: Finished Create Volatile Files and Directories.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Condition check resulted in Rebuild Journal Catalog being skipped.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Condition check resulted in Network Time Synchronization being skipped.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Reached target System Time Set.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Condition check resulted in Update is Completed being skipped.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Starting Record System Boot/Shutdown in UTMP...
Dec 03 12:46:44 JELLY-LXC systemd-networkd[59]: /etc/systemd/network/eth0.network:6: DHCP=v4 is deprecated, please use DHCP=ipv4 instead.
Dec 03 12:46:44 JELLY-LXC systemd-networkd[59]: lo: Link UP
Dec 03 12:46:44 JELLY-LXC systemd-networkd[59]: lo: Gained carrier
Dec 03 12:46:44 JELLY-LXC systemd-networkd[59]: Enumeration completed
Dec 03 12:46:44 JELLY-LXC systemd[1]: Started Network Configuration.
Dec 03 12:46:44 JELLY-LXC systemd-networkd[59]: eth0: Link UP
Dec 03 12:46:44 JELLY-LXC systemd[1]: Starting Wait for Network to be Configured...
Dec 03 12:46:44 JELLY-LXC systemd[1]: Starting Network Name Resolution...
Dec 03 12:46:44 JELLY-LXC systemd[1]: Finished Record System Boot/Shutdown in UTMP.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Reached target System Initialization.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Started Refresh Pacman mirrorlist weekly with Reflector..
Dec 03 12:46:44 JELLY-LXC systemd[1]: Started Daily verification of password and group files.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Started Daily Cleanup of Temporary Directories.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Reached target Timer Units.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Listening on D-Bus System Message Bus Socket.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Reached target Socket Units.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Reached target Basic System.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Started D-Bus System Message Bus.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Couldn't stat device /dev/mapper/control: No such file or directory
Dec 03 12:46:44 JELLY-LXC systemd[1]: Couldn't stat device /dev/loop-control: No such file or directory
Dec 03 12:46:44 JELLY-LXC systemd[1]: Starting Home Area Manager...
Dec 03 12:46:44 JELLY-LXC systemd[1]: Starting User Login Management...
Dec 03 12:46:44 JELLY-LXC systemd[1]: Started Home Area Manager.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Finished Home Area Activation.
Dec 03 12:46:44 JELLY-LXC systemd-networkd[59]: eth0: Gained carrier
Dec 03 12:46:44 JELLY-LXC systemd-logind[65]: New seat seat0.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Started User Login Management.
Dec 03 12:46:44 JELLY-LXC systemd-resolved[62]: Positive Trust Anchors:
Dec 03 12:46:44 JELLY-LXC systemd-resolved[62]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
Dec 03 12:46:44 JELLY-LXC systemd-resolved[62]: Negative trust anchors: home.arpa 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.ar>
Dec 03 12:46:44 JELLY-LXC systemd-networkd[59]: eth0: DHCPv4 address 192.168.2.40/24 via 192.168.2.1
Dec 03 12:46:44 JELLY-LXC dbus-daemon[63]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.2' (uid=980 pid=59 comm="/usr/lib/s>
Dec 03 12:46:44 JELLY-LXC systemd[1]: Starting Hostname Service...
Dec 03 12:46:44 JELLY-LXC systemd-resolved[62]: Using system hostname 'JELLY-LXC'.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Started Network Name Resolution.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Reached target Network.
Dec 03 12:46:44 JELLY-LXC systemd[1]: Reached target Host and Network Name Lookups.
Dec 03 12:46:44 JELLY-LXC dbus-daemon[63]: [system] Successfully activated service 'org.freedesktop.hostname1'
Dec 03 12:46:44 JELLY-LXC systemd[1]: Started Hostname Service.
Dec 03 12:46:44 JELLY-LXC systemd-networkd[59]: Could not set hostname: Access denied
Dec 03 12:46:46 JELLY-LXC systemd-networkd[59]: eth0: Gained IPv6LL
Dec 03 12:46:46 JELLY-LXC systemd[1]: Finished Wait for Network to be Configured.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Reached target Network is Online.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Mounting Mount media share r/o at boot....
Dec 03 12:46:46 JELLY-LXC systemd[1]: Mounting Mount transcodes share r/w at boot....
Dec 03 12:46:46 JELLY-LXC systemd[1]: Mounted Mount media share r/o at boot..
Dec 03 12:46:46 JELLY-LXC systemd[1]: Started Jellyfin Media Server.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Mounted Mount transcodes share r/w at boot..
Dec 03 12:46:46 JELLY-LXC systemd[1]: Reached target Remote File Systems.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Starting Permit User Sessions...
Dec 03 12:46:46 JELLY-LXC systemd[1]: Finished Permit User Sessions.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Started Console Getty.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Condition check resulted in Container Getty on /dev/lxc/tty0 being skipped.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Started Container Getty on /dev/lxc/tty1.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Started Container Getty on /dev/lxc/tty2.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Reached target Login Prompts.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Reached target Multi-User System.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Reached target Graphical Interface.
Dec 03 12:46:46 JELLY-LXC systemd[1]: Startup finished in 1.894s.
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Main: Jellyfin version: 10.7.7
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CACHE_DIRECTORY, /var/cache/jellyfin]", "[JELLYFIN_DATA_DIRECTORY, /var/lib/jellyfin]", "[JELLYFIN_LOG_DIR, /var/>
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--datadir", "/var/lib/jellyfin", "--cachedir", "/var/cache/jellyfin", "--webdir=/usr/share/jellyf>
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Main: Operating system: Linux
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Main: Architecture: X64
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Main: 64-Bit Process: True
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Main: User Interactive: True
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Main: Processor count: 4
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Main: Program data path: /var/lib/jellyfin
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /var/cache/jellyfin
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : []
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: []
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: []
Dec 03 12:46:46 JELLY-LXC jellyfin[73]: [12:46:46] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
Dec 03 12:46:48 JELLY-LXC jellyfin[73]: [12:46:48] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: OMDb 10.7.7.0
Dec 03 12:46:48 JELLY-LXC jellyfin[73]: [12:46:48] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: MusicBrainz 10.7.7.0
Dec 03 12:46:48 JELLY-LXC jellyfin[73]: [12:46:48] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AudioDB 10.7.7.0
Dec 03 12:46:48 JELLY-LXC jellyfin[73]: [12:46:48] [INF] [1] Main: Kestrel listening on Any IP4 Address
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Extract Chapter Images set to fire at 12/04/2021 02:00, which is 13:13:10.780295>
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version 4.4.1
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available decoders: ["h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "m>
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available encoders: ["libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx>
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["vdpau", "cuda", "vaapi", "qsv", "drm"]
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: Custom: /usr/bin/ffmpeg
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: 0498a63363f6434ba28514709c8c33ec
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [ERR] [1] Emby.Dlna.Main.DlnaEntryPoint: The DLNA specification does not support HTTPS.
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all pre-startup entry points in 0:00:00.0748916
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup complete
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all post-startup entry points in 0:00:00.1635235
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [1] Main: Startup complete 0:00:03.1544784
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [11] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /mnt/media/1
Dec 03 12:46:49 JELLY-LXC jellyfin[73]: [12:46:49] [INF] [4] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /mnt/media/2
Dec 03 12:46:50 JELLY-LXC jellyfin[73]: [12:46:50] [INF] [10] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /mnt/media/3
Dec 03 12:46:50 JELLY-LXC jellyfin[73]: [12:46:50] [INF] [9] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /mnt/media/4
Dec 03 12:46:52 JELLY-LXC login[76]: pam_unix(login:session): session opened for user root(uid=0) by LOGIN(uid=0)
Dec 03 12:46:52 JELLY-LXC systemd[1]: Created slice User Slice of UID 0.
Dec 03 12:46:52 JELLY-LXC systemd[1]: Starting User Runtime Directory /run/user/0...
Dec 03 12:46:52 JELLY-LXC systemd-logind[65]: New session 142 of user root.
Dec 03 12:46:52 JELLY-LXC systemd[1]: Finished User Runtime Directory /run/user/0.
Dec 03 12:46:52 JELLY-LXC systemd[1]: Starting User Manager for UID 0...
Dec 03 12:46:52 JELLY-LXC systemd[106]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8002 service=[systemd-user] terminal=[] user=[root] ruser=[<unknown>] rhost=[<unknown>]
Dec 03 12:46:52 JELLY-LXC systemd[106]: pam_unix(systemd-user:session): session opened for user root(uid=0) by (uid=0)
Dec 03 12:46:52 JELLY-LXC systemd[106]: pam_env(systemd-user:session): deprecated reading of user environment enabled
Dec 03 12:46:52 JELLY-LXC systemd[106]: Queued start job for default target Main User Target.
Dec 03 12:46:52 JELLY-LXC systemd[106]: Created slice User Application Slice.
Dec 03 12:46:52 JELLY-LXC systemd[106]: Reached target Paths.
Dec 03 12:46:52 JELLY-LXC systemd[106]: Reached target Timers.
Dec 03 12:46:52 JELLY-LXC systemd[106]: Starting D-Bus User Message Bus Socket...
Dec 03 12:46:52 JELLY-LXC systemd[106]: Listening on GnuPG network certificate management daemon.
Dec 03 12:46:52 JELLY-LXC systemd[106]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Dec 03 12:46:52 JELLY-LXC systemd[106]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Dec 03 12:46:52 JELLY-LXC systemd[106]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Dec 03 12:46:52 JELLY-LXC systemd[106]: Listening on GnuPG cryptographic agent and passphrase cache.
Dec 03 12:46:52 JELLY-LXC systemd[106]: Listening on p11-kit server.
Dec 03 12:46:52 JELLY-LXC jellyfin[73]: [12:46:52] [INF] [11] Emby.Server.Implementations.ScheduledTasks.TaskManager: StartupTrigger fired for task: Update Plugins
Dec 03 12:46:52 JELLY-LXC systemd[106]: Listening on D-Bus User Message Bus Socket.
Dec 03 12:46:52 JELLY-LXC systemd[106]: Reached target Sockets.
Dec 03 12:46:52 JELLY-LXC systemd[106]: Reached target Basic System.
Dec 03 12:46:52 JELLY-LXC systemd[106]: Reached target Main User Target.
Dec 03 12:46:52 JELLY-LXC systemd[106]: Startup finished in 25ms.
Dec 03 12:46:52 JELLY-LXC systemd[1]: Started User Manager for UID 0.
Dec 03 12:46:52 JELLY-LXC jellyfin[73]: [12:46:52] [INF] [11] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task PluginUpdateTask
Dec 03 12:46:52 JELLY-LXC systemd[1]: Started Session 142 of User root.
Dec 03 12:46:52 JELLY-LXC jellyfin[73]: [12:46:52] [INF] [11] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing Update Plugins
Dec 03 12:46:52 JELLY-LXC login[76]: pam_env(login:session): deprecated reading of user environment enabled
Dec 03 12:46:52 JELLY-LXC login[76]: ROOT LOGIN ON lxc/tty1
Dec 03 12:46:52 JELLY-LXC jellyfin[73]: [12:46:52] [INF] [4] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 0 seconds
Dec 03 12:46:52 JELLY-LXC jellyfin[73]: [12:46:52] [INF] [4] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Session 142 of User root...
Dec 03 12:46:58 JELLY-LXC login[76]: pam_unix(login:session): session closed for user root
Dec 03 12:46:58 JELLY-LXC systemd[1]: Removed slice Slice /system/modprobe.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Graphical Interface.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Multi-User System.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Login Prompts.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Containers.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Remote Encrypted Volumes.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Timer Units.
Dec 03 12:46:58 JELLY-LXC systemd[1]: reflector.timer: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Refresh Pacman mirrorlist weekly with Reflector..
Dec 03 12:46:58 JELLY-LXC systemd[1]: shadow.timer: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Daily verification of password and group files.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-tmpfiles-clean.timer: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target System Time Set.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-coredump.socket: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Main: Received a SIGTERM signal, shutting down
Dec 03 12:46:58 JELLY-LXC systemd[1]: Closed Process Core Dump Socket.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Console Getty...
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Container Getty on /dev/lxc/tty1...
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Container Getty on /dev/lxc/tty2...
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Jellyfin Media Server...
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Hostname Service...
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Hostname Service.
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
Dec 03 12:46:58 JELLY-LXC systemd[1]: console-getty.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing EmbyTV
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Console Getty.
Dec 03 12:46:58 JELLY-LXC systemd[1]: container-getty@1.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Container Getty on /dev/lxc/tty1.
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing EntryPoint
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing LibraryMonitorStartup
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing ExternalPortForwarding
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.EntryPoints.ExternalPortForwarding: Stopping NAT discovery
Dec 03 12:46:58 JELLY-LXC systemd[1]: session-142.scope: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Session 142 of User root.
Dec 03 12:46:58 JELLY-LXC systemd-logind[65]: Session 142 logged out. Waiting for processes to exit.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping User Login Management...
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping User Manager for UID 0...
Dec 03 12:46:58 JELLY-LXC systemd[106]: Stopped target Main User Target.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Stopped target Basic System.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Stopped target Paths.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Stopped target Sockets.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Stopped target Timers.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Closed D-Bus User Message Bus Socket.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Closed GnuPG network certificate management daemon.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Dec 03 12:46:58 JELLY-LXC systemd[106]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Dec 03 12:46:58 JELLY-LXC systemd[106]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Dec 03 12:46:58 JELLY-LXC systemd[106]: Closed GnuPG cryptographic agent and passphrase cache.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Closed p11-kit server.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Removed slice User Application Slice.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Reached target Shutdown.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Finished Exit the Session.
Dec 03 12:46:58 JELLY-LXC systemd[106]: Reached target Exit the Session.
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing LibraryChangedNotifier
Dec 03 12:46:58 JELLY-LXC systemd[1]: container-getty@2.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing RecordingNotifier
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Container Getty on /dev/lxc/tty2.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Removed slice Slice /system/container-getty.
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing UdpServerEntryPoint
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing UserDataChangeNotifier
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing DlnaEntryPoint
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Dlna.Main.DlnaEntryPoint: Disposing DeviceDiscovery
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing NotificationEntryPoint
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing EntryPoint
Dec 03 12:46:58 JELLY-LXC jellyfin[73]: [12:46:58] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing DeviceAccessEntryPoint
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-logind.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped User Login Management.
Dec 03 12:46:58 JELLY-LXC systemd[107]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8004 service=[systemd-user] terminal=[] user=[root] ruser=[<unknown>] rhost=[<unknown>]
Dec 03 12:46:58 JELLY-LXC systemd[1]: user@0.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped User Manager for UID 0.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping User Runtime Directory /run/user/0...
Dec 03 12:46:58 JELLY-LXC systemd[1]: run-user-0.mount: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Unmounted /run/user/0.
Dec 03 12:46:58 JELLY-LXC systemd[1]: user-runtime-dir@0.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped User Runtime Directory /run/user/0.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Removed slice User Slice of UID 0.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping D-Bus System Message Bus...
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Permit User Sessions...
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-user-sessions.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Permit User Sessions.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Remote File Systems.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Unmounting Mount transcodes share r/w at boot....
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Home Area Activation...
Dec 03 12:46:58 JELLY-LXC umount[125]: umount: /mnt/transcodes: block devices are not permitted on filesystem.
Dec 03 12:46:58 JELLY-LXC systemd[1]: mnt-transcodes.mount: Mount process exited, code=exited, status=32/n/a
Dec 03 12:46:58 JELLY-LXC systemd[1]: Failed unmounting Mount transcodes share r/w at boot..
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Host and Network Name Lookups.
Dec 03 12:46:58 JELLY-LXC systemd[1]: dbus.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped D-Bus System Message Bus.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-homed.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-homed.service: Failed with result 'exit-code'.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Home Area Manager.
Dec 03 12:46:58 JELLY-LXC homectl[126]: Failed to deactivate all homes: Transport endpoint is not connected
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-homed-activate.service: Control process exited, code=exited, status=1/FAILURE
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-homed-activate.service: Failed with result 'exit-code'.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Home Area Activation.
###Dec 03 12:46:58 JELLY-LXC systemd[1]: jellyfin.service: Main process exited, code=exited, status=143/n/a
###Dec 03 12:46:58 JELLY-LXC systemd[1]: jellyfin.service: Failed with result 'exit-code'.
###Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Jellyfin Media Server.
###Dec 03 12:46:58 JELLY-LXC systemd[1]: jellyfin.service: Consumed 4.236s CPU time.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Basic System.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Path Units.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Slice Units.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Removed slice User and Session Slice.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Socket Units.
Dec 03 12:46:58 JELLY-LXC systemd[1]: dbus.socket: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Closed D-Bus System Message Bus Socket.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target System Initialization.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Local Encrypted Volumes.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-ask-password-console.path: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Dispatch Password Requests to Console Directory Watch.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-ask-password-wall.path: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Forward Password Requests to Wall Directory Watch.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Local Verity Protected Volumes.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Unmounting Mount media share r/o at boot....
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Record System Boot/Shutdown in UTMP...
Dec 03 12:46:58 JELLY-LXC umount[127]: umount: /mnt/media: block devices are not permitted on filesystem.
Dec 03 12:46:58 JELLY-LXC systemd[1]: mnt-media.mount: Mount process exited, code=exited, status=32/n/a
Dec 03 12:46:58 JELLY-LXC systemd[1]: Failed unmounting Mount media share r/o at boot..
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Network is Online.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Network.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-networkd-wait-online.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Wait for Network to be Configured.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Network Name Resolution...
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-update-utmp.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Record System Boot/Shutdown in UTMP.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-resolved.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Network Name Resolution.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Network Configuration...
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-tmpfiles-setup.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd-networkd[59]: eth0: DHCP lease lost
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Create Volatile Files and Directories.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Local File Systems.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Preparation for Local File Systems.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Unmounting Temporary Directory /tmp...
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-remount-fs.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Remount Root and Kernel File Systems.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-tmpfiles-setup-dev.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Create Static Device Nodes in /dev.
Dec 03 12:46:58 JELLY-LXC systemd[1]: tmp.mount: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Unmounted Temporary Directory /tmp.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped target Swaps.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Reached target Unmount All Filesystems.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-networkd.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Network Configuration.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-networkd.socket: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Closed Network Service Netlink Socket.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-sysctl.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopped Apply Kernel Variables.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Reached target System Shutdown.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Reached target Late Shutdown Services.
Dec 03 12:46:58 JELLY-LXC systemd[1]: systemd-reboot.service: Deactivated successfully.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Finished System Reboot.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Reached target System Reboot.
Dec 03 12:46:58 JELLY-LXC systemd[1]: Shutting down.
Dec 03 12:46:58 JELLY-LXC systemd-journald[47]: Journal stoppedOffline
Well… obviously.
You want the jellyfin service to launch after the mnt-media.mount and leave the latter service alone.
However that doesn't really matter because
Dec 03 12:46:58 JELLY-LXC umount[127]: umount: /mnt/media: block devices are not permitted on filesystem.The problem here is w/ lxc and restrictions.
I found https://lists.linuxcontainers.org/piper … 08391.html and https://forum.snapcraft.io/t/interface- … ssion/5689 (same problem w/ snap) but have no experience w/ lxc
Offline