docker-filebot icon indicating copy to clipboard operation
docker-filebot copied to clipboard

[ERROR] Refusing to modify the group ID. Exiting...

Open infinitenewworld opened this issue 7 years ago • 7 comments

Hi,

I am getting this error and don't know how to fix

[2018-01-23 21:50:18] ERROR: Found user "" with the proper user ID but incorrect group ID. Refusing to modify the group ID. Exiting...

I've looked and it appears that my USER_ID=0, GROUP_ID=0, and UMASK=0022

What am i doing wrong?

Please forgive me as I am pretty new to using Docker. Thanks!

infinitenewworld avatar Jan 23 '18 21:01 infinitenewworld

What does you Docker command look like? Did you try it with a user id which is present on your host system?

Loader23 avatar Jan 24 '18 11:01 Loader23

The problem is that user and group IDs in the container do not match the user and group ID that you've asked for. The reason that setting the user and group properly is important is that otherwise the ownership of the files won't be correct after FileBot is done with them.

Assuming that you want user ID 0 and group ID 0, then we need to figure out what's going on inside your container. (Typically root is UID 0 and GID 0.) Would you mind posting or messaging me the output of these commands?

docker exec -it FileBot bash -c 'echo "$USER_ID $GROUP_ID"'

docker exec -it FileBot cat /etc/passwd

Substitute "FileBot" with the name or ID of your container.

coppit avatar Jan 25 '18 03:01 coppit

Hi coppit, thanks for getting back. This is the output of the docker

> [~] # docker exec -it FileBot bash -c 'echo "$USER_ID $GROUP_ID"'                                                                                                                                                                     
> 0 0
> [~] # docker exec -it FileBot cat /etc/passwd                                                                                                                                                                                         
> root:x:0:0:root:/root:/bin/bash
> daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
> bin:x:2:2:bin:/bin:/usr/sbin/nologin
> sys:x:3:3:sys:/dev:/usr/sbin/nologin
> sync:x:4:65534:sync:/bin:/bin/sync
> games:x:5:60:games:/usr/games:/usr/sbin/nologin
> man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
> lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
> mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
> news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
> uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
> proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
> www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
> backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
> list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
> irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
> gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
> nobody:x:99:0:nobody:/nobody:/bin/bash
> libuuid:x:100:101::/var/lib/libuuid:
> syslog:x:101:104::/home/syslog:/bin/false
> sshd:x:102:65534::/var/run/sshd:/usr/sbin/nologin
> xrdp:x:103:106::/var/run/xrdp:/bin/false
> tomcat7:x:104:107::/usr/share/tomcat7:/bin/false
> [~] # 
> 

I am using a QNAP NAS, it seems that the UID GID and UMASK are correct for the root account. Don't know what i am doing wrong here.

infinitenewworld avatar Jan 25 '18 05:01 infinitenewworld

this is the docker command

docker run --name=FileBot -v /share/CACHEDEV1_DATA/Media/Torrents/Music:/input:rw -v "/share/CACHEDEV1_DATA/Media/Music/FLAC Library":/output:rw -v /share/CACHEDEV1_DATA/Containers/FileBot/config:/config:rw coppit/filebot

infinitenewworld avatar Jan 25 '18 06:01 infinitenewworld

Iam also using a QNAP NAS but other UID, here is my command:

docker run -d \ --name=FileBot \ -v /share/CACHEDEV1_DATA/.qpkg/FileBot:/config:rw \ -v /share/CACHEDEV2_DATA/Daten:/media:rw \ -e TZ="Europe/Berlin" \ -e USER_ID=1000 \ -e GROUP_ID=100 \ coppit/filebot

cat /etc/passwd will list all Users so you can try it with your ID. You should also consider to use /media instead of input and output so files will be moved instead of copied and deleted, its much faster. You can find this setting in the filebot.conf.

Loader23 avatar Jan 25 '18 09:01 Loader23

Okay, I'm getting closer to figuring this out. I think it has to do with the handling of the default user and group IDs if none are specified.

First, please update to the latest container and test again. I did some work on this recently, so it might be fixed for you now.

Second, if it still shows an empty value for the user ID (i.e. "Found user "" with the proper user ID"), then try explicitly setting the environment variables USER_ID=0 and GROUP_ID=0.

coppit avatar Feb 04 '18 23:02 coppit

any updates on this? I am still getting the error even when setting the env variables to 0,0

infinitenewworld avatar Apr 18 '18 23:04 infinitenewworld