Skip to content
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

ERROR: Failed during: /home/user/.lando/bin/lando setup #86

Closed
sovetski opened this issue Feb 3, 2025 · 11 comments
Closed

ERROR: Failed during: /home/user/.lando/bin/lando setup #86

sovetski opened this issue Feb 3, 2025 · 11 comments

Comments

@sovetski
Copy link

sovetski commented Feb 3, 2025

I am just following the steps from there: https://docs.lando.dev/install/linux.html

I am on Ubuntu 24.04.1 LTS

Running this:

/bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"

Gives this error:

ERROR: Failed during: /home/user/.lando/bin/lando setup

As explained on the lando's documentation, I already installed Docker manually

Related issues:

#41
#62
#81
#83

Entire logs:

user@user-ubuntu:~$ /bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"
this script is about to:

- download lando v3.23.26-slim to /home/user/.lando/bin
- run lando setup
- run lando shellenv --add

Press RETURN/ENTER to continue or any other key to abort:
downloading https://github.com/lando/core/releases/download/v3.23.26/lando-linux-x64-v3.23.26-slim to /home/user/.lando/bin/lando
######################################################################### 100.0%
downloaded lando v3.23.26 to /home/user/.lando/bin/lando

   __                __       ____    __            __
  / /  ___ ____  ___/ /__    / __/__ / /___ _____  / /
 / /__/ _ `/ _ \/ _  / _ \  _\ \/ -_) __/ // / _ \/_/ 
/____/\_,_/_//_/\_,_/\___/ /___/\__/\__/\_,_/ .__(_)  
                                           /_/        

lando setup is a hidden convenience command to help you satisify the
dependencies needed to run Lando. Typically it includes the installation and
setup of some combination of the below:

◼ Common Lando Plugins
◼ Docker Engine
◼ Docker Compose

However, if you already have the needed dependencies it will happily do nothing
and exit. It will attempt to install plugins first and then it will run any
needed setup tasks.

For more information on customizing setup please run lando setup --help
or visit https://docs.lando.dev/cli/setup.html

Generating plugin installation matrix... done [see table below]
g
 ⠧ Adding @lando/mean@latest                                             Install
ing
 ⠧ Adding @lando/memcached@latest                                        Install
ing
 ⠧ Adding @lando/mongo@latest                                            Install
ing
 ⠧ Adding @lando/mssql@latest                                            Install
ing
 ⠧ Adding @lando/mysql@latest                                            Install
ing
 ⠧ Adding @lando/nginx@latest                                            Install
ing
 ⠧ Adding @lando/node@latest                                             Install
ing
 ⠧ Adding @lando/pantheon@latest                                         Install
ing
 ⠧ Adding @lando/php@latest                                              Install
g
 ⠇ Adding @lando/mean@latest                                             Install
ing
 ⠇ Adding @lando/memcached@latest                                        Install
ing
 ⠇ Adding @lando/mongo@latest                                            Install
ing
 ⠇ Adding @lando/mssql@latest                                            Install
ing
 ⠇ Adding @lando/mysql@latest                                            Install
ing
 ⠇ Adding @lando/nginx@latest                                            Install
ing
 ⠇ Adding @lando/node@latest                                             Install
ing
 ⠇ Adding @lando/pantheon@latest                                         Install
ing
 ⠇ Adding @lando/php@latest                                              Install
g
 ⠏ Adding @lando/mean@latest                                             Install
ing
 ⠏ Adding @lando/memcached@latest                                        Install
ing
 ⠏ Adding @lando/mongo@latest                                            Install
ing
 ⠏ Adding @lando/mssql@latest                                            Install
ing
 ⠏ Adding @lando/mysql@latest                                            Install
ing
 ⠏ Adding @lando/nginx@latest                                            Install
ing
 ⠏ Adding @lando/node@latest                                             Install
ing
 ⠏ Adding @lando/pantheon@latest                                         Install
ing
 ⠏ Adding @lando/php@latest                                              Install
g
 ⠋ Adding @lando/mean@latest                                             Install
ing
 ⠋ Adding @lando/memcached@latest                                        Install
ing
 ⠋ Adding @lando/mongo@latest                                            Install
ing
 ⠋ Adding @lando/mssql@latest                                            Install
ing
 ⠋ Adding @lando/mysql@latest                                            Install
ing
 ⠋ Adding @lando/nginx@latest                                            Install
ing
 ⠋ Adding @lando/node@latest                                             Install
ing
 ⠋ Adding @lando/pantheon@latest                                         Install
ing
 ⠋ Adding @lando/php@latest                                              Install
g
 ⠙ Adding @lando/mean@latest                                             Install
ing
 ⠙ Adding @lando/memcached@latest                                        Install
ing
 ⠙ Adding @lando/mongo@latest                                            Install
ing
 ⠙ Adding @lando/mssql@latest                                            Install
ing
 ⠙ Adding @lando/mysql@latest                                            Install
ing
 ⠙ Adding @lando/nginx@latest                                            Install
ing
 ⠙ Adding @lando/node@latest                                             Install
ing
 ⠙ Adding @lando/pantheon@latest                                         Install
ing
 ⠙ Adding @lando/php@latest                                              Install
g
 ⠹ Adding @lando/mean@latest                                             Install
ing
 ⠹ Adding @lando/memcached@latest                                        Install
ing
 ⠹ Adding @lando/mongo@latest                                            Install
ing
 ⠹ Adding @lando/mssql@latest                                            Install
ing
 ⠹ Adding @lando/mysql@latest                                            Install
ing
 ⠹ Adding @lando/nginx@latest                                            Install
ing
 ⠹ Adding @lando/node@latest                                             Install
ing
 ⠹ Adding @lando/pantheon@latest                                         Install
ing
 ⠹ Adding @lando/php@latest                                              Install
g
 ⠸ Adding @lando/mean@latest                                             Install
ing
 ⠸ Adding @lando/memcached@latest                                        Install
ing
 ⠸ Adding @lando/mongo@latest                                            Install
ing
 ⠸ Adding @lando/mssql@latest                                            Install
ing
 ⠸ Adding @lando/mysql@latest                                            Install
ing
 ⠸ Adding @lando/nginx@latest                                            Install
ing
 ⠸ Adding @lando/node@latest                                             Install
ing
 ⠸ Adding @lando/pantheon@latest                                         Install
ing
 ⠸ Adding @lando/php@latest                                              Install
g
 ⠼ Adding @lando/mean@latest                                             Install
ing
 ⠼ Adding @lando/memcached@latest                                        Install
ing
 ⠼ Adding @lando/mongo@latest                                            Install
ing
 ⠼ Adding @lando/mssql@latest                                            Install
ing
 ⠼ Adding @lando/mysql@latest                                            Install
ing
 ⠼ Adding @lando/nginx@latest                                            Install
ing
 ⠼ Adding @lando/node@latest                                             Install
ing
 ⠼ Adding @lando/pantheon@latest                                         Install
ing
 ⠼ Adding @lando/php@latest                                              Install
g
 ⠴ Adding @lando/mean@latest                                             Install
ing
 ⠴ Adding @lando/memcached@latest                                        Install
ing
 ⠴ Adding @lando/mongo@latest                                            Install
ing
 ⠴ Adding @lando/mssql@latest                                            Install
ing
 ⠴ Adding @lando/mysql@latest                                            Install
ing
 ⠴ Adding @lando/nginx@latest                                            Install
ing
 ⠴ Adding @lando/node@latest                                             Install
ing
 ⠴ Adding @lando/pantheon@latest                                         Install
ing
 ⠴ Adding @lando/php@latest                                              Install
ing
 ⠴ Adding @lando/phpmyadmin@latest                                       Install
ing
 ⠴ Adding @lando/platformsh@latest                                       Install
ing
 ⠴ Adding @lando/postgres@latest                                         Install
ing
 ⠴ Adding @lando/python@latest                                           Install
ing
 ⠴ Adding @lando/redis@latest                                            Install
ing
 ⠴ Adding @lando/ruby@latest                                             Install
ing
 ⠴ Adding @lando/solr@latest                                             Install
ing
 ⠴ Adding @lando/symfony@latest                                          Install
ing
 ⠴ Adding @lando/tomcat@latest                                           Install
ing
 ⠴ Adding @lando/varnish@latest                                          Install
ing
 ⠴ Adding @lando/wordpress@latest                                        Install
ing

ERROR: Failed during: /home/user/.lando/bin/lando setup 
@rtfm-47 rtfm-47 transferred this issue from lando/lando Feb 3, 2025
@sovetski
Copy link
Author

sovetski commented Feb 3, 2025

I checked this one #62 (comment) but it does not solves my problem..

When I try to run the installation command with sudo, it says:

ERROR: Cannot run this script as root

It looks coming from: https://get.lando.dev/setup-lando.sh

# abort if run as root
# @NOTE: this might change in the future but right now we do not understand all the complexities around this
if [[ "${EUID:-${UID}}" == "0" ]]; then
  abort "Cannot run this script as root"
fi

Honestly I don't understand why we can not do it with sudo but anyway

@pirog
Copy link
Member

pirog commented Feb 3, 2025

# install in debug mode
LANDO_INSTALLER_DEBUG=1 /bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"

# install without lando setup
LANDO_INSTALLER_SETUP=0 /bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"

# install 3-edge
LANDO_VERSION=3-edge /bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"

@sovetski
Copy link
Author

sovetski commented Feb 3, 2025

Thanks this one worked:

# install in debug mode
LANDO_INSTALLER_DEBUG=1 /bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"

@sovetski sovetski closed this as completed Feb 3, 2025
@pirog
Copy link
Member

pirog commented Feb 3, 2025

@sovetski what do you mean "it worked"? That should only produce debug output, it should still fail. Are you installing Lando in CI or a non-desktop environment?

@sovetski
Copy link
Author

sovetski commented Feb 3, 2025

@pirog It worked because I didn't get any errors—the script ran all the way through without any issues. Just before that, I had tried about ten times following the official documentation, but it wasn’t working. I checked in .lando/plugins/@lando, and it was empty, meaning no plugins were being installed. But with the command you suggested, all the plugins are there, and I can use the lando command. I don’t really understand what changed since the command isn’t that different from what I had used before, but for the moment I am happy with that

@pirog
Copy link
Member

pirog commented Feb 3, 2025

@sovetski where are you installing it?

i've seen issues installing it in environments where lando cannot correctly determine what renderer to use and uses an advanced renderer in "dumb" terminals which fails. Usually this is in a CI environment a la CircleCI.

@sovetski
Copy link
Author

sovetski commented Feb 3, 2025

@pirog I was installing it on a fresh PC running Ubuntu 24 with the standard terminal (no any CI environment etc.), but what's surprising is that I'm not the only one experiencing this issue (I mentioned the other related issues in the description of this one). It seems like something related to the recent version of Lando because, until today, I had been using Lando on Windows and macOS for several years without any installation issues.

@pirog
Copy link
Member

pirog commented Feb 3, 2025

perhaps even more strange is that we test this script running on vanilla ubuntu 24 runners.

FWIW i dont think the other people experiencing this issue are running into the exact same thing you are.

@sovetski
Copy link
Author

sovetski commented Feb 3, 2025

Okay so I don't know what happens but I realised that with the previous command all lando applications were returning 404 error, even this first app: https://docs.lando.dev/getting-started/first-app.html

So I just removed lando: rm -f "$(which lando)" && rm -rf ~/.lando
Removed docker: https://askubuntu.com/a/1021506/1757477

Then, without installing any docker manually, I did:

/bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"

it did not work as explained on this issue, so I tried this:

LANDO_INSTALLER_DEBUG=1 /bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"

it worked but at the end of the script my pc just shut down (???), so after restarted the PC, I ran:

lando setup --debug

And it looks ok now, without these debug flags nothing works as expected, very weird

I have 16Gb ram and Intel® Core™ i7-10870H × 16 with 1T of disk....

@reynoldsalec
Copy link
Member

@sovetski what terminal were you using with this error?

@sovetski
Copy link
Author

sovetski commented Feb 3, 2025

@sovetski what terminal were you using with this error?

the default one provided with Ubuntu, on a fresh PC, I think its name is GNOME Terminal, it looks like (it is not my screenshot, just an example):

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants