Open Rain-kanyini opened 2 years ago
It looks like landoproxyhyperion5000gandalfedition-proxy-1 exists, but its looking like its a hyphen vs underscore issue?
Seems like it might be related to https://github.com/lando/lando/issues/1297 which suggests that certain versions of docker-compose
changed how they create containers. I wonder if there is a Lando cache of the old naming scheme (with underscores). Maybe try clearing out the ~/.lando
folder?
If that doesn't work, this comment https://github.com/lando/lando/issues/1297#issuecomment-953896580 suggest downgrading docker-compose
from a 2.x version to a 1.x version.
I troubleshooted this with Gregg a bit and lando destroy
, then docker system prune (forget command at moment ) then a rm -rf ~/.lando
and lando start
didn't work.
But what appears to have happened is that Arch Linux just updated docker-compose
to 2.2.2. We downgraded docker-compose
to 1.29.2. The Arch package docker-compose-bin
mentioned in https://github.com/lando/lando/issues/1297#issuecomment-953896580 is not available anymore. But we we found https://github.com/gbleux/aur-docker-compose-bin/blob/master/PKGBUILD which we modified to include the right version and SHAs and then ran makepkg
and then sudo pacman -U <filename.zst)
. Which solved the issue.
So it appears that Lando needs to have support to work with Docker Composer 2.x maybe?
In hindsight, we could have done a ls /var/cache/pacman/pkg/ | grep docker-compose
and found the *.zst file for 1.29.2. So then all you have to do is pacman --upgrade /var/cache/pacman/pkg/docker-compose-1.29.2-1-any.pkg.tar.zst
to update, which asks you if you want to remove the other version. Then you have to pin it in /etc/pacman.conf by adding a IgnorePkg = docker-compose
line.
I'm documenting my efforts to get lando working with this 404 error on the landoproxyhyperion500gandalfeditioin_proxy_1
error above on a Mac Intel that is running the latest version of Lando and version 2.0.0-rc1 of docker composer
.
lando rebuild
and got a weird errorlando destroy
was called for, to try and rebuild the container that was causing problems.Recreating ec54b6be2d04_landoproxyhyperion5000gandalfedition_proxy_1 ... Recreating ec54b6be2d04_landoproxyhyperion5000gandalfedition_proxy_1 ... error
ERROR: for ec54b6be2d04_landoproxyhyperion5000gandalfedition_proxy_1 Cannot start service proxy: driver failed programming external connectivity on endpoint landoproxyhyperion5000gandalfedition_proxy_1 (aac937dfcd3722fd33b32ac6d7537bf2f43c62bc89a79f974f5b6fb41bfa8b7e): Bind for 127.0.0.1:8080 failed: port is already allocated
ERROR: for proxy Cannot start service proxy: driver failed programming external connectivity on endpoint landoproxyhyperion5000gandalfedition_proxy_1 (aac937dfcd3722fd33b32ac6d7537bf2f43c62bc89a79f974f5b6fb41bfa8b7e): Bind for 127.0.0.1:8080 failed: port is already allocated ERROR: Encountered errors while bringing up the project.
But it did come up!
Lando was not able to start the proxy Error The proxy has been disabled for now so you can continue to work. Check out the docs below, resolve your issue and build this app https://docs.lando.dev/config/proxy.html
I think my next attempt will be a full reboot, see if a "clean" docker start will resolve the port issues.
I found that running lando start, then once it fails renaming the proxy, then starting again seems to work
docker rename landoproxyhyperion5000gandalfedition-proxy-1 landoproxyhyperion5000gandalfedition_proxy_1
Lando DOES NOT support Docker Compose 2 at this time so YMMV if you try it out.
Lando DOES NOT support Docker Compose 2 at this time so YMMV if you try it out.
Thanks for letting us know. Would be nice to place this info somewhere prominent in the documentation. Currently the ArchLinux installation is broken, because it installs docker-composer 2 alongside lando.
If you install one of Lando's package installers it should install the correct version of Docker Compose so i'm guessing this is only relevant if you are installing Lando from source. We should update those docs so its clear what version of Docker Compose is required: https://docs.lando.dev/basics/installation.html#from-source
Moving this ticket over to the docs repo so it can be handled there
If you install one of Lando's package installers it should install the correct version of Docker Compose so i'm guessing this is only relevant if you are installing Lando from source. We should update those docs so its clear what version of Docker Compose is required: https://docs.lando.dev/basics/installation.html#from-source
That makes sense. We just installed it via package manager, which is also referenced inside the docs. So maybe a hint there would be good as well. I think the installation via package manager will be broken until Docker Compose 2 support is there.
Downgrading the docker-compose package to 1.29.x manually fixes the problems. For everyone needing an old Docker Composer version for ArchLinux, you can download it here: https://archive.archlinux.org/packages/d/docker-compose/
Just want to say that if someone actually updated the docs it would have saved me hours of hassle. Just update the docs!
Same issue here.
Weirdly, this command fixed the issue:
docker rename 230653d52982_landoproxyhyperion5000gandalfedition_proxy_1 landoproxyhyperion5000gandalfedition_proxy_1
After clearing the .lando
files, pruning the docker images, and installing these versions, it worked fine.
Client: Docker Engine - Community
Version: 20.10.14
API version: 1.41
Go version: go1.16.15
Git commit: a224086
Built: Thu Mar 24 01:47:58 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.14
API version: 1.41 (minimum version 1.12)
Go version: go1.16.15
Git commit: 87a90dc
Built: Thu Mar 24 01:45:50 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.5.11
GitCommit: 3df54a852345ae127d1fa3092b95168e4a88e2f8
runc:
Version: 1.0.3
GitCommit: v1.0.3-0-gf46b6ba
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker-compose version
docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.7.10
OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
FYI: Lando doesn't work with docker-compose
2.12.2. I had to downgrade it to 1.29.2 to have it work.
The issue is similar to this thread. The traefik
instance is renamed to landoproxyhyperion5000gandalfedition-proxy-1
. using the docker rename
solution didn't work in my case.
// Edit
Adding more details:
OS: NixOS 22.11
Everything works on NixOS 22.05
Upgrading to the Lando pre-release v3.8.0 fixed the problem for me: https://github.com/lando/lando/releases/tag/v3.8.0
Just rubber ducking this here:
I knew that I shouldn't have installed the new version of lando...I just got SO excited by everyone updating! Does anyone have any insight on this error?
After running
lando start
I got this :I then ran lando rebuild and got this error :
I'm SUPER out of my depth with lando in general (haha). I'm thinking that since I don't really know what I'm doing...Perhaps the best thing for me is to uninstall and re-install the previous version that was working? Any thoughts would be appreciated
P.s - I tried a
lando poweroff
and
lando destroy