dokku-shoreman
dokku-shoreman copied to clipboard
ERROR: open /var/lib/dokku/plugins/available/shoreman/plugin.toml: no such file or directory
Get an error when I update dokku to 0.4.1. For 0.4.*, I installed shoreman by
dokku plugin:install https://github.com/statianzo/dokku-shoreman.git
Seems plugin.toml is a meta file, and now I can not start job worker by shoreman.
Any ideas ?
ubuntu@ip-172-31-12-26:/var/lib/dokku/plugins/available$ sudo dokku plugin:install https://github.com/statianzo/dokku-shoreman.git
-----> Cloning plugin repo https://github.com/statianzo/dokku-shoreman.git to /var/lib/dokku/plugins/available/shoreman
Cloning into 'shoreman'...
remote: Counting objects: 50, done.
remote: Total 50 (delta 0), reused 0 (delta 0), pack-reused 50
Unpacking objects: 100% (50/50), done.
Checking connectivity... done.
-----> Plugin shoreman enabled
svendowideit/ambassador latest 87f96952e018 47 hours ago 6.454 MB
dokkupaas/wait latest 1c1a3590522d 2 weeks ago 1.096 MB
2015/10/14 13:38:39 open /var/lib/dokku/plugins/available/shoreman/plugin.toml: no such file or directory
I created a plugin.toml and rebuild my app still not work. But the error disappeared.
[plugin]
description = "dokku shoreman service plugin"
version = "0.2.0"
[plugin.config]
Now I am using logging-supervisord instead.
Looks like dokku-shoreman isn't compatible with 0.4.x at the moment. Thanks for filing the issue.
:smiley:
Same issue here on 0.4.x. Would love to get this working!
+1 Same issue here too, can't run more than 1 worker without this plugin. Tried supervisord but runs only 1 worker.
Same issue here.
Noob question: how do I remove shoreman from dokku in this scenario? "dokku plugin uninstall shoreman" is not working... Thanks :-)
Most likely rm -r /var/lib/dokku/plugins/dokku-shoreman
, assuming that's where your plugin folder is, and then redeploy.
Thanks. Ran
rm -r /var/lib/dokku/plugins/available/shoreman
and now 'dokku plugin' shows a nice clean list again. However, when I want to deploy I get this warning:
remote: 2015/11/23 17:08:24 open /var/lib/dokku/plugins/available/shoreman/plugin.toml: no such file or directory
and the deploy fails with this message:
remote: Error response from daemon: Cannot kill container a1ef2537264fe871d97faa8741b77e4fbfe97fc12a76f727910f665c3d1dbb40: notrunning: Container a1ef2537264fe871d97faa8741b77e4fbfe97fc12a76f727910f665c3d1dbb40 is not running
remote: Error: failed to kill containers: [a1ef2537264fe871d97faa8741b77e4fbfe97fc12a76f727910f665c3d1dbb40]
Ideas? :-)
Thanks for your time!
Hi @Corstiaan84
have you checked if there is a symlink on /var/lib/dokku/plugins/enabled
?
Thanks
Hi @pmvieira :-). Noob alert! How do I check that and why is it important? I would like to learn more about this.
@Corstiaan84 do an ls -lha /var/lib/dokku/plugins/enabled
There are two directories inside /var/lib/dokku/plugins/ : available and enabled.
"available" contains every plugin that was installed and not yet uninstalled; "enabled" contains all plugins that are being used. Each plugin that is being used is actually just a "shortcut" pointing to a another directory.
So, if you manually uninstalled shoreman, chances are that there is a symlink (AKA a shortcut) pointing somewhere else, and dokku is looking for it but finding nothing.
Have a look and if there is a shoreman symlink there, delete it.
Thanks. Worked :-).
@pmvieira I've noticed that you've done a fork of the branch...works with dokku 0.4.x ? I've tried but seems not load correctly the workers...
@riccardoa i just had a quick shot at it, but found the same issue and didn't have time to work on it. If I manage to get it working on my fork I'll submit a PR
+1
@pmvieira Honestly I've then tried to run the worker like it's explain here: http://progrium.viewdocs.io/dokku/process-management/ and it works perfectly! so it's a bit useless use something like shoreman! (at least in my case where I've only web and worker)
@riccardoa Could you provide some insights into the steps/config/code you used to get it working? Perhaps create a gist?
@riccardoa I agree with you, if that's your scenario then what you mentioned is the best approach IMHO and me/we are using it in some projects. However, if you want to run non-standard process types, shoreman is indeed handy.
Anyway, I just submited a PR since I believe I was able to fix it for Dokku V4 CC: @statianzo
:+1: