Replies: 9 comments
-
|
After further testing I can confirm this is not a problem with the script, but with loading NVIDIA GPU after restarting proxmox host. After executing nvidia-smi on proxmox host, everything is alright. Please close this issue and sorry for bothering everybody else with me being dumb. |
Beta Was this translation helpful? Give feedback.
-
|
We dont Install cuda and dont pass cuda drivers? We've never done that before either. |
Beta Was this translation helpful? Give feedback.
-
|
@devdecrux this might help you, I ran into some oddities when setting up transcoding with an NVIDIA GPU on the host https://gist.github.com/marcusboon/55c347ad2bab1331b4e18cfc1f0c36ba#resolve-the-oddity-that-nvidia-uvm-does-not-get-created-on-boot |
Beta Was this translation helpful? Give feedback.
-
|
The same problem solved after rebooting. |
Beta Was this translation helpful? Give feedback.
-
|
How are you loading the nvidia drivers upon booting? Because for me the only solution at the moment after restart is to execute nvidia-smi and then start the jellyfin. Otherwise, the nvidia gpu is not found as a device generally. |
Beta Was this translation helpful? Give feedback.
-
|
Did you read through the gist that I linked? It should be a complete (albeit slightly outdated solution) |
Beta Was this translation helpful? Give feedback.
-
I don't quite understand. I am using Ubuntu and after upgrading to the Linux kernel version, I encountered the same problem. After that, a simple reboot solved it |
Beta Was this translation helpful? Give feedback.
-
Yes, I did and that's how I fixed it (just slight smaller things I did outside of the mentioned in what you linked). Very thankful by the way! However, I am still baffled why this is not done automatically by the distro or nvidia devs... to load the drivers appropriately.
I don't know either. For me it didn't work. How did you install the nvidia driver? Using apt or by downloading from nvidia website? |
Beta Was this translation helpful? Give feedback.
-
|
i convert this to discussion, i would close it, but maybe other users dont see it |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
✅ Have you read and understood the above guidelines?
yes
📜 What is the name of the script you are using?
Jellyfin
📂 What was the exact command used to execute the script?
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/jellyfin.sh)"
⚙️ What settings are you using?
🖥️ Which Linux distribution are you using?
Debian 12
📈 Which Proxmox version are you on?
9
📝 Provide a clear and concise description of the issue.
I am using Jellyfin as LXC container thanks to the script. Installed it, configured it and used for a lot of weeks already. However, since today I am not able to transcode videos using an NVIDIA GPU. Nothing was touched or changed. The .conf of the LXC container is as follows:
arch: amd64 cores: 2 features: nesting=1,fuse=1 hostname: jellyfin-capricorn memory: 2048 mp0: /mnt/decrux-media-nfs,mp=/mnt/decrux-media-nfs net0: name=eth0,bridge=vmbr0,gw=192.168.0.1,hwaddr=BC:24:11:FE:9A:9F,ip=192.168.0.204/24,ip6=auto,type=veth onboot: 0 ostype: ubuntu rootfs: local-lvm:vm-103-disk-0,size=16G swap: 512 tags: 192.168.0.204;community-script;media lxc.cgroup2.devices.allow: a lxc.cap.drop: lxc.cgroup2.devices.allow: c 188:* rwm lxc.cgroup2.devices.allow: c 189:* rwm lxc.mount.entry: /dev/serial/by-id dev/serial/by-id none bind,optional,create=dir lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file lxc.mount.entry: /dev/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file lxc.mount.entry: /dev/ttyACM1 dev/ttyACM1 none bind,optional,create=file lxc.cgroup2.devices.allow: c 226:128 rwm lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file lxc.cgroup2.devices.allow: c 226:0 rwm lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=file lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dirFrom what I can understand of the logs, there is something wrong with CUDA. However, I have no idea what happened.
🔄 Steps to reproduce the issue.
I have no idea how to reproduce it.
❌ Paste the full error output (if available).
the jellyfin log shows this error:
[2025-10-23 22:27:00.842 +03:00] [ERR] FFmpeg exited with code 187 [2025-10-23 22:27:00.927 +03:00] [ERR] Error processing request. URL "GET" "/videos/e9f5eac6-ccfe-18b7-b04f-d819d5e7e986/hls1/main/-1.mp4". MediaBrowser.Common.FfmpegException: FFmpeg exited with code 187 at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.StartFfMpeg(StreamState state, String outputPath, String commandLineArguments, Guid userId, TranscodingJobType transcodingJobType, CancellationTokenSource cancellationTokenSource, String workingDirectory) at Jellyfin.Api.Controllers.DynamicHlsController.GetDynamicSegment(StreamingRequestDto streamingRequest, Int32 segmentId) at Jellyfin.Api.Controllers.DynamicHlsController.GetHlsVideoSegment(Guid itemId, String playlistId, Int32 segmentId, String container, Int64 runtimeTicks, Int64 actualSegmentLengthTicks, Nullable1 static, String params, String tag, String deviceProfileId, String playSessionId, String segmentContainer, Nullable1 segmentLength, Nullable1 minSegments, String mediaSourceId, String deviceId, String audioCodec, Nullable1 enableAutoStreamCopy, Nullable1 allowVideoStreamCopy, Nullable1 allowAudioStreamCopy, Nullable1 breakOnNonKeyFrames, Nullable1 audioSampleRate, Nullable1 maxAudioBitDepth, Nullable1 audioBitRate, Nullable1 audioChannels, Nullable1 maxAudioChannels, String profile, String level, Nullable1 framerate, Nullable1 maxFramerate, Nullable1 copyTimestamps, Nullable1 startTimeTicks, Nullable1 width, Nullable1 height, Nullable1 maxWidth, Nullable1 maxHeight, Nullable1 videoBitRate, Nullable1 subtitleStreamIndex, Nullable1 subtitleMethod, Nullable1 maxRefFrames, Nullable1 maxVideoBitDepth, Nullable1 requireAvc, Nullable1 deInterlace, Nullable1 requireNonAnamorphic, Nullable1 transcodingMaxAudioChannels, Nullable1 cpuCoreLimit, String liveStreamId, Nullable1 enableMpegtsM2TsMode, String videoCodec, String subtitleCodec, String transcodeReasons, Nullable1 audioStreamIndex, Nullable1 videoStreamIndex, Nullable1 context, Dictionary2 streamOptions, Boolean enableAudioVbrEncoding, Boolean alwaysBurnInSubtitleWhenTranscoding)at lambda_method1212(Closure, Object)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask
1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager) at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager) at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager) at Jellyfin.Api.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext) at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager) at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)and the specific playback log shows:
[AVHWDeviceContext @ 0x5b728ecb6040] cu->cuInit(0) failed -> CUDA_ERROR_UNKNOWN: unknown error Device creation failed: -542398533. Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library Error parsing global options: Generic error in an external libraryand the video playback ends up with the following error:
Playback Error
Playback failed due to a fatal player error.
🖼️ Additional context (optional).
No response
Beta Was this translation helpful? Give feedback.
All reactions