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

Doesn't install Docker on server (Hetzner) #301

Closed
shafy opened this issue May 18, 2023 · 3 comments
Closed

Doesn't install Docker on server (Hetzner) #301

shafy opened this issue May 18, 2023 · 3 comments

Comments

@shafy
Copy link
Contributor

shafy commented May 18, 2023

I've created a new Hetzner VM (Ubuntu 22.04, AMD) and would expect MRSK to install Docker on the remote machine. However, mrsk deploy fails with:

Acquiring the deploy lock
  INFO [4aeec3cb] Running /usr/bin/env mkdir mrsk_lock && echo "TG9ja2VkIGJ5OiBDYW4gT2xjZXIgYXQgMjAyMy0wNS0xOFQxMDoyMTo0OFoK
VmVyc2lvbjogNjkzMGQyOGMzMzNlNzY1OTg4ZjM0ZDFjYzViODcxZTY2ZTRj
ZjZlMgpNZXNzYWdlOiBBdXRvbWF0aWMgZGVwbG95IGxvY2s=
" > mrsk_lock/details on 195.201.6.85
Enter passphrase for /Users/canolcer/.ssh/id_ed25519:
  INFO [4aeec3cb] Finished in 5.974 seconds with exit status 0 (successful).
Log into image registry...
  INFO [b930d534] Running docker login ghcr.io -u [REDACTED] -p [REDACTED] as canolcer@localhost
  INFO [b930d534] Finished in 0.914 seconds with exit status 0 (successful).
  INFO [11b61771] Running docker login ghcr.io -u [REDACTED] -p [REDACTED] on 195.201.6.85
  Finished all in 1.0 seconds
Releasing the deploy lock
  INFO [405eff61] Running /usr/bin/env rm mrsk_lock/details && rm -r mrsk_lock on 195.201.6.85
  INFO [405eff61] Finished in 0.110 seconds with exit status 0 (successful).
  ERROR (SSHKit::Command::Failed): docker exit status: 127
docker stdout: Nothing written
docker stderr: bash: line 1: docker: command not found

My SSH key does have root access. After installing Docker manually this problem goes away.

According to the MRSK source, not having Docker installed and failing to install Docker should show an error message. However, this doesn't happen in my case.

Any ideas?

@PabloC
Copy link

PabloC commented May 18, 2023

try "mrsk setup" first and later "mrsk deploy"

@shafy
Copy link
Contributor Author

shafy commented May 19, 2023

This solves this issue, thanks! However, this is not made clear in the docs. In fact, there it is implied that mrsk deploy installs Docker.

We should update the docs to reflect that. Or is this a bug, and deploy is supposed to also call invoke "mrsk:cli:server:bootstrap" ? Let me know what the intention is @dhh and I'm happy to make a PR.

@shafy shafy closed this as completed May 19, 2023
@shafy shafy reopened this May 19, 2023
@dhh
Copy link
Member

dhh commented May 22, 2023

Should add a note to docs about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants