nicknsy / jellyscrub

Smooth mouse-over video scrubbing previews for Jellyfin.
MIT License
672 stars 27 forks source link

Permission denied to set process priority to high #122

Closed iluvatyr closed 1 year ago

iluvatyr commented 1 year ago
[23:28:29] [ERR] [27] Nick.Plugin.Jellyscrub.Drawing.OldMediaEncoder: Unable to set process priority: Permission denied (will not prevent BIF generation!)

Any idea why this is the case? Everything works, but I saw this in the logs.

nicknsy commented 1 year ago

On linux (maybe Windows too) elevation is required to set certain process priorities--I believe above normal. If you're running in docker as a non-root user or outside of docker as the default jellyfin user this is expected. This cam be fixed in docker by setting the PID to 0 or by editing the /etc/security/limits.conf file to allow normal users the ability to set certain priorities.

Although, generally you wouldn't want BIF generation to take priority over whatever else if happening on your system.