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 openssl install fails #3583

Open
jverdeyen opened this issue Jun 20, 2023 · 2 comments
Open

Proxy openssl install fails #3583

jverdeyen opened this issue Jun 20, 2023 · 2 comments
Labels
bug Something aint working right!

Comments

@jverdeyen
Copy link

after a lando start the proxy containers fails to run.
In the docker logs I can see the following:

docker logs -f landoproxyhyperion5000gandalfedition_proxy_1



                         STARTING UP

         ██       █████  ███    ██ ██████   ██████
         ██      ██   ██ ████   ██ ██   ██ ██    ██
         ██      ███████ ██ ██  ██ ██   ██ ██    ██
         ██      ██   ██ ██  ██ ██ ██   ██ ██    ██
         ███████ ██   ██ ██   ████ ██████   ██████

       The best local development tool in the galaxy!


===============================================================


addcert 16:05:37.INFO  ==> Installing openssl...
/scripts/000-add-cert: line 68: apt-get: not found
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz: remote server returned error (try 'apk update')
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz: remote server returned error (try 'apk update')
ERROR: unsatisfiable constraints:
  openssl (missing):
    required by: world[openssl]
run-parts: /scripts/000-add-cert: exit status 1
proxycerts 16:05:37.INFO  ==> We have proxy certs!
proxycerts 16:05:37.DEBUG ==> Removing older config
proxycerts 16:05:37.INFO  ==> Dumped config to /proxy_config/proxy.yaml
proxycerts 16:05:37.DEBUG ==> tls: certificates: - certFile: "/lando/certs/proxy._lando_.crt" keyFile: "/lando/certs/proxy._lando_.key"
addcert 16:05:37.INFO  ==> Installing openssl...
/helpers/add-cert.sh: line 68: apt-get: not found
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz: remote server returned error (try 'apk update')
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz: remote server returned error (try 'apk update')
ERROR: unsatisfiable constraints:
  openssl (missing):
    required by: world[openssl]
run-parts: /scripts/999-refresh-certs: exit status 1
lando version
v3.18.0
docker version
Client:
 Version:           23.0.6
 API version:       1.42
 Go version:        go1.19.9
 Git commit:        ef23cbc
 Built:             Fri May  5 21:14:58 2023
 OS/Arch:           darwin/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.19.0 (106363)
 Engine:
  Version:          23.0.5
  API version:      1.42 (minimum version 1.12)
  Go version:       go1.19.8
  Git commit:       94d3ad6
  Built:            Wed Apr 26 16:17:45 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.20
  GitCommit:        2806fc1057397dbaeefbea0e4e17bddfbd388f38
 runc:
  Version:          1.1.5
  GitCommit:        v1.1.5-0-gf19387a
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Is this lando proxy related?

@jverdeyen jverdeyen added the bug Something aint working right! label Jun 20, 2023
@hotwebmatter
Copy link
Contributor

My proxy is working fine, but I get the above error with the mailhog service container:

