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

mongo:start - Missing image #241

Open
archy-bold opened this issue Jan 26, 2024 · 0 comments
Open

mongo:start - Missing image #241

archy-bold opened this issue Jan 26, 2024 · 0 comments

Comments

@archy-bold
Copy link

archy-bold commented Jan 26, 2024

Description of problem

After taking down a mongo instance with a custom image and version with mongo:stop, the mongo:start command gives an error of "Missing image MYIMAGE:MYIMAGEVERSION for MYSERVICE". This was after running docker system prune and clearing all images.

I checked the $IMAGE variable in service_image_exists, and it was trying to find the default image and version.

How reproducible

I was able to reproduce it with a new mongo instance.

Steps to Reproduce

  1. dokku mongo:create [SERVICE] --image [NON_DEFAULT_IMAGE] --image-version [NON_DEFAULT_IMAGE_VERSION]
  2. docker system prune
  3. dokku mongo:stop [SERVICE]
  4. dokku mongo:start [SERVICE]

Actual Results

Error: Missing image MYIMAGE:MYIMAGEVERSION for MYSERVICE

Expected Results

Should start the existing service using the image available.

Environment Information

dokku report APP_NAME output

-----> uname: Linux wata-digital 5.4.0-169-generic dokku/dokku-mongo#187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
-----> memory: 
                     total        used        free      shared  buff/cache   available
       Mem:           3920        2050         860          39        1008        1679
       Swap:          1023         878         145
-----> docker version: 
       Client: Docker Engine - Community
        Version:           24.0.7
        API version:       1.43
        Go version:        go1.20.10
        Git commit:        afdd53b
        Built:             Thu Oct 26 09:08:01 2023
        OS/Arch:           linux/amd64
        Context:           default
       
       Server: Docker Engine - Community
        Engine:
         Version:          24.0.7
         API version:      1.43 (minimum version 1.12)
         Go version:       go1.20.10
         Git commit:       311b9ff
         Built:            Thu Oct 26 09:08:01 2023
         OS/Arch:          linux/amd64
         Experimental:     false
        containerd:
         Version:          1.6.26
         GitCommit:        3dd1e886e55dd695541fdcd67420c2888645a495
        runc:
         Version:          1.1.10
         GitCommit:        v1.1.10-0-g18a0cb0
        docker-init:
         Version:          0.19.0
         GitCommit:        de40ad0
-----> docker daemon info: 
       Client: Docker Engine - Community
WARNING: No swap limit support
        Version:    24.0.7
        Context:    default
        Debug Mode: true
        Plugins:
         buildx: Docker Buildx (Docker Inc.)
           Version:  v0.11.2
           Path:     /usr/libexec/docker/cli-plugins/docker-buildx
         compose: Docker Compose (Docker Inc.)
           Version:  v2.21.0
           Path:     /usr/libexec/docker/cli-plugins/docker-compose
       
       Server:
        Containers: 11
         Running: 11
         Paused: 0
         Stopped: 0
        Images: 20
        Server Version: 24.0.7
        Storage Driver: overlay2
         Backing Filesystem: extfs
         Supports d_type: true
         Using metacopy: false
         Native Overlay Diff: true
         userxattr: false
        Logging Driver: journald
        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 runc
        Default Runtime: runc
        Init Binary: docker-init
        containerd version: 3dd1e886e55dd695541fdcd67420c2888645a495
        runc version: v1.1.10-0-g18a0cb0
        init version: de40ad0
        Security Options:
         apparmor
         seccomp
          Profile: builtin
        Kernel Version: 5.4.0-169-generic
        Operating System: Ubuntu 20.04.6 LTS
        OSType: linux
        Architecture: x86_64
        CPUs: 2
        Total Memory: 3.828GiB
        Name: wata-digital
        ID: 81d92756-a67b-4a4b-9778-88ffb667da54
        Docker Root Dir: /var/lib/docker
        Debug Mode: false
         File Descriptors: 843
         Goroutines: 159
         System Time: 2024-01-26T20:10:27.937103794Z
         EventsListeners: 3
        Experimental: false
        Insecure Registries:
         127.0.0.0/8
        Live Restore Enabled: false
       
