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

proxy [ECONNREFUSED] on lando start #3593

Open
stloc opened this issue Jul 28, 2023 · 16 comments
Open

proxy [ECONNREFUSED] on lando start #3593

stloc opened this issue Jul 28, 2023 · 16 comments
Labels
bug Something aint working right!

Comments

@stloc
Copy link

stloc commented Jul 28, 2023

On fresh linux Mint

container landoproxyhyperion5000gandalfedition exited, not possible to start

2023-07-28 14:36:24 
2023-07-28 14:36:24 
2023-07-28 14:36:24 
2023-07-28 14:36:24                          STARTING UP                            
2023-07-28 14:36:24 
2023-07-28 14:36:24          ██       █████  ███    ██ ██████   ██████             
2023-07-28 14:36:24          ██      ██   ██ ████   ██ ██   ██ ██    ██            
2023-07-28 14:36:24          ██      ███████ ██ ██  ██ ██   ██ ██    ██            
2023-07-28 14:36:24          ██      ██   ██ ██  ██ ██ ██   ██ ██    ██            
2023-07-28 14:36:24          ███████ ██   ██ ██   ████ ██████   ██████             
2023-07-28 14:36:24 
2023-07-28 14:36:24        The best local development tool in the galaxy!                     
2023-07-28 14:36:24 
2023-07-28 14:36:24 
2023-07-28 14:36:24 ===============================================================
2023-07-28 14:36:24 
2023-07-28 14:36:24 
2023-07-28 14:36:24 fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
2023-07-28 14:36:24 fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
2023-07-28 14:36:24 (1/1) Installing openssl (1.1.1l-r0)
2023-07-28 14:36:24 Executing busybox-1.31.1-r9.trigger
2023-07-28 14:36:24 OK: 10 MiB in 17 packages
2023-07-28 14:36:24 addcert 12:36:24.INFO  ==> Installing openssl...
2023-07-28 14:36:24 /scripts/000-add-cert: line 68: apt-get: not found
2023-07-28 14:36:24 addcert 12:36:24.INFO  ==> Cert creation kicking off....
2023-07-28 14:36:24 addcert 12:36:24.INFO  ==> 
2023-07-28 14:36:24 addcert 12:36:24.DEBUG ==> ==================================================
2023-07-28 14:36:24 addcert 12:36:24.DEBUG ==> LANDO_CA_CERT     : /lando/certs/lndo.site.pem
2023-07-28 14:36:24 addcert 12:36:24.DEBUG ==> LANDO_CA_KEY      : /lando/certs/lndo.site.key
2023-07-28 14:36:24 addcert 12:36:24.DEBUG ==> CA_DIR            : /usr/share/ca-certificates
2023-07-28 14:36:24 addcert 12:36:24.DEBUG ==> CA_CERT_FILENAME  : lndo.site.pem
2023-07-28 14:36:24 addcert 12:36:24.DEBUG ==> CA_CERT_CONTAINER : /usr/share/ca-certificates/lndo.site.pem
2023-07-28 14:36:24 addcert 12:36:24.DEBUG ==> COMMON_NAME       : 
2023-07-28 14:36:24 addcert 12:36:24.DEBUG ==> LANDO_PROXY_NAMES : 
2023-07-28 14:36:24 addcert 12:36:24.DEBUG ==> LANDO_EXTRA_NAMES : DNS.100 = *.lndo.site
2023-07-28 14:36:24 addcert 12:36:24.DEBUG ==> ==================================================
2023-07-28 14:36:24 addcert 12:36:24.INFO  ==> 
2023-07-28 14:36:24 addcert 12:36:24.INFO  ==> Generating certs...
2023-07-28 14:36:24 Generating RSA private key, 2048 bit long modulus (2 primes)
2023-07-28 14:36:24 ...........................................................................................+++++
2023-07-28 14:36:25 .................+++++
2023-07-28 14:36:25 e is 65537 (0x010001)
2023-07-28 14:36:25 req: No value provided for Subject Attribute CN, skipped
2023-07-28 14:36:25 Signature ok
2023-07-28 14:36:25 subject=C = US, ST = California, L = San Francisco, O = Lando, OU = Bespin
2023-07-28 14:36:25 Getting CA Private Key
2023-07-28 14:36:25 chown: /lando/certs/proxy._lando_.crt: Invalid argument
2023-07-28 14:36:25 run-parts: /scripts/000-add-cert: exit status 1
2023-07-28 14:36:25 proxycerts 12:36:25.INFO  ==> We have proxy certs!
2023-07-28 14:36:25 proxycerts 12:36:25.DEBUG ==> Removing older config
2023-07-28 14:36:25 proxycerts 12:36:25.INFO  ==> Dumped config to /proxy_config/proxy.yaml
2023-07-28 14:36:25 proxycerts 12:36:25.DEBUG ==> tls: certificates: - certFile: "/lando/certs/proxy._lando_.crt" keyFile: "/lando/certs/proxy._lando_.key"
2023-07-28 14:36:25 WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping
2023-07-28 14:36:25 refreshcerts 12:36:25.INFO  ==> Certs refreshed...
2023-07-28 14:38:33 addcert 12:38:33.INFO  ==> Cert creation kicking off....
2023-07-28 14:38:33 addcert 12:38:33.INFO  ==> 
2023-07-28 14:38:33 addcert 12:38:33.DEBUG ==> ==================================================
2023-07-28 14:38:33 addcert 12:38:33.DEBUG ==> LANDO_CA_CERT     : /lando/certs/lndo.site.pem
2023-07-28 14:38:33 addcert 12:38:33.DEBUG ==> LANDO_CA_KEY      : /lando/certs/lndo.site.key
2023-07-28 14:38:33 addcert 12:38:33.DEBUG ==> CA_DIR            : /usr/share/ca-certificates
2023-07-28 14:38:33 addcert 12:38:33.DEBUG ==> CA_CERT_FILENAME  : lndo.site.pem
2023-07-28 14:38:33 addcert 12:38:33.DEBUG ==> CA_CERT_CONTAINER : /usr/share/ca-certificates/lndo.site.pem
2023-07-28 14:38:33 addcert 12:38:33.DEBUG ==> COMMON_NAME       : 
2023-07-28 14:38:33 addcert 12:38:33.DEBUG ==> LANDO_PROXY_NAMES : 
2023-07-28 14:38:33 addcert 12:38:33.DEBUG ==> LANDO_EXTRA_NAMES : DNS.100 = *.lndo.site
2023-07-28 14:38:33 addcert 12:38:33.DEBUG ==> ==================================================
2023-07-28 14:38:33 addcert 12:38:33.INFO  ==> 
2023-07-28 14:38:33 addcert 12:38:33.INFO  ==> Generating certs...
2023-07-28 14:38:34 Generating RSA private key, 2048 bit long modulus (2 primes)
2023-07-28 14:38:34 .........+++++
2023-07-28 14:38:34 .........................................................+++++
2023-07-28 14:38:34 e is 65537 (0x010001)
2023-07-28 14:38:34 req: No value provided for Subject Attribute CN, skipped
2023-07-28 14:38:34 Signature ok
2023-07-28 14:38:34 subject=C = US, ST = California, L = San Francisco, O = Lando, OU = Bespin
2023-07-28 14:38:34 Getting CA Private Key
2023-07-28 14:38:34 chown: /lando/certs/proxy._lando_.crt: Invalid argument
2023-07-28 14:38:34 run-parts: /scripts/000-add-cert: exit status 1
2023-07-28 14:38:34 proxycerts 12:38:34.INFO  ==> We have proxy certs!
2023-07-28 14:38:34 proxycerts 12:38:34.DEBUG ==> Removing older config
2023-07-28 14:38:34 proxycerts 12:38:34.INFO  ==> Dumped config to /proxy_config/proxy.yaml
2023-07-28 14:38:34 proxycerts 12:38:34.DEBUG ==> tls: certificates: - certFile: "/lando/certs/proxy._lando_.crt" keyFile: "/lando/certs/proxy._lando_.key"
2023-07-28 14:38:34 WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping
2023-07-28 14:38:34 refreshcerts 12:38:34.INFO  ==> Certs refreshed...
1970-01-01 01:00:00 proxy_1 exited with code 1
1970-01-01 01:00:00

