PixiBixi / dockerfiles

My own DockerFiles
14 stars 6 forks source link

Youtube-dl crashes with custom GID and UID #3

Open Skaronator opened 6 years ago

Skaronator commented 6 years ago

I tried to start your YT-DL container with GID=100 and UID=1000 and it just crashed before even starting. I'm guessing it tries to chown with a user that doesn't exist.

https://github.com/PixiBixi/dockerfiles/blob/c8fb75d00dd468dfc5b55316c10f93a3100f3114/youtubedl-webui/startup#L7


Updating to version 2018.05.01 ...,
Updated youtube-dl. Restart youtube-dl to use the new version.,
2018-05-05 20:15:35,243 INFO exited: php-fpm (exit status 78; not expected),addgroup: gid '100' in use,
chown: unknown user/group youtube-dl:youtube-dl,
2018-05-05 20:15:33,162 CRIT Supervisor running as root (no user in config file),
2018-05-05 20:15:33,168 INFO supervisord started with pid 12,
2018-05-05 20:15:34,170 INFO spawned: 'nginx' with pid 15,
2018-05-05 20:15:34,172 INFO spawned: 'php-fpm' with pid 16,
2018-05-05 20:15:34,192 INFO exited: nginx (exit status 1; not expected),
2018-05-05 20:15:34,216 INFO exited: php-fpm (exit status 78; not expected),
2018-05-05 20:15:35,220 INFO spawned: 'php-fpm' with pid 18,
2018-05-05 20:15:35,218 INFO spawned: 'nginx' with pid 17,
2018-05-05 20:15:35,235 INFO exited: nginx (exit status 1; not expected),
2018-05-05 20:15:37,246 INFO spawned: 'nginx' with pid 19,
2018-05-05 20:15:37,248 INFO spawned: 'php-fpm' with pid 20,
2018-05-05 20:15:37,264 INFO exited: nginx (exit status 1; not expected),
2018-05-05 20:15:40,277 INFO spawned: 'php-fpm' with pid 22,
2018-05-05 20:15:40,294 INFO gave up: nginx entered FATAL state, too many start retries too quickly,
2018-05-05 20:15:40,294 INFO exited: nginx (exit status 1; not expected),
2018-05-05 20:15:40,301 INFO exited: php-fpm (exit status 78; not expected),
2018-05-05 20:15:41,302 INFO gave up: php-fpm entered FATAL state, too many start retries too quickly,
2018-05-05 20:15:40,276 INFO spawned: 'nginx' with pid 21,
2018-05-05 20:15:37,271 INFO exited: php-fpm (exit status 78; not expected)
PixiBixi commented 6 years ago

What's the GID 100 on your system?

Skaronator commented 6 years ago

A user account with in the users group. I'm using the same account in other containers without any issues (linuxserver/syncthing for example)

root@OMV-NAS:/# id niklas
uid=1000(niklas) gid=100(users) Gruppen=100(users)
root@OMV-NAS:/#
PixiBixi commented 6 years ago

I'll try to work on your case asap :)

Skaronator commented 6 years ago

Cool thanks. Take your time