Agent does not detect capability
Hello Hutuleac,
I am trying to use Ansible Deploy for Bamboo plugin. As per documentation, ansible commands should be in PATH for agent to detect.
I have my bamboo server and ansible on the same box. I am able to execute ansible and ansible-playbook commands from the machine. But my default bamboo agent (resides on bamboo server), does not detect it.
I have attached screenshots for more understanding.
Comments (14)
-
repo owner -
repo owner - changed status to resolved
Capability was detected only in /bin not entire path, added a small class to scan OS path and look for it.
-
Account Deactivated reporter Thank you Julius for quickly working on this.
I still face the same issue for some reason.
- I updated the add-on but get the same issue, when adding an ansible task or ansible playbook task in my deployment task.
- I also added symlink for ansible and ansible-playbook under /bin/
For more information,
- I am using linux
- installed ansible using pip
- installed bamboo with tar.gz - version 5.12.3.1
-
repo owner Hi Hardik,
can you go under Server Capabilities and trigger a detection from there and check if the logs are having any exception.
I just deleted my capabilities and triggered again detection, they popped right back without any issues.
Best regards, Julius
-
repo owner - changed status to open
-
Account Deactivated reporter Hello Julius,
I installed remote agent on the same bamboo server. Remote agent shows this capability. It is just default bamboo agent, which is not detecting it.
-
repo owner Very strange, as it is just a single piece of code running in both cases. I know on agent capabilities are detected on startup, on server you need to click detect capabilities under system settings.
Personally I am running 10 local agents and 10 remote, I can see the capability both on local and remote agents. I have been using the same plugin since version 5.10, now I am on 5.12.3.1.
I suspect is a local issue on your machine, maybe some exception that is slipping, did you check maybe your server catalina.out log (especially after you click detect capabilities under administration) ?
Julius
-
repo owner I had a look on my server also, I am starting it using systemd which is providing only few entries in PATH variable (for me PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
Look on you server under System Information maybe you have similar PATH - /admin/systemInfo.action
Julius
-
repo owner - changed status to resolved
-
Account Deactivated reporter I do have in the all of the above in the path. You can check my PathfromBamboo screenshot attached while creating this issue. Thanks
-
repo owner To me this starts to look as a Bamboo bug more and more. Did you try the detect server capabilities button ?
If yes, all I can do is to add a ton of debug messages and we see if everything goes through.
Julius
-
repo owner In case your Bamboo is still refusing to auto detect capabilities just add it under server capabilities - executable.
Julius
-
repo owner Hi Hardik,
did you find anything more on your server ?
Best regards, Julius
-
Account Deactivated reporter Yep - adding server capabilities helped. It worked for default agent as well. Thanks for all your help. :)
- Log in to comment
On it Hardik,
Best Regards, Julius