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

App build fails for apps with more than one domain when using Caddy as proxy #5311

Closed
buhrmi opened this issue Aug 18, 2022 · 1 comment · Fixed by #5313
Closed

App build fails for apps with more than one domain when using Caddy as proxy #5311

buhrmi opened this issue Aug 18, 2022 · 1 comment · Fixed by #5313

Comments

@buhrmi
Copy link

buhrmi commented Aug 18, 2022

Description of problem

When a domain has more than one domain, eg domain1.com and domain2.com, ps:rebuild app fails with the following error when using caddy as proxy:

=====> Processing deployment checks
       No CHECKS file found. Simple container checks will be performed.
       For more efficient zero downtime deployments, create a CHECKS file. See https://dokku.com/docs/deployment/zero-downtime-deploys/ for examples
-----> Deploying cms via the docker-local scheduler...
-----> Deploying web (count=1)
Unable to find image 'domain2.com:80' locally
Error response from daemon: pull access denied for domain2.com, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
parallel: This job failed:
/var/lib/dokku/plugins/available/scheduler-docker-local/bin/scheduler-deploy-process-container cms herokuish dokku/cms:latest latest web 1 1
 !     exit status 1

Steps to reproduce

  1. dokku domains:add app domain1.com domain2.com
  2. dokku proxy:set app caddy
  3. dokku ps:rebuild app

dokku report $APP_NAME

-----> uname: Linux xxxxxxxx.de 4.19.0 #1 SMP Thu Sep 23 18:26:47 MSK 2021 x86_64 GNU/Linux
-----> memory:
                      total        used        free      shared  buff/cache   available
       Mem:           32768         453       23051          16        9263       32298
       Swap:              0           0           0
-----> docker version:
       Client: Docker Engine - Community
        Version:           20.10.17
        API version:       1.41
        Go version:        go1.17.11
        Git commit:        100c701
        Built:             Mon Jun  6 23:03:17 2022
        OS/Arch:           linux/amd64
        Context:           default
        Experimental:      true

       Server: Docker Engine - Community
        Engine:
         Version:          20.10.17
         API version:      1.41 (minimum version 1.12)
         Go version:       go1.17.11
         Git commit:       a89b842
         Built:            Mon Jun  6 23:01:23 2022
         OS/Arch:          linux/amd64
         Experimental:     false
        containerd:
         Version:          1.6.6
         GitCommit:        10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
        runc:
         Version:          1.1.2
         GitCommit:        v1.1.2-0-ga916309
        docker-init:
         Version:          0.19.0
         GitCommit:        de40ad0
-----> docker daemon info:
       Client:
        Context:    default
        Debug Mode: true
        Plugins:
         app: Docker App (Docker Inc., v0.9.1-beta3)
         buildx: Docker Buildx (Docker Inc., v0.8.2-docker)
         compose: Docker Compose (Docker Inc., v2.6.0)
         scan: Docker Scan (Docker Inc., v0.17.0)
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

       Server:
        Containers: 4
         Running: 4
         Paused: 0
         Stopped: 0
        Images: 26
        Server Version: 20.10.17
        Storage Driver: overlay2
         Backing Filesystem: extfs
         Supports d_type: true
         Native Overlay Diff: true
         userxattr: false
        Logging Driver: json-file
        Cgroup Driver: cgroupfs
        Cgroup Version: 1
        Plugins:
         Volume: local
         Network: bridge host ipvlan macvlan null overlay
         Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
        Swarm: inactive
        Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
        Default Runtime: runc
        Init Binary: docker-init
        containerd version: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
        runc version: v1.1.2-0-ga916309
        init version: de40ad0
        Security Options:
         seccomp
          Profile: default
        Kernel Version: 4.19.0
        Operating System: Debian GNU/Linux 11 (bullseye)
        OSType: linux
        Architecture: x86_64
        CPUs: 8
        Total Memory: 32GiB
        Name: xxxxxxxx.de
        ID: LZVC:KGIY:44CS:NROY:34FI:PVHC:VD4M:TZL7:QS5F:NCE6:ZZK7:3JRU
        Docker Root Dir: /var/lib/docker
        Debug Mode: false
        Registry: https://index.docker.io/v1/
        Labels:
        Experimental: false
        Insecure Registries:
         127.0.0.0/8
        Live Restore Enabled: false

-----> git version: git version 2.30.2
-----> sigil version: 0.9.0build+bc921b7
-----> herokuish version:
       herokuish: 0.5.37
       buildpacks:
         heroku-buildpack-multi     v1.2.0
         heroku-buildpack-ruby      v244
         heroku-buildpack-nodejs    v198
         heroku-buildpack-clojure   v90
         heroku-buildpack-python    v214
         heroku-buildpack-java      v72
         heroku-buildpack-gradle    v38
         heroku-buildpack-scala     v94
         heroku-buildpack-play      v26
         heroku-buildpack-php       v223
         heroku-buildpack-go        v166
         heroku-buildpack-nginx     v16
         buildpack-null             v3
