After the recommended l3d reset, l3d shows up with wrong user which leads to malfunctions
After updating l3d to 2.0.0-beta3
(or fresh installation) and doing the recommended reset
, we ended up with l3d using the wrong user (i.e. not root) in its container, which, of course, leads to errors afterwards. We experienced this on two separate machines (both running Ubuntu 20.04)
Full terminal output (after fresh installation, because everything l3d related was removed investigating this to see if it is reproducable behavior):
kgertz@titan2f ~> docker run -v /usr/local/bin:/setup --rm registry.lakedrops.com/docker/l3d/setup:latest
Unable to find image 'registry.lakedrops.com/docker/l3d/setup:latest' locally
latest: Pulling from docker/l3d/setup
d60bca25ef07: Pull complete
1b2bb9ee0893: Pull complete
9a8eea61670a: Pull complete
Digest: sha256:e08449650c464e041f991d24cb34566274b78164aa6e1b3951854869763b8e96
Status: Downloaded newer image for registry.lakedrops.com/docker/l3d/setup:latest
L3D installed successfully!
Call ===> l3d help <=== for further instructions.
kgertz@titan2f ~> l3d reset
Unable to find image 'registry.lakedrops.com/docker/l3d/run:2.0.0-beta3' locally
2.0.0-beta3: Pulling from docker/l3d/run
801bfaa63ef2: Pull complete
4f7dc993c79e: Pull complete
d39d95e4997f: Pull complete
ae283de69b7d: Pull complete
1962c7344fe5: Pull complete
aa7a3367c785: Pull complete
5e259227d438: Pull complete
a38001158edd: Pull complete
837d641dcbc6: Pull complete
72a5813f12bb: Pull complete
7709f1e4daeb: Pull complete
e59612493d3a: Pull complete
572e8c5a4ece: Pull complete
Digest: sha256:e547ec194cc032edaaf2d93662fb2583d35486624922163c282f6f4ca72b53cb
Status: Downloaded newer image for registry.lakedrops.com/docker/l3d/run:2.0.0-beta3
ad7a30f546dbc0eead9a0faadc820edd9b959378baf865f7fd5337939cb1ad0b
Reset L3D container
Force update
Force update
Force update
Force update
Force update
Force update
Cleaning old container
kgertz@titan2f ~ [SIGKILL]> l3d
b17f719f8082f4be12e8a2216261aa76c6e3b5e98db0e318c1e006152ac9c2d2
Which PHP version is your project using? 7.2
Do you want to downgrade Composer to version 1? 1
Name your project (used as subdomain): testd8
Unable to find image 'registry.lakedrops.com/docker/l3d/php-7.2:2.0.0-beta3' locally
2.0.0-beta3: Pulling from docker/l3d/php-7.2
c87736221ed0: Pull complete
bcb58026c06e: Pull complete
6c24eee1bf47: Pull complete
864f09cef0fe: Pull complete
16817bf2efb1: Pull complete
149845e5a0a7: Pull complete
7188a03fb28f: Pull complete
ec5a712de2c9: Pull complete
382141611b48: Pull complete
b2f1eacf2c3f: Pull complete
5c3ae37cdff6: Pull complete
6150e6f80f94: Pull complete
c67b285c3993: Pull complete
66ddd3519a31: Pull complete
0259ad566113: Pull complete
83216dca8b9b: Pull complete
ee1cc22875cc: Pull complete
3c08ac6bbe6f: Pull complete
109a8815fb64: Pull complete
5b9b0322ccdd: Pull complete
ae2f066c6113: Pull complete
Digest: sha256:09d8cfb4ac4ca3c2527ba48d23f3a553d1e6ec4f07a0d7467cb2320b4555f3cb
Status: Downloaded newer image for registry.lakedrops.com/docker/l3d/php-7.2:2.0.0-beta3
af058674e0790624c600b6bf1637ed8a0857ec45f6010c46619d04a449774c8c
Warning: You forced the install of 1.10.19 via --1, but 2.0.8 is the latest stable version. Updating to it via composer self-update --stable is recommended.
Upgrading to version 1.10.19 (1.x channel).
[Composer\Downloader\FilesystemException]
Filesystem exception:
Composer update failed: "/usr/local/bin/composer" could not be written.
rename(/usr/local/bin/composer): failed to open stream: Permission denied
self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--1] [--2] [--set-channel-only] [--] [<version>]
set: Warning: $PATH entry "/home/kgertz/.composer/vendor/bin" is not valid (No such file or directory)
Welcome to fish, the friendly interactive shell
kgertz@testd8-l3d/drupal>
We tried to examine that further, but couldn't come to any conclusion as we are lacking knowledge of l3d's internals.. Maybe the parameters passed in the start script my be of any help?
--env USERID=1000 --env USERNAME=kgertz --env GROUPID=1000 --env GROUPIDS=1000 0 4 24 27 30 46 120 131 132 998 --env HOMEDIR=/home/kgertz --env L3DSHELL=/usr/bin/fish --env WORKDIR=/home/kgertz --env SSHAUTH= --env SSHAUTHSOCK=/ssh-agent --env PHP_VERSION=7.2 --env COMPOSE_PROJECT_NAME=testd8 --env COMPOSER_DOWNGRADE=1