-----> herokuish version: 
       herokuish: v0.7.2
       buildpacks:
         heroku-buildpack-multi     v1.2.0
         heroku-buildpack-ruby      v259
         heroku-buildpack-nodejs    v224
         heroku-buildpack-clojure   v91
         heroku-buildpack-python    v237
         heroku-buildpack-java      v73
         heroku-buildpack-gradle    v39
         heroku-buildpack-scala     v96
         heroku-buildpack-play      v26
         heroku-buildpack-php       v239
         heroku-buildpack-go        v181
         heroku-buildpack-nginx     v24
         buildpack-null             v3
-----> dokku version: dokku version 0.32.4
-----> dokku-event-listener version: 0.15.0build+5268732                                                             
-----> dokku-update version: dokku-update 0.7.2
-----> docker-container-healthchecker version: 0.7.2                                                                           
-----> docker-image-labeler version: 0.6.1build+c6e15a9                                                              
-----> git version: git version 2.25.1
-----> lambda-builder version:        0.5.0                                                                           
-----> netrc version: 0.7.1build+677c033
 !     pack binary is not available
-----> plugn version: plugn: 0.13.0build+fd5297a
-----> sigil version: 0.10.1build+e443be0
-----> sshcommand version: sshcommand 0.17.1
-----> dokku plugins: 
         00_dokku-standard    0.32.4 enabled    dokku core standard plugin
         20_events            0.32.4 enabled    dokku core events logging plugin
         app-json             0.32.4 enabled    dokku core app-json plugin
         apps                 0.32.4 enabled    dokku core apps plugin
         builder              0.32.4 enabled    dokku core builder plugin
         builder-dockerfile   0.32.4 enabled    dokku core builder-dockerfile plugin
         builder-herokuish    0.32.4 enabled    dokku core builder-herokuish plugin
         builder-lambda       0.32.4 enabled    dokku core builder-lambda plugin
         builder-nixpacks     0.32.4 enabled    dokku core builder-nixpacks plugin
         builder-null         0.32.4 enabled    dokku core builder-null plugin
         builder-pack         0.32.4 enabled    dokku core builder-pack plugin
         buildpacks           0.32.4 enabled    dokku core buildpacks plugin
         caddy-vhosts         0.32.4 enabled    dokku core caddy-vhosts plugin
         certs                0.32.4 enabled    dokku core certificate management plugin
         checks               0.32.4 enabled    dokku core checks plugin
         common               0.32.4 enabled    dokku core common plugin
         config               0.32.4 enabled    dokku core config plugin
         cron                 0.32.4 enabled    dokku core cron plugin
         docker-options       0.32.4 enabled    dokku core docker-options plugin
         domains              0.32.4 enabled    dokku core domains plugin
         elasticsearch        1.35.1 enabled    dokku elasticsearch service plugin
         enter                0.32.4 enabled    dokku core enter plugin
         git                  0.32.4 enabled    dokku core git plugin
         haproxy-vhosts       0.32.4 enabled    dokku core haproxy-vhosts plugin
         letsencrypt          0.20.3 enabled    Automated installation of let's encrypt TLS certificates
         logs                 0.32.4 enabled    dokku core logs plugin
         mariadb              1.38.1 enabled    dokku mariadb service plugin
         mongo                1.36.4 enabled    dokku mongo service plugin
         network              0.32.4 enabled    dokku core network plugin
         nginx-vhosts         0.32.4 enabled    dokku core nginx-vhosts plugin
         openresty-vhosts     0.32.4 enabled    dokku core openresty-vhosts plugin
         plugin               0.32.4 enabled    dokku core plugin plugin
         ports                0.32.4 enabled    dokku core ports plugin
         proxy                0.32.4 enabled    dokku core proxy plugin
         ps                   0.32.4 enabled    dokku core ps plugin
         registry             0.32.4 enabled    dokku core registry plugin
         repo                 0.32.4 enabled    dokku core repo plugin
         resource             0.32.4 enabled    dokku core resource plugin
         run                  0.32.4 enabled    dokku core run plugin
         scheduler            0.32.4 enabled    dokku core scheduler plugin
         scheduler-docker-local 0.32.4 enabled    dokku core scheduler-docker-local plugin
         scheduler-null       0.32.4 enabled    dokku core scheduler-null plugin
         shell                0.32.4 enabled    dokku core shell plugin
         ssh-keys             0.32.4 enabled    dokku core ssh-keys plugin
         storage              0.32.4 enabled    dokku core storage plugin
         trace                0.32.4 enabled    dokku core trace plugin
         traefik-vhosts       0.32.4 enabled    dokku core traefik-vhosts plugin
=====> delivery app-json information
       App json computed selected:    app.json
       App json global selected:      app.json
       App json selected:             
=====> delivery app information
       App created at:                1704820073
       App deploy source:             
       App deploy source metadata:    
       App dir:                       /home/dokku/delivery
       App locked:                    false
=====> delivery builder information
       Builder build dir:             
       Builder computed build dir:    
       Builder computed selected:     
       Builder global build dir:      
       Builder global selected:       
       Builder selected:              
=====> delivery builder-dockerfile information
       Builder dockerfile computed dockerfile path: Dockerfile               
       Builder dockerfile global dockerfile path: Dockerfile               
       Builder dockerfile dockerfile path:                          
=====> delivery builder-herokuish information
       Builder herokuish computed allowed: true                     
       Builder herokuish global allowed: true                     
       Builder herokuish allowed:                              
=====> delivery builder-lambda information
       Builder lambda computed lambdayml path: lambda.yml               
       Builder lambda global lambdayml path: lambda.yml               
       Builder lambda lambdayml path:                          
=====> delivery builder-nixpacks information
       Builder nixpacks computed nixpackstoml path: nixpacks.toml            
       Builder nixpacks global nixpackstoml path: nixpacks.toml            
       Builder nixpacks nixpackstoml path:                          
       Builder nixpacks computed no cache: false                    
       Builder nixpacks global no cache: false                    
       Builder nixpacks no cache:                              
=====> delivery builder-pack information
       Builder pack computed projecttoml path: project.toml             
       Builder pack global projecttoml path: project.toml             
       Builder pack projecttoml path:                          
=====> delivery buildpacks information
       Buildpacks computed stack:     gliderlabs/herokuish:latest-22
       Buildpacks global stack:       
       Buildpacks list:               
       Buildpacks stack:              
=====> delivery caddy information
       Caddy image:                   lucaslorentz/caddy-docker-proxy:2.8
       Caddy letsencrypt email:                                
       Caddy letsencrypt server:      https://acme-v02.api.letsencrypt.org/directory
       Caddy log level:               ERROR                    
       Caddy polling interval:        5s                       
       Caddy tls internal:            false                    
=====> delivery ssl information
       Ssl dir:                       /home/dokku/delivery/tls 
       Ssl enabled:                   true                     
       Ssl hostnames:                 delivery.wata.digital    
       Ssl expires at:                Apr 14 23:00:11 2024 GMT 
       Ssl issuer:                    C = US, O = Let's Encrypt, CN = R3
       Ssl starts at:                 Jan 15 23:00:12 2024 GMT 
       Ssl subject:                   subject=CN = delivery.wata.digital
       Ssl verified:                  self signed              
=====> delivery checks information
       Checks disabled list:          _all_                    
       Checks skipped list:           none                     
       Checks computed wait to retire: 60                       
       Checks global wait to retire:  60                       
       Checks wait to retire:                                  
=====> delivery docker options information
       Docker options build:          --link dokku.mongo.delivery:dokku-mongo-delivery 
       Docker options deploy:         --link dokku.mongo.delivery:dokku-mongo-delivery -p 52001:8080 --restart=on-failure:10 
       Docker options run:            --link dokku.mongo.delivery:dokku-mongo-delivery -p 52001:8080 
=====> delivery domains information
       Domains app enabled:           true                     
       Domains app vhosts:            delivery.wata.digital    
       Domains global enabled:        true                     
       Domains global vhosts:         wata.digital             
=====> delivery git information
       Git deploy branch:             master                   
       Git global deploy branch:      master                   
       Git keep git dir:              false                    
       Git rev env var:               GIT_REV                  
       Git sha:                       b4c5326                  
       Git source image:                                       
       Git last updated at:           1543251988               
=====> delivery haproxy information
       Haproxy image:                 byjg/easy-haproxy:4.3.0  
       Haproxy letsencrypt email:                              
       Haproxy letsencrypt server:    https://acme-v02.api.letsencrypt.org/directory
       Haproxy log level:             ERROR                    
=====> delivery letsencrypt information
       Letsencrypt active:            true                     
       Letsencrypt autorenew:         true                     
       Letsencrypt computed dns provider:                          
       Letsencrypt global dns provider:                          
       Letsencrypt dns provider:                               
       Letsencrypt computed email:    [email protected]      
       Letsencrypt global email:                               
       Letsencrypt email:             [email protected]      
       Letsencrypt expiration:        1713135611               
       Letsencrypt computed graceperiod: 2592000                  
       Letsencrypt global graceperiod:                          
       Letsencrypt graceperiod:                                
       Letsencrypt computed lego docker args:                          
       Letsencrypt global lego docker args:                          
       Letsencrypt lego docker args:                           
       Letsencrypt computed server:   https://acme-v02.api.letsencrypt.org/directory
       Letsencrypt global server:                              
       Letsencrypt server:                                     
=====> delivery logs information
       Logs computed max size:        1m
       Logs global max size:          1m
       Logs global vector sink:       
       Logs max size:                 
       Logs vector sink:              
=====> delivery network information
       Network attach post create:           
       Network attach post deploy:           
       Network bind all interfaces:          true
       Network computed attach post create:  
       Network computed attach post deploy:  
       Network computed bind all interfaces: true
       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.9:5000
=====> delivery nginx information
       Nginx access log format:                                
       Nginx access log path:         /var/log/nginx/delivery-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/delivery-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 computed nginx conf sigil path: nginx.conf.sigil         
       Nginx global nginx conf sigil path: nginx.conf.sigil         
       Nginx nginx conf sigil path:                            
       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:         1706299805               
       Nginx x forwarded for value:   $remote_addr             
       Nginx x forwarded port value:  $server_port             
       Nginx x forwarded proto value: $scheme                  
       Nginx x forwarded ssl:                                  
=====> delivery openresty information
       Openresty access log format:                            
       Openresty access log path:     /var/log/nginx/delivery-access.log
       Openresty bind address ipv4:                            
       Openresty bind address ipv6:   ::                       
       Openresty client max body size:                          
       Openresty error log path:      /var/log/nginx/delivery-error.log
       Openresty global hsts:         true                     
       Openresty computed hsts:       true                     
       Openresty hsts:                                         
       Openresty hsts include subdomains: true                     
       Openresty hsts max age:        15724800                 
       Openresty hsts preload:        false                    
       Openresty image:               dokku/openresty-docker-proxy:0.6.0
       Openresty letsencrypt email:                            
       Openresty letsencrypt server:  https://acme-v02.api.letsencrypt.org/directory
       Openresty proxy buffer size:   4096                     
       Openresty proxy buffering:     on                       
       Openresty proxy buffers:       8 4096                   
       Openresty proxy busy buffers size: 8192                     
       Openresty proxy read timeout:  60s                      
       Openresty x forwarded for value: $remote_addr             
       Openresty x forwarded port value: $server_port             
       Openresty x forwarded proto value: $scheme                  
       Openresty x forwarded ssl:                              
=====> delivery ports information
       Ports map:                     http:80:5000 https:443:5000
       Ports map detected:            http:80:5000 https:443:5000
=====> delivery proxy information
       Proxy enabled:                 true
       Proxy type:                    nginx
=====> delivery 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: 8700a285d80)
=====> delivery registry information
       Registry computed image repo:      dokku/delivery
       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:              
=====> delivery resource information
=====> delivery scheduler information
       Scheduler computed selected:   docker-local
       Scheduler global selected:     docker-local
       Scheduler selected:            
=====> delivery scheduler-docker-local information
       Scheduler docker local disable chown:                          
       Scheduler docker local init process: true                     
       Scheduler docker local parallel schedule count:                          
=====> delivery storage information
       Storage build mounts:                                   
       Storage deploy mounts:                                  
       Storage run mounts:                                     
=====> delivery traefik information
       Traefik api enabled:           false                    
       Traefik api vhost:             traefik.dokku.me         
       Traefik basic auth password:                            
       Traefik basic auth username:                            
       Traefik dashboard enabled:     false                    
       Traefik image:                 traefik:v2.10            
       Traefik letsencrypt email:                              
       Traefik letsencrypt server:    https://acme-v02.api.letsencrypt.org/directory
       Traefik log level:             ERROR                    
       Traefik priority:

How (deb/make) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:

Using adb

@josegonzalez josegonzalez transferred this issue from dokku/dokku-mongo Mar 13, 2024
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

2 participants