-----> dokku version: dokku version 0.28.0
-----> plugn version: plugn: 0.12.0build+3a27594
-----> dokku plugins:
         00_dokku-standard    0.28.0 enabled    dokku core standard plugin
         20_events            0.28.0 enabled    dokku core events logging plugin
         app-json             0.28.0 enabled    dokku core app-json plugin
         apps                 0.28.0 enabled    dokku core apps plugin
         builder              0.28.0 enabled    dokku core builder plugin
         builder-dockerfile   0.28.0 enabled    dokku core builder-dockerfile plugin
         builder-herokuish    0.28.0 enabled    dokku core builder-herokuish plugin
         builder-lambda       0.27.0 enabled    dokku core builder-lambda plugin
         builder-null         0.28.0 enabled    dokku core builder-null plugin
         builder-pack         0.28.0 enabled    dokku core builder-pack plugin
         buildpacks           0.28.0 enabled    dokku core buildpacks plugin
         caddy-vhosts         0.28.0 enabled    dokku core caddy-vhosts plugin
         certs                0.28.0 enabled    dokku core certificate management plugin
         checks               0.28.0 enabled    dokku core checks plugin
         common               0.28.0 enabled    dokku core common plugin
         config               0.28.0 enabled    dokku core config plugin
         cron                 0.28.0 enabled    dokku core cron plugin
         docker-options       0.28.0 enabled    dokku core docker-options plugin
         domains              0.28.0 enabled    dokku core domains plugin
         enter                0.28.0 enabled    dokku core enter plugin
         git                  0.28.0 enabled    dokku core git plugin
         letsencrypt          0.18.1 enabled    Automated installation of let's encrypt TLS certificates
         logs                 0.28.0 enabled    dokku core logs plugin
         network              0.28.0 enabled    dokku core network plugin
         nginx-vhosts         0.28.0 enabled    dokku core nginx-vhosts plugin
         plugin               0.28.0 enabled    dokku core plugin plugin
         postgres             1.24.0 enabled    dokku postgres service plugin
         proxy                0.28.0 enabled    dokku core proxy plugin
         ps                   0.28.0 enabled    dokku core ps plugin
         redirect             0.7.1 enabled    Plugin for managing application redirects
         redis                1.24.0 enabled    dokku redis service plugin
         registry             0.28.0 enabled    dokku core registry plugin
         repo                 0.28.0 enabled    dokku core repo plugin
         resource             0.28.0 enabled    dokku core resource plugin
         run                  0.28.0 enabled    dokku core run plugin
         scheduler            0.28.0 enabled    dokku core scheduler plugin
         scheduler-docker-local 0.28.0 enabled    dokku core scheduler-docker-local plugin
         scheduler-null       0.28.0 enabled    dokku core scheduler-null plugin
         shell                0.28.0 enabled    dokku core shell plugin
         ssh-keys             0.28.0 enabled    dokku core ssh-keys plugin
         storage              0.28.0 enabled    dokku core storage plugin
         trace                0.28.0 enabled    dokku core trace plugin
         traefik-vhosts       0.28.0 enabled    dokku core traefik-vhosts plugin
=====> app app-json information
       App json computed selected:    app.json
       App json global selected:      app.json
       App json selected:
=====> app app information
       App created at:                1660826389
       App deploy source:             app
       App deploy source metadata:    app
       App dir:                       /home/dokku/app
       App locked:                    false
=====> app builder information
       Builder build dir:
       Builder computed build dir:
       Builder computed selected:
       Builder global build dir:
       Builder global selected:
       Builder selected:
=====> app builder-dockerfile information
       Builder dockerfile computed dockerfile path: Dockerfile
       Builder dockerfile global dockerfile path: Dockerfile
       Builder dockerfile dockerfile path:
=====> app builder-lambda information
       Builder lambda computed lambdayml path: lambda.yml
       Builder lambda global lambdayml path: lambda.yml
       Builder lambda lambdayml path:
=====> app builder-pack information
       Builder pack computed projecttoml path: project.toml
       Builder pack global projecttoml path: project.toml
       Builder pack projecttoml path:
=====> app buildpacks information
       Buildpacks computed stack:     gliderlabs/herokuish:latest-20
       Buildpacks global stack:
       Buildpacks list:
       Buildpacks stack:
