.env file is attacheddocker-compose.override.yml is attached (if it exists)cfg/ dir are attached (if customized)docker-compose logs and log/ output is added
Trying to start the PHP (7.4) container for the first time fails. A work-around is to start it a second time, and then it works again.
The php server starts without issue.
The following output is reported:
php_1 | [INFO] Debug level: 2
php_1 | [INFO] Changing user 'devilbox' uid to: 197610
php_1 | root $ usermod -u 197610 devilbox
php_1 | usermod: Failed to change ownership of the home directory
docker_php_1 exited with code 12
Execution is halted at this point; the php server does not start correctly.
If this error occurs, these steps are a work-around to allow the php server to start anyway:
The output is then:
php_1 | [INFO] Debug level: 2
php_1 | [INFO] Changing user 'devilbox' uid to: 197610
php_1 | root $ usermod -u 197610 devilbox
php_1 | usermod: no changes
So in summary, the second start (when uninterrupted by a 'down' or a full toolbox restart) always works.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue still occurs...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@Venorcis I finally figure out the issue and will provide a fix shortly:
grep -E '^(U|G)ID_M(IN|AX)' /etc/login.defs
UID_MIN 1000
UID_MAX 60000
GID_MIN 1000
GID_MAX 60000
It turns out, that the given user id was above the acceptable threshhold value.
@Venorcis I finally figure out the issue and will provide a fix shortly:
grep -E '^(U|G)ID_M(IN|AX)' /etc/login.defs UID_MIN 1000 UID_MAX 60000 GID_MIN 1000 GID_MAX 60000It turns out, that the given user id was above the acceptable threshhold value.
Turns out it is totally unrelated. The actual fix is to run usermod twice in case it fails during the first try. The second run always succeeds. Found this issue in a lot of other docker projects. It is a bit messy, but it does the job
Fixed here: https://github.com/cytopia/devilbox/pull/750