dokku / dokku-postgres

a postgres plugin for dokku
MIT License
492 stars 97 forks source link

Ubuntu 18.04: netstat: command not found #147

Closed IlyaSemenov closed 6 years ago

IlyaSemenov commented 6 years ago

On a fresh, fully updated Ubuntu 18.04 install, with nothing else but Dokku and dokku-postgres installed, dokku postgres:create prints this error:

/var/lib/dokku/plugins/enabled/postgres/common-functions: line 34: netstat: command not found

Complete output below:

$ dokku postgres:create xxx
       Waiting for container to be ready
       Creating container database
       Securing connection to database
/var/lib/dokku/plugins/enabled/postgres/common-functions: line 34: netstat: command not found
=====> Postgres container created: xxx
=====> Container Information
       Config dir:          /var/lib/dokku/services/postgres/xxx/config
       Data dir:            /var/lib/dokku/services/postgres/xxx/data
       Dsn:                 postgres://postgres:c38e...@dokku-postgres-xxx:5432/xxx
       Exposed ports:       -
       Id:                  047a...
       Internal ip:         172.17.0.2
       Links:               -
       Service root:        /var/lib/dokku/services/postgres/xxx
       Status:              running
       Version:             postgres:10.2

The database does get created, so it's not clear if the failed netstat did anything wrong or not.

What I'm thinking is that netstat (net-tools) requirement should be added to dokku apt package dependencies.

josegonzalez commented 6 years ago

Ah, probably part of their initiative to make ubuntu installations smaller by default.

josegonzalez commented 6 years ago

https://github.com/dokku/dokku/pull/3214

josegonzalez commented 6 years ago

Fixed in the latest Dokku release.