Docker

Client: Docker Engine - Community
 Cloud integration: v1.0.35
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.6
 Git commit:        ced0996
 Built:             Fri Jul 21 20:35:18 2023
 OS/Arch:           linux/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.21.1 (114176)
 Engine:
  Version:          24.0.2
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.4
  Git commit:       659604f
  Built:            Thu May 25 21:52:17 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.21
  GitCommit:        3dce8eb055cbb6872793272b4f20ed16117344f8
 runc:
  Version:          1.1.7
  GitCommit:        v1.1.7-0-g860f061
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
@stloc stloc added the bug Something aint working right! label Jul 28, 2023
@aneek
Copy link

aneek commented Oct 9, 2023

I am also facing the same issue after upgrading to the latest version.

@jamesrvandegrift
Copy link

jamesrvandegrift commented Oct 11, 2023

Same issue as well:

  • Lando v3.20.4
  • Docker Desktop v4.24.0
  • OSX Ventura 13.6

@andileco
Copy link

I had this issue too for my Pantheon sites. I "solved" it by changing the "framework" in my .lando.yml file from "drupal10" to "drupal9" and then rebuilding.

@jamesrvandegrift
Copy link

Okay I just discovered a setting on Docker Desktop v4.24.2 to:

Allow privileged port mapping
Starts the privileged helper process which binds privileged ports that are between 1 and 1024

image

Turning this on did allow my proxy container to run normally.