$ lando logs -s mailhog
Attaching to d9_mailhog_1
mailhog_1       |
mailhog_1       |
mailhog_1       |
mailhog_1       |                          STARTING UP
mailhog_1       |
mailhog_1       |          ██       █████  ███    ██ ██████   ██████
mailhog_1       |          ██      ██   ██ ████   ██ ██   ██ ██    ██
mailhog_1       |          ██      ███████ ██ ██  ██ ██   ██ ██    ██
mailhog_1       |          ██      ██   ██ ██  ██ ██ ██   ██ ██    ██
mailhog_1       |          ███████ ██   ██ ██   ████ ██████   ██████
mailhog_1       |
mailhog_1       |        The best local development tool in the galaxy!
mailhog_1       |
mailhog_1       |
mailhog_1       | ===============================================================
mailhog_1       |
mailhog_1       |
mailhog_1       | userperms 20:23:49.INFO  ==> Symlinked users .gitconfig.
mailhog_1       | userperms 20:23:49.INFO  ==> Symlinked users known_hosts
mailhog_1       | userperms 20:23:49.INFO  ==> This is a alpine container
mailhog_1       | userperms 20:23:49.INFO  ==> user-perms.sh kicking off as user uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
mailhog_1       | userperms 20:23:49.DEBUG ==> Lando ENVVARS set at
mailhog_1       | userperms 20:23:49.DEBUG ==>
mailhog_1       | userperms 20:23:49.DEBUG ==> ========================================
mailhog_1       | userperms 20:23:49.DEBUG ==> LANDO_WEBROOT_USER      : mailhog
mailhog_1       | userperms 20:23:49.DEBUG ==> LANDO_WEBROOT_GROUP     : mailhog
mailhog_1       | userperms 20:23:49.DEBUG ==> LANDO_WEBROOT_UID       : 1000
mailhog_1       | userperms 20:23:49.DEBUG ==> LANDO_WEBROOT_GID       : 1000
mailhog_1       | userperms 20:23:49.DEBUG ==> LANDO_HOST_UID          : 503
mailhog_1       | userperms 20:23:49.DEBUG ==> LANDO_HOST_GID          : 20
mailhog_1       | userperms 20:23:49.DEBUG ==> ========================================
mailhog_1       | userperms 20:23:49.DEBUG ==>
mailhog_1       | userperms 20:23:49.INFO  ==> Making sure correct user:group (mailhog:mailhog) exists...
mailhog_1       | userperms 20:23:49.INFO  ==> Remapping ownership to handle docker volume sharing...
mailhog_1       | userperms 20:23:49.INFO  ==> Resetting mailhog:mailhog from 1000:1000 to 503:20
mailhog_1       | userperms 20:23:50.INFO  ==> mailhog:mailhog is now running as uid=503(mailhog) gid=20(dialout) groups=20(dialout),20(dialout),1000(mailhog)!
mailhog_1       | userperms 20:23:50.INFO  ==> And here. we. go.
mailhog_1       | userperms 20:23:50.INFO  ==> Doing the permission sweep.
mailhog_1       | addcert 20:23:51.INFO  ==> Installing openssl...
mailhog_1       | /scripts/000-add-cert: line 68: apt-get: not found
mailhog_1       | fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
mailhog_1       | WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
mailhog_1       | fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
mailhog_1       | WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)
mailhog_1       | ERROR: unsatisfiable constraints:
mailhog_1       |   openssl (missing):
mailhog_1       |     required by: world[openssl]
mailhog_1       | run-parts: /scripts/000-add-cert: exit status 1
mailhog_1       | userperms 20:25:15.INFO  ==> Symlinked users .gitconfig.
mailhog_1       | userperms 20:25:15.INFO  ==> Symlinked users known_hosts
mailhog_1       | userperms 20:25:15.INFO  ==> This is a alpine container
mailhog_1       | userperms 20:25:15.INFO  ==> user-perms.sh kicking off as user uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
mailhog_1       | userperms 20:25:15.DEBUG ==> Lando ENVVARS set at
mailhog_1       | userperms 20:25:15.DEBUG ==>
mailhog_1       | userperms 20:25:15.DEBUG ==> ========================================
mailhog_1       | userperms 20:25:15.DEBUG ==> LANDO_WEBROOT_USER      : mailhog
mailhog_1       | userperms 20:25:15.DEBUG ==> LANDO_WEBROOT_GROUP     : mailhog
mailhog_1       | userperms 20:25:15.DEBUG ==> LANDO_WEBROOT_UID       : 1000
mailhog_1       | userperms 20:25:15.DEBUG ==> LANDO_WEBROOT_GID       : 1000
mailhog_1       | userperms 20:25:15.DEBUG ==> LANDO_HOST_UID          : 503
mailhog_1       | userperms 20:25:15.DEBUG ==> LANDO_HOST_GID          : 20
mailhog_1       | userperms 20:25:15.DEBUG ==> ========================================
mailhog_1       | userperms 20:25:15.DEBUG ==>
mailhog_1       | userperms 20:25:15.INFO  ==> Making sure correct user:group (mailhog:mailhog) exists...
mailhog_1       | userperms 20:25:15.INFO  ==> Remapping ownership to handle docker volume sharing...
mailhog_1       | userperms 20:25:15.INFO  ==> Resetting mailhog:mailhog from 1000:1000 to 503:20
mailhog_1       | userperms 20:25:15.INFO  ==> mailhog:mailhog is now running as uid=503(mailhog) gid=20(dialout) groups=20(dialout),20(dialout),1000(mailhog)!
mailhog_1       | userperms 20:25:15.INFO  ==> And here. we. go.
mailhog_1       | userperms 20:25:15.INFO  ==> Doing the permission sweep.
mailhog_1       | addcert 20:25:15.INFO  ==> Installing openssl...
mailhog_1       | /scripts/000-add-cert: line 68: apt-get: not found
mailhog_1       | fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
mailhog_1       | WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
mailhog_1       | fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz

@hotwebmatter
Copy link
Contributor

hotwebmatter commented Jul 24, 2023

It would appear that I spoke too soon. After upgrading Lando to v3.18.0, the proxy fails to apt-get install openssl dependencies:

$ docker logs -f landoproxyhyperion5000gandalfedition_proxy_1



                         STARTING UP

         ██       █████  ███    ██ ██████   ██████
         ██      ██   ██ ████   ██ ██   ██ ██    ██
         ██      ███████ ██ ██  ██ ██   ██ ██    ██
         ██      ██   ██ ██  ██ ██ ██   ██ ██    ██
         ███████ ██   ██ ██   ████ ██████   ██████

       The best local development tool in the galaxy!


===============================================================


addcert 22:10:32.INFO  ==> Installing openssl...
/scripts/000-add-cert: line 68: apt-get: not found
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/aarch64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/main/aarch64/APKINDEX.tar.gz: IO ERROR
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/aarch64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/community/aarch64/APKINDEX.tar.gz: IO ERROR
ERROR: unsatisfiable constraints:
  openssl (missing):
    required by: world[openssl]
run-parts: /scripts/000-add-cert: exit status 1
addcert 22:10:33.INFO  ==> Installing openssl...
/helpers/add-cert.sh: line 68: apt-get: not found
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/aarch64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/main/aarch64/APKINDEX.tar.gz: IO ERROR
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/aarch64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/community/aarch64/APKINDEX.tar.gz: IO ERROR
ERROR: unsatisfiable constraints:
  openssl (missing):
    required by: world[openssl]
run-parts: /scripts/999-refresh-certs: exit status 1
$ lando version
v3.18.0
$ docker version
Client:
 Cloud integration: v1.0.29
 Version:           20.10.22
 API version:       1.41
 Go version:        go1.18.9
 Git commit:        3a2c30b
 Built:             Thu Dec 15 22:28:41 2022
 OS/Arch:           darwin/arm64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.16.2 (95914)
 Engine:
  Version:          20.10.22
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.9
  Git commit:       42c8b31
  Built:            Thu Dec 15 22:25:43 2022
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.14
  GitCommit:        9ba4b250366a5ddde94bb7c9d1def331423aa323
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

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

2 participants