-
-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
Successful run with default settings, but can't make leantime work with set user: directive.
Steps to reproduce
- Clone repo
git clone https://github.com/Leantime/docker-leantime.git
cd docker-leantime
cp sample.env .env
- Modify files:
docker-compose.yml- adduser: 1906:1906toleantime:service
.env- set1906for PUID and PGID
Just in case, 1906 is an existing user & group I created before:
sudo useradd --no-create-home --shell /usr/bin/nologin --uid 1906 leantime (using Arch, btw)
- Finally, run
docker compose up -d && docker compose logs -f
docker compose logs
leantime-1 | 2025-03-09 20:23:56,007 CRIT could not write pidfile /run/supervisord.pid
leantime-1 | 2025-03-09 20:23:56,007 CRIT could not write pidfile /run/supervisord.pid
leantime-1 | 2025-03-09 20:23:57,010 INFO spawned: 'php-fpm' with pid 10
leantime-1 | 2025-03-09 20:23:57,010 INFO spawned: 'php-fpm' with pid 10
leantime-1 | 2025-03-09 20:23:57,012 INFO spawned: 'nginx' with pid 11
leantime-1 | 2025-03-09 20:23:57,012 INFO spawned: 'nginx' with pid 11
leantime-1 | 2025-03-09 20:23:57,014 INFO spawned: 'scheduler' with pid 12
leantime-1 | 2025-03-09 20:23:57,014 INFO spawned: 'scheduler' with pid 12
leantime-1 | supervisor: couldn't setuid to 1000: Can't drop privilege as nonroot user
leantime-1 | supervisor: child process was not spawned
leantime-1 | 2025-03-09 20:23:57,020 WARN exited: scheduler (exit status 127; not expected)
leantime-1 | 2025-03-09 20:23:57,020 WARN exited: scheduler (exit status 127; not expected)
leantime-1 | 2025-03-09 20:23:57,022 WARN exited: nginx (exit status 1; not expected)
leantime-1 | 2025-03-09 20:23:57,022 WARN exited: nginx (exit status 1; not expected)
leantime-1 | [09-Mar-2025 20:23:57] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
leantime-1 | [09-Mar-2025 20:23:57] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
leantime-1 | [09-Mar-2025 20:23:57] NOTICE: fpm is running, pid 10
leantime-1 | [09-Mar-2025 20:23:57] NOTICE: ready to handle connections
leantime-1 | 2025-03-09 20:23:58,055 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
leantime-1 | 2025-03-09 20:23:58,055 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
leantime-1 | 2025-03-09 20:23:58,059 INFO spawned: 'nginx' with pid 18
leantime-1 | 2025-03-09 20:23:58,059 INFO spawned: 'nginx' with pid 18
leantime-1 | 2025-03-09 20:23:58,061 INFO spawned: 'scheduler' with pid 19
leantime-1 | 2025-03-09 20:23:58,061 INFO spawned: 'scheduler' with pid 19
leantime-1 | supervisor: couldn't setuid to 1000: Can't drop privilege as nonroot user
leantime-1 | supervisor: child process was not spawned
leantime-1 | 2025-03-09 20:23:58,064 WARN exited: scheduler (exit status 127; not expected)
leantime-1 | 2025-03-09 20:23:58,064 WARN exited: scheduler (exit status 127; not expected)
leantime-1 | 2025-03-09 20:23:58,068 WARN exited: nginx (exit status 1; not expected)
leantime-1 | 2025-03-09 20:23:58,068 WARN exited: nginx (exit status 1; not expected)
leantime-1 | 2025-03-09 20:24:00,074 INFO spawned: 'nginx' with pid 20
leantime-1 | 2025-03-09 20:24:00,074 INFO spawned: 'nginx' with pid 20
leantime-1 | 2025-03-09 20:24:00,076 INFO spawned: 'scheduler' with pid 21
leantime-1 | 2025-03-09 20:24:00,076 INFO spawned: 'scheduler' with pid 21
leantime-1 | supervisor: couldn't setuid to 1000: Can't drop privilege as nonroot user
leantime-1 | supervisor: child process was not spawned
leantime-1 | 2025-03-09 20:24:00,080 WARN exited: scheduler (exit status 127; not expected)
leantime-1 | 2025-03-09 20:24:00,080 WARN exited: scheduler (exit status 127; not expected)
leantime-1 | 2025-03-09 20:24:00,083 WARN exited: nginx (exit status 1; not expected)
leantime-1 | 2025-03-09 20:24:00,083 WARN exited: nginx (exit status 1; not expected)
leantime-1 | 2025-03-09 20:24:03,092 INFO spawned: 'nginx' with pid 22
leantime-1 | 2025-03-09 20:24:03,092 INFO spawned: 'nginx' with pid 22
leantime-1 | 2025-03-09 20:24:03,094 INFO spawned: 'scheduler' with pid 23
leantime-1 | 2025-03-09 20:24:03,094 INFO spawned: 'scheduler' with pid 23
leantime-1 | supervisor: couldn't setuid to 1000: Can't drop privilege as nonroot user
leantime-1 | supervisor: child process was not spawned
leantime-1 | 2025-03-09 20:24:03,097 WARN exited: scheduler (exit status 127; not expected)
leantime-1 | 2025-03-09 20:24:03,097 WARN exited: scheduler (exit status 127; not expected)
leantime-1 | 2025-03-09 20:24:03,097 INFO gave up: scheduler entered FATAL state, too many start retries too quickly
leantime-1 | 2025-03-09 20:24:03,097 INFO gave up: scheduler entered FATAL state, too many start retries too quickly
leantime-1 | 2025-03-09 20:24:03,100 WARN exited: nginx (exit status 1; not expected)
leantime-1 | 2025-03-09 20:24:03,100 WARN exited: nginx (exit status 1; not expected)
leantime-1 | 2025-03-09 20:24:04,102 INFO gave up: nginx entered FATAL state, too many start retries too quickly
leantime-1 | 2025-03-09 20:24:04,102 INFO gave up: nginx entered FATAL state, too many start retries too quickly
I tried different methods to fix this issue, none were successful yet. Even container build with PUID=1906 & PGID=1906 args didn't help, though got not the same errors.
tyssejc
Metadata
Metadata
Assignees
Labels
No labels