Change Group and User ID for Filebot Node

Support for unRAID and docker container users
Post Reply
spooknik
Posts: 2
Joined: 20 May 2023, 08:40

Change Group and User ID for Filebot Node

Post by spooknik »

Hello!

I am running Filebot Node on TrueNAS Scale, when moving files I get the following error:

Format: Select all

[MOVE] from [/volume1/Sync/seedbox/Season 5/Mad Men (2007) - S05E04 - Mystery Date (1080p BluRay x265 Silence).mkv] to [/volume1/TV/Mad Men/Season 5/Mad Men - 5x04 - Mystery Date.mkv]
I need to run the Docker image with a specific Group ID and User ID in order to set the permissions correctly.

However, when launching the docker image I get the following error:

Format: Select all

2023-08-22 07:09:59.668719+00:00sudo: you do not exist in the passwd database
So is there a way to run Filebot Node with another Group ID / User ID

Docker Settings in TrueNAS:

Image
User avatar
rednoah
The Source
Posts: 22851
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Change Group and User ID for Filebot Node

Post by rednoah »

docker containers traditionally run as root (within the container) on startup and setup a new user inside the container and then switch to that user to run the main application. The UID and GID for that user is defined via the PUIDand PGID environment variables by common convention:

Shell: Select all

-e PUID=1000 -e PGID=1000
:arrow: How to do I run the process inside the container as a different user?
:idea: Please read the FAQ and How to Request Help.
spooknik
Posts: 2
Joined: 20 May 2023, 08:40

Re: Change Group and User ID for Filebot Node

Post by spooknik »

rednoah wrote: 22 Aug 2023, 07:22 docker containers traditionally run as root (within the container) on startup and setup a new user inside the container and then switch to that user to run the main application. The UID and GID for that user is defined via the PUIDand PGID environment variables by common convention:

Shell: Select all

-e PUID=1000 -e PGID=1000
:arrow: How to do I run the process inside the container as a different user?
Adding the arguments

Shell: Select all

-e PUID=1000 -e PGID=1000
seems to have worked. It seems to break stuff when you try to use the TrueNAS GUI to set the UID and GID.

Thanks! 8-)
User avatar
rednoah
The Source
Posts: 22851
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Change Group and User ID for Filebot Node

Post by rednoah »

TrueNAS GUI likely uses the --user docker option. However, if that user does not exist within the container, no user name, no permissions, no $HOME folder, etc, then you will run into issues.
:idea: Please read the FAQ and How to Request Help.
Post Reply