dokku-shoreman icon indicating copy to clipboard operation
dokku-shoreman copied to clipboard

ERROR: open /var/lib/dokku/plugins/available/shoreman/plugin.toml: no such file or directory

Open Xiangshen-Meng opened this issue 8 years ago • 20 comments

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

Xiangshen-Meng avatar Oct 14 '15 04:10 Xiangshen-Meng

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.

Xiangshen-Meng avatar Oct 14 '15 05:10 Xiangshen-Meng

Looks like dokku-shoreman isn't compatible with 0.4.x at the moment. Thanks for filing the issue.

statianzo avatar Oct 14 '15 14:10 statianzo

:smiley:

Xiangshen-Meng avatar Oct 16 '15 10:10 Xiangshen-Meng

Same issue here on 0.4.x. Would love to get this working!

sman591 avatar Nov 12 '15 03:11 sman591

+1 Same issue here too, can't run more than 1 worker without this plugin. Tried supervisord but runs only 1 worker.

hako avatar Nov 18 '15 02:11 hako

Same issue here.

letalumil avatar Nov 19 '15 21:11 letalumil

Noob question: how do I remove shoreman from dokku in this scenario? "dokku plugin uninstall shoreman" is not working... Thanks :-)

Corstiaan84 avatar Nov 23 '15 16:11 Corstiaan84

Most likely rm -r /var/lib/dokku/plugins/dokku-shoreman, assuming that's where your plugin folder is, and then redeploy.

statianzo avatar Nov 23 '15 18:11 statianzo

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!

Corstiaan84 avatar Nov 23 '15 22:11 Corstiaan84

Hi @Corstiaan84

have you checked if there is a symlink on /var/lib/dokku/plugins/enabled ?

Thanks

pmvieira avatar Nov 25 '15 17:11 pmvieira

Hi @pmvieira :-). Noob alert! How do I check that and why is it important? I would like to learn more about this.

Corstiaan84 avatar Nov 25 '15 19:11 Corstiaan84

@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.

pmvieira avatar Nov 26 '15 08:11 pmvieira

Thanks. Worked :-).

Corstiaan84 avatar Nov 26 '15 13:11 Corstiaan84

@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...

riccardoio avatar Nov 26 '15 14:11 riccardoio

@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

pmvieira avatar Nov 26 '15 15:11 pmvieira

+1

Corstiaan84 avatar Nov 26 '15 15:11 Corstiaan84

@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)

riccardoio avatar Nov 26 '15 15:11 riccardoio

@riccardoa Could you provide some insights into the steps/config/code you used to get it working? Perhaps create a gist?

Corstiaan84 avatar Nov 26 '15 15:11 Corstiaan84

@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

pmvieira avatar Nov 26 '15 16:11 pmvieira

:+1:

riccardoio avatar Nov 26 '15 17:11 riccardoio