@mattpfeffer
Copy link

I ran into the same issue after upgrading to the latest release. 'Allowing privileged port mapping' also resolved it my case. Im on Docker Desktop v4.23.0 so it's also present there... just for anyone else who finds their way here.

@doostinharrell
Copy link

doostinharrell commented Jan 5, 2024

This was solved initially with the release of v3.20.8 however it appears to have resurfaced in the new year. Is anyone else experiencing this issue with Drupal9 and Drupal10 recipes?

_v_w_a_www _v_w_a_www

@philltran
Copy link
Contributor

Yes I am still having this issue on Macbook M1

@doostinharrell
Copy link

Yes I am still having this issue on Macbook M1

Yea, same. I ended up just spinning up ddev containers to get work done :(

@doostinharrell
Copy link

@philltran I had to docker stop $(docker ps -aq), docker rm $(docker ps -aq), and lando start to fix the issue. Looks like the proxy container got corrupt? Deleting all docker containers and staring them back up seems to have fixed the issue I was having.

Thanks @andyg5000 for the tip :)

@GuyPaddock
Copy link

GuyPaddock commented Feb 28, 2024

@doostinharrell Your suggestion of removing a corrupt proxy container was exactly what I needed to solve this issue:

✔ Container landoproxyhyperion5000gandalfedition_proxy_1 Creat... 0.0s
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu/6e7a0ec7935c75502254165a47a38980fe91ad7f292ae531c27ac5f5a468a513" to rootfs at "/lando-entrypoint.sh": mount /run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu/6e7a0ec7935c75502254165a47a38980fe91ad7f292ae531c27ac5f5a468a513:/lando-entrypoint.sh (via /proc/self/fd/6), flags: 0x5000: no such file or directory: unknown

Followed by:

  _      __              _           __
 | | /| / /__ ________  (_)__  ___ _/ /
 | |/ |/ / _ `/ __/ _ \/ / _ \/ _ `/_/
 |__/|__/\_,_/_/ /_//_/_/_//_/\_, (_)
                             /___/

Your app is starting up but we have already detected some things you should investigate.
These may or may not prevent your app from working.

  ⚠ Lando was not able to start the proxy

    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

Here are some vitals:

 NAME      MY_APP
 LOCATION  /PATH/TO/MY/APP
 SERVICES  appserver_nginx, appserver, database, cache, edge_ssl, edge, index, testserver
 URLS
  ✔ APPSERVER NGINX URLS
    ✔ https://localhost:53504 [302]
    ✔ http://localhost:53505 [302]
  ✔ EDGE SSL URLS
    ✔ https://localhost:53511 [302]
  ⚠ EDGE URLS
    ✔ http://localhost:53507 [302]
    ✖ connect ECONNREFUSED 127.0.0.1:80
    ✖ connect ECONNREFUSED 127.0.0.1:443
  ⚠ TESTSERVER URLS
    ✖ connect ECONNREFUSED 127.0.0.1:80

I just recently updated to Docker Desktop for Windows 4.28 and Lando 3.21.0-beta.3 and could not get the proxy to be happy. I did not have to change any Docker Desktop for Windows settings (other than ensuring that WSL2 integration was enabled). I just had to run this command:

docker rm landoproxyhyperion5000gandalfedition_proxy_1

@GuyPaddock
Copy link

I'm finding that I have to run the docker rm command every time I restart my machine, or else Lando rebuilds will fail.

@doostinharrell
Copy link

I'm finding that I have to run the docker rm command every time I restart my machine, or else Lando rebuilds will fail.

Yea, same here. I actually got tired of fiddling with it every day so I've been exclusively using DDEV. Once they get the issue resolved permanently I'll be back.

@KrzysiekF
Copy link

KrzysiekF commented Mar 2, 2024

I have the same problem ... can anyone help?

@KrzysiekF
Copy link

I managed to fix the problem ... maybe it will be useful for someone:

  1. I turned on the VPN and fired up the command lando start - it turned out that all addresses work 🤔
  2. So I turned off the VPN and fired up the command lando start - and everything still works 🤯

I don't know why, but after this everything works fine.

@GuyPaddock
Copy link

GuyPaddock commented Mar 4, 2024

@KrzysiekF It sounds like you have a different issue... I am not using any VPN.

The issue that @doostinharrell and I are seeing is a refused connection after seeing this error in the startup:

"/lando-entrypoint.sh": mount /run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu/6e7a0ec7935c75502254165a47a38980fe91ad7f292ae531c27ac5f5a468a513:/lando-entrypoint.sh (via /proc/self/fd/6), flags: 0x5000: no such file or directory: unknown

This can be worked around by deleting the proxy container via docker rm landoproxyhyperion5000gandalfedition_proxy_1.

@timfoxtrot
Copy link

was having this issue. ended up having to reinstall lando completely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something aint working right!
Projects
None yet
Development

No branches or pull requests

10 participants