Abra gives a weird error when user on remote server isn't in group docker #169

Closed
opened 2021-09-14 14:09:21 +00:00 by knoflook · 2 comments
Owner

Describe the current behavior

If your remote user isn't in the group docker abra returns a cryptic error message:
FATA[0003] Cannot connect to the Docker daemon at http://docker.example.com. Is the docker daemon running?

Steps to reproduce

go trough the installation procedure on docker's website and don't add your user to the docker group and then do

abra server add <server>
abra server init <server>

Describe the expected behavior

abra should throw some error message explaining that user is not in the group docker instead of trying to connect to docker.example.com

Additional information

  • version: 0.1.2-alpha
## Describe the current behavior If your remote user isn't in the group `docker` abra returns a cryptic error message: FATA[0003] Cannot connect to the Docker daemon at http://docker.example.com. Is the docker daemon running? ## Steps to reproduce go trough the installation procedure on docker's website and don't add your user to the `docker group` and then do ``` abra server add <server> abra server init <server> ``` ## Describe the expected behavior abra should throw some error message explaining that user is not in the group docker instead of trying to connect to docker.example.com ## Additional information <!-- run "abra version" on the command-line --> - version: 0.1.2-alpha
knoflook added the
bug
abra
labels 2021-09-14 14:09:21 +00:00
decentral1se added this to the Command-line tool sustainability milestone 2021-09-14 14:29:12 +00:00

I think I might fix this with a cheeky ssh connect to the host and check the users groups. Docker itself actually also has really shitty error messages for this as well. Basically the same message but in socket form

I think I might fix this with a cheeky ssh connect to the host and check the users groups. Docker itself actually also has really shitty error messages for this as well. Basically the same message but in socket form
Owner

abra server add will error out if docker is not installed on the server and give a decent error message, see 1392afc015/cli/server/add.go (L82-L89).

`abra server add` will error out if docker is not installed on the server and give a decent error message, see https://git.coopcloud.tech/coop-cloud/abra/src/commit/1392afc015963cd6dd12fa6d0f9c5bbd5b5280ac/cli/server/add.go#L82-L89.
Sign in to join this conversation.
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#169
No description provided.