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

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

Open
Xiangshen-Meng opened this issue Oct 14, 2015 · 20 comments

Comments

@Xiangshen-Meng
Copy link

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
Copy link
Author

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.

@statianzo
Copy link
Owner

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

@Xiangshen-Meng
Copy link
Author

😃

@sman591
Copy link

sman591 commented Nov 12, 2015

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

@hako
Copy link

hako commented Nov 18, 2015

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

@letalumil
Copy link

Same issue here.

@Corstiaan84
Copy link

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

@statianzo
Copy link
Owner

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

@Corstiaan84
Copy link

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!

@pmvieira
Copy link
Contributor

Hi @Corstiaan84

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

Thanks

@Corstiaan84
Copy link

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

@pmvieira
Copy link
Contributor

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

@Corstiaan84
Copy link

Thanks. Worked :-).

@riccardoio
Copy link

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

@pmvieira
Copy link
Contributor

@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

@Corstiaan84
Copy link

+1

@riccardoio
Copy link

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

@Corstiaan84
Copy link

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

@pmvieira
Copy link
Contributor

@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

@riccardoio
Copy link

👍

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

8 participants