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

plugin not found: plugin cache dir has wrong permissions #565

Closed
gschueler opened this issue Oct 14, 2013 · 5 comments
Closed

plugin not found: plugin cache dir has wrong permissions #565

gschueler opened this issue Oct 14, 2013 · 5 comments
Labels
Milestone

Comments

@gschueler
Copy link
Member

If the plugin cache dir has incorrect permissions (preventing write or read to the rundeck server user), then Rundeck will be unable to load plugins, and may show an error that a plugin was not found.

solution: set correct ownership and read/write permissions on the plugin cache directory. this is /var/lib/rundeck/libext/cache for rpm/deb installs, or $RDECK_BASE/libext/cache for launcher.

reproduce: ?

@thorrsson
Copy link

It looks like some of the /var/lib/rundeck/ contents come out of the .deb with the wrong owner, which caused this problem for me.
The .deb was installed with sudo, and afterwards /var/lib/rundeck/ looks like:

/var/lib/rundeck# ls -l
total 32
drwxr-xr-x 2 root    root    4096 Oct 10 23:23 bootstrap
drwxr-xr-x 2 root    root    4096 Oct 10 23:23 cli
drwxr-x--- 2 rundeck rundeck 4096 Oct 14 21:48 data
drwxr-xr-x 3 root    root    4096 Oct 10 23:20 exp
drwxr-xr-x 3 root    root    4096 Oct 14 21:29 libext
drwxr-s--x 3 rundeck adm     4096 Oct 10 23:28 logs
drwxr-x--- 3 rundeck rundeck 4096 Oct 10 23:20 var
drwxr-x--- 3 rundeck rundeck 4096 Oct 10 23:24 work

@CommanderMoto
Copy link

Pull request to fix this has been submitted as #566

@kcd83
Copy link

kcd83 commented May 20, 2014

Seeing this in rundeck 2.0 on centos with the rpm install. Just the cache directory.

@gschueler gschueler modified the milestones: 2.1.2, 1.6.3 May 21, 2014
@gschueler
Copy link
Member Author

if root runs a cli tool command, like rd-project -a create, the cache dirs may be created owned by root.

@kcd83
Copy link

kcd83 commented May 23, 2014

Ah of course, I have seen dispatch create a resources.xml as root too.

Would you expect users to run the cli logged in as rundeck though? Not really an issue for me it is only chef using this so I'll set it to run as rundeck.

As an aside I notice the rpm install doesn't create the usual user profile, e.g no sensible bash prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants