Closed notapatch closed 4 years ago
I am also experiencing this
I had the same problem and disabled the additional installed plug-in (In my case it is postgres, elasticsearch, letsencrypt, redis). And start daemon.
sudo dokku plugin:disable postgres
sudo dokku plugin:disable elasticsearch
sudo dokku plugin:disable letsencrypt
sudo dokku plugin:disable redis
sudo systemctl start dokku-daemon.service
sudo dokku plugin:enable postgres
sudo dokku plugin:enable elasticsearch
sudo dokku plugin:enable letsencrypt
sudo dokku plugin:enable redis
Yeah, but, still, it is stopping me from using ansible to provision plugins...
Unless I use shell instead of this role..
On 10/14 09:34, yoshixmk wrote:
I had the same problem and disabled the additional installed plug-in (In my case it is postgres, elasticsearch, letsencrypt, redis). And start daemon.
sudo dokku plugin:enable postgres sudo dokku plugin:enable elasticsearch sudo dokku plugin:enable letsencrypt sudo dokku plugin:enable redis sudo systemctl start dokku-daemon.service sudo dokku plugin:enable postgres sudo dokku plugin:enable elasticsearch sudo dokku plugin:enable letsencrypt sudo dokku plugin:enable redis
-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/dokku/ansible-dokku/issues/14#issuecomment-542031967
I don't seem to be experiencing this issue with the latest release of the ansible role and this use of the role
- role: dokku_bot.ansible_dokku
tags: dokku
vars:
dokku_plugins:
- name: postgres
url: https://github.com/dokku/dokku-postgres.git
Since we now have test builds on travis CI, I've added the postgres plugin in a branch, and the Ubuntu 16.04 build still passes (including start of the dokku daemon).
Does it work for you now? Or is the problem always intermittent, i.e. should we see failures on travis at some point?
I'm going to close this. Now that there are tests, we should try and reproduce any issues in a testing environment so that we can be sure that any fix actually applies.
This was the first result when googling the issue, so here is how I solved it.
I got the exact same thing on Debian 10. It seems to be a dokku-daemon
issue. This ansible role is pulling a quite old version of dokku-daemon
by default.
Updating to a newer dokku-daemon version seems to resolve the issue:
dokku_daemon_version: a4cdb18d7aea7501f8fa4e82759526aee1117fd3
Two possible reasons:
ExecStartPost=/bin/sleep 2
Changing it to 5 seconds seems to have fixed the issue for me on my flaky VPS:
ExecStartPost=/bin/sleep 5
Upstream dokku-daemon seems to have increased it as well at some point, and the latest version reworked this to get rid of the sleep completely.
Thanks a lot @papaux for looking into this. Indeed the dokku-daemon dependency was overlooked in recent updates of the dependencies. I've just opened a PR to fix this https://github.com/dokku/ansible-dokku/pull/79
@ltalirz i guess this can be closed? nvm :D
I have a simple configuration which errors on a fresh system - after it errors and you run it again you don't see the same problem. It is intermittent and works 1 in 3 to 1 in 4 times (ish).
Steps: 1) I create a new system - Ubuntu 16.04. 2) Run the below script - title: script to replicate error.
Error logs
Success logs
If you remove the plugin it succeeds as follows:
Also fails on these variations:
Script to replicate error