TugboatBill 17 Posted August 1 Posted August 1 I upgrade to the latest release and I see in the service startup: Aug 01 11:13:33 Emby sh[1632]: /bin/sh: /opt/emby-server/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/sh) Aug 01 11:13:33 Emby sh[1632]: /bin/sh: /opt/emby-server/lib/libc.so.6: version `GLIBC_2.33' not found (required by /bin/sh) Aug 01 11:13:33 Emby sh[1632]: /bin/sh: /opt/emby-server/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/sh) And of course the service fails to start. This is on Debian 6.12.94-1 (2026-06-20) x86_64 (not docker) I saw this trying to upgrade from 4.9.3.0 to 4.9.4.0 and to 4.9.5.0
alucryd 344 Posted August 3 Posted August 3 Hi there, I can't reproduce on a fresh Debian 13 VM. Are you using systemd to run the service? Do you have LD_LIBRARY_PATH set in /etc/conf.d/emby-server.conf? If so, try removing it, that file should not set LD_LIBRARY_PATH.
TugboatBill 17 Posted August 3 Author Posted August 3 Yes, I'm using systemd. I don't have the /etc/conf.d folder. I do have /etc/emby-server.conf and /etc/init/emby-server.conf. Neither have LD_LIBRARY_PATH defined though.
alucryd 344 Posted August 4 Posted August 4 Did you modify the service in any way? Using systemctl edit for example? This can only happen if our LD_LIBRARY_PATH is already present in the environment when systemd runs our launcher script.
alucryd 344 Posted August 8 Posted August 8 @TugboatBillMight have found a way to stop depending on LD_LIBRARY_PATH, would you give a test build a try?
TugboatBill 17 Posted August 9 Author Posted August 9 My emby server is a proxmox VM that has a nvidia card passed through to it (for transcoding). I have several NAS that I have NFS shares on that I mount to the emby server. I've had issues with the server not seeing the nas for various reasons and so I have a script - /usr/local/bin/check-nfs-before-emby.sh (seen in the systemctl status for the service below) that ensures the shares are mounted before emby server starts and emails me if there's a problem. It doesn't use LD_LIBRARY_PATH. That is first in the startup of the service. Next is a conf (90-nvenc.conf below) that sets up for ffmpeg. It was added as I couldn't get the NVIDIA card to transcode properly (wasn't finding the right ffmpeg files). I used a AI chatbot to come up with the following:: [Service] # Sets the library path so Emby's bundled FFmpeg can find its dependencies # and the necessary Intel (libmfx) and NVIDIA libraries. Environment="LD_LIBRARY_PATH=/opt/emby-server/lib:/opt/emby-server/extra/lib" # Add a short delay to ensure the NVIDIA device files are fully initialized # before Emby attempts its hardware detection. This can fix timing issues. ExecStartPre=/bin/sleep 5 The service (systemctl status emby-server): emby-server.service - Emby Server is a personal media server with apps on just about every device Loaded: loaded (/usr/lib/systemd/system/emby-server.service; enabled; preset: enabled) Drop-In: /etc/systemd/system/emby-server.service.d └─10-nfs-check.conf, 90-nvenc.conf Active: active (running) since Fri 2026-08-07 10:16:29 PDT; 2 days ago Invocation: 5cff728e33e24ec68f9e5ea4fa4d6877 Process: 881 ExecStartPre=/bin/sh -c sudo /usr/local/bin/check-nfs-before-emby.sh || { echo "NFS mount check failed - blocking Emby startup"; exit 1; } (code=exited, status=0/SUCCESS) Process: 1428 ExecStartPre=/bin/sleep 5 (code=exited, status=0/SUCCESS) Main PID: 1431 (EmbyServer) Tasks: 265:245m (limit: 9385) Memory: 3G (peak: 3.3G) CPU: 27min 57.497s CGroup: /system.slice/emby-server.service └─5:245m1431 /opt/emby-server/system/EmbyServer -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage em> And the service file /usr/lib/systemd/system/emby-server.service: [Unit] Description=Emby Server is a personal media server with apps on just about every device After=network.target [Service] EnvironmentFile=/etc/emby-server.conf WorkingDirectory=/opt/emby-server ExecStart=/opt/emby-server/bin/emby-server RestartForceExitStatus=3 User=emby [Install] WantedBy=multi-user.target [Unit] Description=Emby Server is a personal media server with apps on just about every device After=network.target /etc/emby-server.conf has a single comment line and nothing else.
TugboatBill 17 Posted August 9 Author Posted August 9 20 hours ago, alucryd said: @TugboatBillMight have found a way to stop depending on LD_LIBRARY_PATH, would you give a test build a try? alucryd - I could give it a try if you think the additional stuff I just posted doesn't change the situation.
alucryd 344 Posted August 11 Posted August 11 Your nvenc drop-in is definitely the culprit. My new method relies on runpath instead of LD_LIBRARY_PATH, it's less invasive and thus more portable. Still need to iron some things out to make sure dlopened libs still work, but it should make it so you don't need to add LD_LIBRARY_PATH in your drop-in as well. I'll have a custom build ready for you later this week.
TugboatBill 17 Posted September 10 Author Posted September 10 I've been buried in work and got a few minutes today to drop by. Would this change be in 4.10.0.40?
Luke 43389 Posted September 10 Posted September 10 1 hour ago, TugboatBill said: I've been buried in work and got a few minutes today to drop by. Would this change be in 4.10.0.40? Hi, no, we did not want to throw this in at the last minute.
TugboatBill 17 Posted October 11 Author Posted October 11 Just tried and it failed: root@Emby:/tmp# dpkg -i emby-server-deb_4.11.0.6_amd64.deb (Reading database ... 98116 files and directories currently installed.) Preparing to unpack emby-server-deb_4.11.0.6_amd64.deb ... Removed '/etc/systemd/system/multi-user.target.wants/emby-server.service'. Unpacking emby-server (4.11.0.6) over (4.9.3.0) ... Setting up emby-server (4.11.0.6) ... usermod: no changes Created symlink '/etc/systemd/system/multi-user.target.wants/emby-server.service' → '/usr/lib/systemd/system/emby-server.service'. Job for emby-server.service failed because the control process exited with error code. See "systemctl status emby-server.service" and "journalctl -xeu emby-server.service" for details. Processing triggers for libc-bin (2.41-12+deb13u3) ... root@Emby:/tmp# systemctl status emby-server.service × emby-server.service - Emby Server is a personal media server with apps on just about every device Loaded: loaded (/usr/lib/systemd/system/emby-server.service; enabled; preset: enabled) Drop-In: /etc/systemd/system/emby-server.service.d └─10-nfs-check.conf, 90-nvenc.conf Active: failed (Result: exit-code) since Sun 2026-10-11 10:13:42 PDT; 20s ago Invocation: aefe4f063f5340188a694e168fc796dc Process: 179813 ExecStartPre=/bin/sh -c sudo /usr/local/bin/check-nfs-before-emby.sh || { echo "NFS mount check failed - blocking Emby startup"; exit 1; } (code=exited, status=1/FAILURE) Mem peak: 1.8M CPU: 6ms Oct 11 10:13:41 Emby systemd[1]: Starting emby-server.service - Emby Server is a personal media server with apps on just about every device... Oct 11 10:13:42 Emby sh[179813]: /bin/sh: /opt/emby-server/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/sh) Oct 11 10:13:42 Emby systemd[1]: emby-server.service: Control process exited, code=exited, status=1/FAILURE Oct 11 10:13:42 Emby systemd[1]: 5:185m5:185memby-server.service: Failed with result 'exit-code'. Oct 11 10:13:42 Emby systemd[1]: Failed to start emby-server.service - Emby Server is a personal media server with apps on just about every device. root@Emby:/tmp# journalctl -xeu emby-server.service 5:245m░░ Support: https://www.debian.org/support 5:245m░░ 5:245m░░ The unit emby-server.service has successfully entered the 'dead' state. Oct 11 10:13:32 Emby systemd[1]: Stopped emby-server.service - Emby Server is a personal media server with apps on just about every device. 5:245m░░ Subject: A stop job for unit emby-server.service has finished 5:245m░░ Defined-By: systemd 5:245m░░ Support: https://www.debian.org/support 5:245m░░ 5:245m░░ A stop job for unit emby-server.service has finished. 5:245m░░ 5:245m░░ The job identifier is 24137 and the job result is done. Oct 11 10:13:32 Emby systemd[1]: emby-server.service: Consumed 1h 47min 5.081s CPU time, 6.4G memory peak, 11.8M memory swap peak. 5:245m░░ Subject: Resources consumed by unit runtime 5:245m░░ Defined-By: systemd 5:245m░░ Support: https://www.debian.org/support 5:245m░░ 5:245m░░ The unit emby-server.service completed and consumed the indicated resources. Oct 11 10:13:41 Emby systemd[1]: Starting emby-server.service - Emby Server is a personal media server with apps on just about every device... 5:245m░░ Subject: A start job for unit emby-server.service has begun execution 5:245m░░ Defined-By: systemd 5:245m░░ Support: https://www.debian.org/support 5:245m░░ 5:245m░░ A start job for unit emby-server.service has begun execution. 5:245m░░ 5:245m░░ The job identifier is 24238. Oct 11 10:13:42 Emby sh[179813]: /bin/sh: /opt/emby-server/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/sh) Oct 11 10:13:42 Emby systemd[1]: emby-server.service: Control process exited, code=exited, status=1/FAILURE 5:245m░░ Subject: Unit process exited 5:245m░░ Defined-By: systemd 5:245m░░ Support: https://www.debian.org/support 5:245m░░ 5:245m░░ An ExecStartPre= process belonging to unit emby-server.service has exited. 5:245m░░ 5:245m░░ The process' exit code is 'exited' and its exit status is 1. Oct 11 10:13:42 Emby systemd[1]: 5:185m5:185memby-server.service: Failed with result 'exit-code'. 5:245m░░ Subject: Unit failed 5:245m░░ Defined-By: systemd 5:245m░░ Support: https://www.debian.org/support 5:245m░░ 5:245m░░ The unit emby-server.service has entered the 'failed' state with result 'exit-code'. Oct 11 10:13:42 Emby systemd[1]: Failed to start emby-server.service - Emby Server is a personal media server with apps on just about every device. 5:245m░░ Subject: A start job for unit emby-server.service has failed 5:245m░░ Defined-By: systemd 5:245m░░ Support: https://www.debian.org/support 5:245m░░ 5:245m░░ A start job for unit emby-server.service has finished with a failure. 5:245m░░ 5:245m░░ The job identifier is 24238 and the job result is failed. root@Emby:/tmp# my 90-nvenc.conf was: [Service] # Sets the library path so Emby's bundled FFmpeg can find its dependencies # and the necessary Intel (libmfx) and NVIDIA libraries. Environment="LD_LIBRARY_PATH=/opt/emby-server/lib:/opt/emby-server/extra/lib" # Add a short delay to ensure the NVIDIA device files are fully initialized # before Emby attempts its hardware detection. This can fix timing issues. ExecStartPre=/bin/sleep 5 I changed it to: [Service] # Add a short delay to ensure the NVIDIA device files are fully initialized # before Emby attempts its hardware detection. This can fix timing issues. ExecStartPre=/bin/sleep 5 and now enby service starts: root@Emby:/etc/systemd/system/emby-server.service.d# systemctl status emby-server ● emby-server.service - Emby Server is a personal media server with apps on just about every device Loaded: loaded (/usr/lib/systemd/system/emby-server.service; enabled; preset: enabled) Drop-In: /etc/systemd/system/emby-server.service.d └─10-nfs-check.conf, 90-nvenc.conf Active: active (running) since Sun 2026-10-11 10:43:18 PDT; 7min ago Invocation: 66fa768788a84594ac6fb5785f6989c3 Process: 180237 ExecStartPre=/bin/sh -c sudo /usr/local/bin/check-nfs-before-emby.sh || { echo "NFS mount check failed - blocking Emby startup"; exit 1; } (code=exited, status=0/SUCCESS) Process: 180365 ExecStartPre=/bin/sleep 5 (code=exited, status=0/SUCCESS) Main PID: 180368 (EmbyServer) Tasks: 245:245m (limit: 9385) Memory: 911.5M (peak: 943.4M) CPU: 20.400s CGroup: /system.slice/emby-server.service └─5:245m180368 /opt/emby-server/system/EmbyServer -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage > Oct 11 10:43:22 Emby emby-server[180368]: Info App: Entry point completed: Tvdb.EntryPoint. Duration: 3.08E-05 seconds Oct 11 10:43:22 Emby emby-server[180368]: Info App: Starting entry point Emby.Security.PluginSecurityManager Oct 11 10:43:22 Emby emby-server[180368]: Info App: Entry point completed: Emby.Security.PluginSecurityManager. Duration: 0.0003503 seconds Oct 11 10:43:22 Emby emby-server[180368]: Info App: Starting entry point Emby.Server.CinemaMode.IntrosEntryPoint Oct 11 10:43:22 Emby emby-server[180368]: Info App: Entry point completed: Emby.Server.CinemaMode.IntrosEntryPoint. Duration: 0.0001244 seconds Oct 11 10:43:22 Emby emby-server[180368]: Info App: Starting entry point MBBackup.ServerEntryPoint Oct 11 10:43:22 Emby emby-server[180368]: Info App: Entry point completed: MBBackup.ServerEntryPoint. Duration: 0.000116 seconds Oct 11 10:43:22 Emby emby-server[180368]: Info App: Starting entry point Emby.PortMapper.ExternalPortForwarding Oct 11 10:43:22 Emby emby-server[180368]: Info App: Entry point completed: Emby.PortMapper.ExternalPortForwarding. Duration: 0.0004933 seconds Oct 11 10:43:22 Emby emby-server[180368]: Info App: All entry points have started and the GPU is recognized (the reason for Environment command in the original 90-nvenc.conf file: root@Emby:~# nvidia-smi Sun Oct 11 11:08:17 2026 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 550.163.01 Driver Version: 550.163.01 CUDA Version: 12.4 | |-----------------------------------------+------------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA GeForce GTX 1060 3GB Off | 00000000:01:00.0 Off | N/A | | 29% 39C P2 43W / 120W | 231MiB / 3072MiB | 5% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ +-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | 0 N/A N/A 180709 C /opt/emby-server/bin/ffmpeg 227MiB | +-----------------------------------------------------------------------------------------+
alucryd 344 Posted October 11 Posted October 11 (edited) @TugboatBillIt seems you still have LD_LIBRARY_PATH in your custom service, you need to remove it. Edit: Wait it was hard to read, it seems you removed it. It must still be coming from elsewhere, we've removed any trace of it on our side. Edit 2: Misread again, please use code blocks next time. So it works without LD_LIBRARY_PATH in your service right? That was the intent. Edited October 11 by alucryd
TugboatBill 17 Posted October 12 Author Posted October 12 That is correct, LD_LIBRARY_PATH is no longer in the path. It was entered as I couldn't get the GPU to transcode without it. That was done a few versions back so I don't know when I didn't actually need that assignment any more.
Luke 43389 Posted October 12 Posted October 12 1 hour ago, TugboatBill said: That is correct, LD_LIBRARY_PATH is no longer in the path. It was entered as I couldn't get the GPU to transcode without it. That was done a few versions back so I don't know when I didn't actually need that assignment any more. So are things working now with it removed?
TugboatBill 17 Posted October 12 Author Posted October 12 Yes. It will transcode properly using the GPU. System is updated to 4.11.06 and emby-server.service starts without error. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now