=====> app ssl information
       Ssl dir:                       /home/dokku/app/tls
       Ssl enabled:                   true
       Ssl hostnames:                 xxxx.com www.xxxx.com
       Ssl expires at:                Oct 26 08:03:29 2022 GMT
       Ssl issuer:                    C = US, O = Let's Encrypt, CN = R3
       Ssl starts at:                 Jul 28 08:03:30 2022 GMT
       Ssl subject:                   subject=CN = xxxx.com
       Ssl verified:                  self signed
=====> app checks information
       Checks disabled list:          none
       Checks skipped list:           none
=====> app cron information
       Cron task count:               0
=====> app docker options information
       Docker options build:          --link dokku.postgres.db:dokku-postgres-db --link dokku.redis.redis:dokku-redis-redis
       Docker options deploy:         --link dokku.postgres.db:dokku-postgres-db --link dokku.redis.redis:dokku-redis-redis --restart=on-failure:10
       Docker options run:            --link dokku.postgres.db:dokku-postgres-db --link dokku.redis.redis:dokku-redis-redis
=====> app domains information
       Domains app enabled:           true
       Domains app vhosts:            xxxx.com
       Domains global enabled:        true
       Domains global vhosts:         xxxxxxxx.de
=====> app git information
       Git deploy branch:             master
       Git global deploy branch:      master
       Git keep git dir:              false
       Git rev env var:               GIT_REV
       Git sha:                       229b669
       Git last updated at:           1659429707
=====> app letsencrypt information
       Letsencrypt active:            true
       Letsencrypt autorenew:         false
       Letsencrypt email:             buhrmi@gmail.com
       Letsencrypt expiration:        1666771409
=====> app logs information
       Logs computed max size:        10m
       Logs global max size:          10m
       Logs global vector sink:
       Logs max size:
       Logs vector sink:
=====> app network information
       Network attach post create:
       Network attach post deploy:
       Network bind all interfaces:          false
       Network computed attach post create:
       Network computed attach post deploy:
       Network computed bind all interfaces: false
       Network computed initial network:
       Network computed tld:
       Network global attach post create:
       Network global attach post deploy:
       Network global bind all interfaces:   false
       Network global initial network:
       Network global tld:
       Network initial network:
       Network static web listener:
       Network tld:
       Network web listeners:                172.17.0.6:5000
=====> app nginx information
       Nginx access log format:
       Nginx access log path:         /var/log/nginx/app-access.log
       Nginx bind address ipv4:
       Nginx bind address ipv6:       ::
       Nginx client max body size:
       Nginx disable custom config:   false
       Nginx error log path:          /var/log/nginx/app-error.log
       Nginx global hsts:             true
       Nginx computed hsts:           true
       Nginx hsts:
       Nginx hsts include subdomains: true
       Nginx hsts max age:            15724800
       Nginx hsts preload:            false
       Nginx proxy buffer size:       4096
       Nginx proxy buffering:         on
       Nginx proxy buffers:           8 4096
       Nginx proxy busy buffers size: 8192
       Nginx proxy read timeout:      60s
       Nginx last visited at:         1660826191
       Nginx x forwarded for value:   $remote_addr
       Nginx x forwarded port value:  $server_port
       Nginx x forwarded proto value: $scheme
       Nginx x forwarded ssl:
=====> app proxy information
       Proxy enabled:                 true
       Proxy port map:                http:80:5000 https:443:5000
       Proxy type:                    caddy
=====> app ps information
       Deployed:                      true
       Processes:                     1
       Ps can scale:                  true
       Ps computed procfile path:     Procfile
       Ps global procfile path:       Procfile
       Ps procfile path:
       Ps restart policy:             on-failure:10
       Restore:                       true
       Running:                       true
       Status web 1:                  running (CID: a4a181e4e09)
=====> app registry information
       Registry computed image repo:      dokku/app
       Registry computed push on release: false
       Registry computed server:
       Registry global push on release:
       Registry global server:
       Registry image repo:
       Registry push on release:
       Registry server:
       Registry tag version:
=====> app resource information
=====> app scheduler information
       Scheduler computed selected:   docker-local
       Scheduler global selected:     docker-local
       Scheduler selected:
=====> app scheduler-docker-local information
       Scheduler docker local disable chown:
       Scheduler docker local init process: true
       Scheduler docker local parallel schedule count:
=====> app storage information
       Storage build mounts:
       Storage deploy mounts:
       Storage run mounts:

Additional information

No response

Output of failing commands after running: dokku trace:off

No response

Output of failing commands after running: dokku trace:on

No response

@josegonzalez
Copy link
Member

Closing as there is a pull request open.

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

Successfully merging a pull request may close this issue.

2 participants