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

rd-acl not running on docker version: /home/greg/.sdkman/candidates/java/8.0.172-zulu/jre/bin/java: No such file or directory #4436

Closed
aparedero opened this issue Jan 30, 2019 · 2 comments

Comments

@aparedero
Copy link

commented Jan 30, 2019

Describe the bug
Rundeck Docker version has its tools not working due to a wrong definition somewhere
My Rundeck detail

  • Rundeck version: 3.0.12
  • install type: docker (With kubernetes)

To Reproduce
Steps to reproduce the behavior:

  1. Execute /home/rundeck/tools/bin/rd-acl
rundeck@statefulset-rundeck-0:~/tools/bin$ /home/rundeck/tools/bin/rd-acl
ls: cannot access '/tmp/waka/tools/lib/*.jar': No such file or directory
/home/rundeck/tools/bin/rd-acl: line 38: /home/greg/.sdkman/candidates/java/8.0.172-zulu/jre/bin/java: No such file or directory

Expected behavior
rd-acl working

@ProTip

This comment has been minimized.

Copy link
Contributor

commented Jan 31, 2019

Hi @aparedero ,

That's my filesystem! This is being caused by some infrequently used configs that were setup with the wrong environment settings.

Would you be able to check the Docker image rundeck/ci:feature-docker-rd-acl and see if that works as expected for you?

Thanks!

@aparedero

This comment has been minimized.

Copy link
Author

commented Jan 31, 2019

@ProTip

Sure. That works as expected Here is the log. I should either add an environment variable in PATH enabling rd-acl or creating a symbolic link into /usr/bin:

docker pull rundeck/ci:feature-docker-rd-acl
[...]
Digest: sha256:e10b5dca14580e8fb842a501da00555a24b25c94d0ef3e77aa0a94ae461dc0cc
Status: Downloaded newer image for rundeck/ci:feature-docker-rd-acl

Running

docker run -d rundeck/ci:feature-docker-rd-acl
52104b1af1ea542ad04d51dacca76806653a99a85e33480e51c77cc33757b391

Checking logs...

 $ docker logs -f 52104b1af1ea542ad04d51dacca76806653a99a85e33480e51c77cc33757b39
[...]
2019-01-31 08:09:53.929  INFO --- [           main] rundeckapp.BootStrap                     : Rundeck is ACTIVE: executions can be run.
2019-01-31 08:09:54.509  WARN --- [           main] rundeckapp.BootStrap                     : [Development Mode] Usage of H2 database is recommended only for development and testing
2019-01-31 08:09:54.520  INFO --- [           main] rundeckapp.BootStrap                     : Rundeck startup finished in 1429ms
Grails application running at http://0.0.0.0:4440 in environment: production

Accessing... tool working

$ docker exec -ti 52104b1af1ea bash
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

rundeck@52104b1af1ea:~$ cd tools/bin
rundeck@52104b1af1ea:~/tools/bin$ ls
rd-acl  rd-acl.bat

rundeck@52104b1af1ea:~/tools/bin$ ./rd-acl
Command expected. Choose one of: [test, create, list, validate]

rundeck@52104b1af1ea:~/tools/bin$ ./rd-acl list
Using configured Rundeck etc dir: /home/rundeck/etc
-g/--groups <group,...> or -u/--user <user,...> are required
  -u user1,user2... 
  -g group1,group2... 
    Groups control access for a set of users, and correspond
    to authorization roles.

@ProTip ProTip closed this in #4444 Feb 1, 2019

@ProTip ProTip added this to the 3.0.14 milestone Feb 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.