Dokku v0.19.2 + Ubuntu 18.04 x64 + Python3 workaround

Thiên Toán
2 min readOct 21, 2019

--

Dokku logo

I deployed Dokku for new my project and got some issues.
In the past, Dokku was easy to deploy, especially on Ubuntu (any currently supported release).

Some other users have had the same errors as me and are still working on a workaround.

The errors appear may be out of order.

My resolution is below. It works for me but cannot use the web installer to add ssh-key, alternative way add one.

# 1. Error: keyfile ‘/root/.ssh/id_rsa.pub’ not found.

root@dokku:~# ssh-keygen

# 2. File “/usr/share/dokku/contrib/dokku-installer.py”, line 23, in <module> if ‘:’ in hostname:

https://gist.github.com/toanalien/24c2e3f33a7c464e816874c91f78ba59/revisions#diff-c83801d3d63a161ac5e3a504ad99a532

# 3. File “/usr/share/dokku/contrib/dokku-installer.py”, line 40, in <module> admin_keys = subprocess.check_output(command, shell=True).strip().split(“\n”)

https://gist.github.com/toanalien/24c2e3f33a7c464e816874c91f78ba59/revisions#diff-c83801d3d63a161ac5e3a504ad99a532

Re-run sudo DOKKU_TAG=v0.19.2 bash bootstrap.sh. It Works!

Recap

  • Script install on the homepage not work for me and some users.
  • Must init public key in the server (I don’t know why we do that, because we have added a public key step after installed).
  • Some string handling issues in python 3.

PR will be created. Hope this helps!

--

--