-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker autostart does not work anymore #110
Comments
Here is what I get when I run lando [STARTED] It seems Docker is not running, trying to start it up... +16ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ +17ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ * +7998ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ ** +151ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ *** +80ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ **** +55ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ ***** +306ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ ****** +50ms
lando running elevated command 'sudo' %o %o 0=--stdin, 1=--bell, 2=--, 3=echo, 4=hello there +11525ms
lando 'sudo' stderr '[sudo] password for [user]:' +15ms
lando 'sudo' stdout 'hello there' +44ms
lando [PROMPT] ✔ Enter computer password for [user] to start docker · ****** +2913ms
lando engine is down with error {} +198ms
lando running elevated command 'sudo' %o %o 0=--stdin, 1=--bell, 2=--, 3=systemctl, 4=start, 5=docker.service +1ms
lando 'sudo' stderr "System has not been booted with systemd as init system (PID 1). Can't operate.\n" +
'Failed to connect to bus: Host is down' +14ms
lando {"code":1} +17ms
lando [RETRY] It seems Docker is not running, trying to start it up... [1] +1ms
lando [FAILED] System has not been booted with systemd as init system (PID 1). Can't operate.
[FAILED] Failed to connect to bus: Host is down
+1ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ +1ms (I replaced my username by [user]) |
It doesn't seem to work. There is a new error in debug now : lando [STARTED] It seems Docker is not running, trying to start it up... +11ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ +13ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ * +2118ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ ** +124ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ *** +108ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ **** +55ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ ***** +299ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ ****** +62ms
lando running elevated command 'sudo' %o %o 0=--stdin, 1=--bell, 2=--, 3=echo, 4=hello there +3136ms
lando 'sudo' stderr '[sudo] password for [user]:' +13ms
lando 'sudo' stdout 'hello there' +35ms
lando [PROMPT] ✔ Enter computer password for [user] to start docker · ****** +396ms
lando engine is down with error {} +1779ms
lando running elevated command 'sudo' %o %o 0=--stdin, 1=--bell, 2=--, 3=/home/[user]/.lando/scripts/docker-engine-start.sh +0ms
lando 'sudo' stderr 'root is not in the sudoers file. This incident will be reported.' +22ms
lando 'sudo' stderr 'root is not in the sudoers file. This incident will be reported.' +3ms
lando {"code":1} +28ms
lando [RETRY] It seems Docker is not running, trying to start it up... [1] +1ms
lando [FAILED] root is not in the sudoers file. This incident will be reported.
[FAILED] root is not in the sudoers file. This incident will be reported.
+1ms
lando [PROMPT] ? Enter computer password for [user] to start docker ‣ +1ms |
Ok it seems that |
@soleneggd makes sense but its weird that its trying to run as root instead of you, going to reopen this to investigate more |
@soleneggd correctly pointed out in slack that we are running sudo inside a script that is already running elevated so that is why the user is "root" |
It happens to me too, I didn't understand why was the issue closed. I tried uninstalling docker and reinstalling it via the lando install script, but it didn't help. lando [STARTED] It seems Docker is not running, trying to start it up... +4ms |
@roikedem it looks like there's an issue with your installation of Docker/Docker Compose. Are you running Lando in a WSL2 environment? Looking at some of these errors makes me wonder if you're possible running an older version of WSL (see https://askubuntu.com/questions/1379425/system-has-not-been-booted-with-systemd-as-init-system-pid-1-cant-operate)... if that's the case @AaronFeledy might have some insights since he is the Duke of Windows 👑. |
Hi, thanks @reynoldsalec - yes WSL2, Ubuntu, Lando, Drupal.
By the way:
I tried to uninstall docker sudo apt-get autoremove -y --purge docker-ce docker-ce-cli docker-ce-rootless-extras docker-compose docker-compose-plugin docker-scan-plugin and reinstall it using lando's install script
the install script was apparently successful but it outputted this:
Which doesn't seem right |
@roikedem if you've been running Lando on WSL for several years and are having these errors, then I'm guessing reading through the top answer on that AskUbuntu thread I linked may be the best thing to do; it sounds like you may need to "upgrade" to the more modern WSL2 "application" version they mention. |
You won't have systemd enabled by default in Ubuntu. That's expected and you don't need it for Docker or Lando, so you don't need to enable it unless you know you need it for something else. What do you get when you enter |
I gave up and installed another Ubuntu on the WSL (24.04) and things are solved. Now it's just about moving my files to the new machine. |
I'm experiencing something similar, |
I noticed that I get this issue after a restart. If I start WSL by entering "WSL" in a cmd window, then go back and try "lando start", then Lando starts up without issue. Ideally, you can make WSL start every time you restart your laptop. However, if you have a Corporate laptop, you may not have permission to use the Task Scheduler. Here are the instructions: |
To fix this issue #105, I updated @lando/core with last version but now docker autostart no longer works.
When a run
lando start
, lando asks me to "Enter computer password for [user] to start docker". But when I type my password and press Enter, the question just shows up again as if I made a mistake in my password. But I'm sure the problem is not my password because I did not change it after the update, and I even try to change it in case I was wrong but still the same issue.I don't know if this is linked but the appareance of the question to autostart Docker has changed.
Here is what I had before the update (when my password used to work) :
Here is what I get now (when my password does not work) :
And sometimes when I type 1 character and press Enter, I have additional information appearing but it disappear when I type other characters.
Here is what I get :
I am on WSL with Ubuntu, without Docker Desktop but Docker and Docker compose installed manually. Everything worked before the update.
The text was updated successfully, but these errors were encountered: