Closed itstheandre closed 1 year ago
This might have been a temporary bug. I'm unable to reproduce now:
root@dokku:~# dokku postgres:create pg
Waiting for container to be ready
Creating container database
Securing connection to database
=====> Postgres container created: pg
=====> pg postgres service information
Config dir: /var/lib/dokku/services/postgres/pg/data
Config options:
Data dir: /var/lib/dokku/services/postgres/pg/data
Dsn: postgres://postgres:b5fd8582b613db63e37ccf0fdfb59c7f@dokku-postgres-pg:5432/pg
Exposed ports: -
Id: 37db5387c79379b4cd00f7f63c84f1c162b63d31ceaa8b55802591bbbb966b2f
Internal ip: 172.17.0.7
Initial network:
Links: -
Post create network:
Post start network:
Service root: /var/lib/dokku/services/postgres/pg
Status: running
Version: postgres:14.5
root@dokku:~# dokku postgres:expose pg 5432
-----> Service pg exposed on port(s) [container->host]: 5432->5432
root@dokku:~# dokku postgres:unexpose pg
-----> Service pg unexposed
root@dokku:~# dokku postgres:expose pg 5432
-----> Service pg exposed on port(s) [container->host]: 5432->5432
Description of problem
I was trying to unexpose my database, and then after i tried to
re expose it
and got an issue about a container already in use.How reproducible
After deleting said container everything was running again
Steps to Reproduce
Actual Results
Expected Results
-----> Service pg exposed on port(s) [container->host]: 5432->5432
The solution that @josegonzalez came up with was to run the command
docker rm -f dokku.postgres.ambassador
which was the container that was erroring out.And from there it was working.
As per request I also added the following command
dokku --trace postgres:unexpose pg
Environment Information
dokku report APP_NAME
output-----> docker daemon info: Client: Debug Mode: true
-----> sigil version: 0.6.0 -----> herokuish version: Unable to find image 'gliderlabs/herokuish:latest' locally latest: Pulling from gliderlabs/herokuish 5bed26d33875: Pulling fs layer f11b29a9c730: Pulling fs layer 930bda195c84: Pulling fs layer 78bf9a5ad49e: Pulling fs layer 5ca853acd559: Pulling fs layer b8cfb59338be: Pulling fs layer ebe2379f9a92: Pulling fs layer 3d51acf20b0d: Pulling fs layer ed356191ca54: Pulling fs layer cdf55d94c1d9: Pulling fs layer f317c80ad605: Pulling fs layer 36e537329f4c: Pulling fs layer 3219a255d7d5: Pulling fs layer 78bf9a5ad49e: Waiting 5ca853acd559: Waiting b8cfb59338be: Waiting ebe2379f9a92: Waiting 3d51acf20b0d: Waiting ed356191ca54: Waiting cdf55d94c1d9: Waiting f317c80ad605: Waiting 36e537329f4c: Waiting 3219a255d7d5: Waiting 930bda195c84: Verifying Checksum 930bda195c84: Download complete f11b29a9c730: Verifying Checksum f11b29a9c730: Download complete 5bed26d33875: Verifying Checksum 5bed26d33875: Download complete 78bf9a5ad49e: Verifying Checksum 78bf9a5ad49e: Download complete 5ca853acd559: Verifying Checksum 5ca853acd559: Download complete ebe2379f9a92: Verifying Checksum ebe2379f9a92: Download complete b8cfb59338be: Verifying Checksum b8cfb59338be: Download complete ed356191ca54: Verifying Checksum ed356191ca54: Download complete cdf55d94c1d9: Verifying Checksum cdf55d94c1d9: Download complete f317c80ad605: Verifying Checksum f317c80ad605: Download complete 36e537329f4c: Verifying Checksum 36e537329f4c: Download complete 3219a255d7d5: Verifying Checksum 3219a255d7d5: Download complete 3d51acf20b0d: Verifying Checksum 3d51acf20b0d: Download complete 5bed26d33875: Pull complete f11b29a9c730: Pull complete 930bda195c84: Pull complete 78bf9a5ad49e: Pull complete 5ca853acd559: Pull complete b8cfb59338be: Pull complete ebe2379f9a92: Pull complete 3d51acf20b0d: Pull complete ed356191ca54: Pull complete cdf55d94c1d9: Pull complete f317c80ad605: Pull complete 36e537329f4c: Pull complete 3219a255d7d5: Pull complete Digest: sha256:a567b4af19278f83cff11a58560061829b25e9bcf604b05c4af2ecc702d43c07 Status: Downloaded newer image for gliderlabs/herokuish:latest herokuish: 0.5.13 buildpacks: heroku-buildpack-multi v1.0.0 heroku-buildpack-ruby v215 heroku-buildpack-nodejs v171 heroku-buildpack-clojure v84 heroku-buildpack-python v169 heroku-buildpack-java v66 heroku-buildpack-gradle v31 heroku-buildpack-scala v87 heroku-buildpack-play v26 heroku-buildpack-php v174 heroku-buildpack-go v142 buildpack-nginx v13 -----> dokku version: dokku version 0.21.4 -----> dokku plugins: plugn: 0.5.0 00_dokku-standard 0.21.4 enabled dokku core standard plugin 20_events 0.21.4 enabled dokku core events logging plugin app-json 0.21.4 enabled dokku core app-json plugin apps 0.21.4 enabled dokku core apps plugin builder-dockerfile 0.21.4 enabled dokku core builder-dockerfile plugin builder-herokuish 0.21.4 enabled dokku core builder-herokuish plugin buildpacks 0.21.4 enabled dokku core buildpacks plugin certs 0.21.4 enabled dokku core certificate management plugin checks 0.21.4 enabled dokku core checks plugin common 0.21.4 enabled dokku core common plugin config 0.21.4 enabled dokku core config plugin docker-direct 1.0.0 enabled dokku plugin to issue docker commands directly docker-options 0.21.4 enabled dokku core docker-options plugin domains 0.21.4 enabled dokku core domains plugin enter 0.21.4 enabled dokku core enter plugin git 0.21.4 enabled dokku core git plugin letsencrypt 0.9.4 enabled Automated installation of let's encrypt TLS certificates logs 0.21.4 enabled dokku core logs plugin network 0.21.4 enabled dokku core network plugin nginx-vhosts 0.21.4 enabled dokku core nginx-vhosts plugin plugin 0.21.4 enabled dokku core plugin plugin postgres 1.11.5 enabled dokku postgres service plugin proxy 0.21.4 enabled dokku core proxy plugin ps 0.21.4 enabled dokku core ps plugin repo 0.21.4 enabled dokku core repo plugin resource 0.21.4 enabled dokku core resource plugin scheduler-docker-local 0.21.4 enabled dokku core scheduler-docker-local plugin shell 0.21.4 enabled dokku core shell plugin ssh-keys 0.21.4 enabled dokku core ssh-keys plugin storage 0.21.4 enabled dokku core storage plugin tags 0.21.4 enabled dokku core tags plugin tar 0.21.4 enabled dokku core tar plugin trace 0.21.4 enabled dokku core trace plugin =====> api app information App deploy source: App dir: /home/dokku/api App locked: false =====> api buildpacks information Buildpacks list: CN = api.justavenda.pt error 20 at 0 depth lookup: unable to get local issuer certificate =====> api ssl information Ssl dir: /home/dokku/api/tls Ssl enabled: true Ssl hostnames: api.justavenda.pt Ssl expires at: Nov 24 16:24:22 2020 GMT Ssl issuer: C = US, O = Lets Encrypt, CN = Lets Encrypt Authority X3 Ssl starts at: Aug 26 16:24:22 2020 GMT Ssl subject: subject=CN = api.justavenda.pt Ssl verified: self signed =====> api checks information Checks disabled list: none Checks skipped list: none =====> api docker options information Docker options build: --link dokku.postgres.pg:dokku-postgres-pg Docker options deploy: --link dokku.postgres.pg:dokku-postgres-pg --restart=on-failure:10 Docker options run: --link dokku.postgres.pg:dokku-postgres-pg =====> api domains information Domains app enabled: true Domains app vhosts: api.justavenda.pt Domains global enabled: true Domains global vhosts: justavenda.pt =====> api git information Git deploy branch: master Git global deploy branch: master Git keep git dir: false Git rev env var: GIT_REV Git sha: Git last updated at: =====> api network information Network attach post create: Network attach post deploy: Network bind all interfaces: false Network web listeners: 172.17.0.4:3006 =====> api nginx information Nginx access log path: /var/log/nginx/api-access.log Nginx bind address ipv4: Nginx bind address ipv6: :: Nginx error log path: /var/log/nginx/api-error.log Nginx hsts: true Nginx hsts include subdomains: true Nginx hsts max age: 15724800 Nginx hsts preload: false Nginx proxy read timeout: 60s Nginx last visited at: 1601574880 =====> api proxy information Proxy enabled: true Proxy port map: http:80:3006 https:443:3006 Proxy type: nginx =====> api ps information Processes: 1 Deployed: true Running: true Restore: true Restart policy: on-failure:10 Ps can scale: true Status web.1: running (CID: 5efdf67b3570) =====> api scheduler-docker-local information Scheduler docker local disable chown: =====> api storage information Storage build mounts: Storage deploy mounts: Storage run mounts:
How (deb/make/rpm) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:
Additional information
dokku ps:inspect APP_NAME
dokku nginx:show-config APP_NAME
dokku trace:on
(BEWARE:trace:on
will print environment variables for some commands, be sure you're not exposing any sensitive information when posting issues. You may replace these values with XXXXXX):