dokku / plugn

Hook system that lets users extend your application with plugins
MIT License
82 stars 22 forks source link

Unable fix plugin installation after "Cannot connect to the docker daemon" error during install #46

Closed nihiluis closed 3 years ago

nihiluis commented 3 years ago

If you're using Dokku - especially for commercial purposes - consider donating to project development via OpenCollective or Patreon. Funds go to general development, support, and infrastructure costs.

If you'd like to sponsor specific functionality, see the project's Sponsoring document.

If you need support for a version of Dokku that is more than a year old, your issue may be closed without an answer. Please upgrade to a recent version before filing an issue.

Description of problem

my Docker daemon was not running while using sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git. this threw error then. but I can neither install or uninstall the plugin now.

-----> Plugin postgres enabled
Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time
.............................................................+....+.........................................................................................+.......................+......................................................................................................................................................................................................+.............................................................................................................................................................................................................................................+......................................................................................+..........................+...........+.....................................................................................................+...............................+..............................................+.....................................................................................................................................................................................+............................................................................................................................................................................+............................................................................................................................................................................................................................................................................+..............................................................................................................................................................................+...................+..............................................................................................................................................................................................................................................................................+......................+...........+.........................................................................................................................................................................................................................+............................................................................+............+....................................................+.........................................................................................................................................................................................................................................+......................................................................................................................+......................................................................................+............................................................+........................................................................................+..........................................+.................................................................................................................................+......................................................................................................................................................................................+....+.........................................................................................................................................................................................................................................................+.....................................................................................................................................................+........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................+............................................................................................................................+......................................................................................+.........................................+.....................................................................................................................+....+.......................................................................................................................................................................................................................+...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................+.....+.........................................................................................................................+...................................................................................+.....+...............................................................................................................................................................+.........................................................................+..................................+.....................................................................................+............................................................................................................................................................................................................................................................................................+....................+.............+................................................................................................................................................................................+..............................+..........................................................................................................................................................................+.......................................................................................................................................+...................+........+..............................+.......................................................................................................................................................+............................................................................................................+...........................................................+...................................................................................................................................+........................................................+.....+................................................................................+......................................................................+....................................+..................................................................+......................................................+................................................................+...........................................................................+................................................+.....................................................+....................................................................................................................+...................................................+...........................++*++*++*++*
Adding user dokku to group adm
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2021/01/08 13:54:01 exit status 1
[pablo@v220210121296138060 ~]$ sudo dokku plugin:uninstall https://github.com/dokku/dokku-postgres.git
 !     Plugin (https://github.com/dokku/dokku-postgres.git) is not currently installed
[pablo@v220210121296138060 ~]$ sudo dokku plugin:update https://github.com/dokku/dokku-postgres.git
Plugin (https://github.com/dokku/dokku-postgres.git) not installed
2021/01/08 13:55:31 exit status 1
sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git
-----> Cloning plugin repo https://github.com/dokku/dokku-postgres.git to /var/lib/dokku/plugins/available/postgres
fatal: destination path 'postgres' already exists and is not an empty directory.
josegonzalez commented 3 years ago

When you uninstall the plugin, you need to reference it by name:

sudo dokku plugin:uninstall postgres

Docs here: https://dokku.com/docs/advanced-usage/plugin-management/#uninstalling-a-plugin