I'm a bit stuck with having the elastic agent not executing my build plans on the Ec2 instance that I have set up. At the moment Bamboo reports the elastic agent on the instance as pending and doesn't transition from this state.
I have created a custom AMI for Windows Server 2012, this custom instance had the Ec2Config modified the regenerate the password -- meaning that I can RDP onto the instance that Bamboo starts.
I have SSH, RDP and some other port open that I can't identify on the elasticbamboo security group (Port 26224, presumably a Bamboo thing).
The `Pending` state also means that my build-request remains in the queue waiting for an instance.
Any ideas or suggestions? Can also provide more information upon request.
More Info:
I have setup the elastic agent on the windows server; added required rule in the firewall, created a bamboo user and had it own the agent.bat task.
It runs OK on the server AFAIK (scheduler says 'Running'). One oddity is that I can't seem to locate the .out file that I expected to be created in %USERPROFILE% for the bamboo user. This makes me think I'm still doing something wrong.
Did you follow this guide: https://confluence.atlassian.com/display/BAMBOO/Creating+a+custom+elastic+image+-+Windows ?
Hey Przemek,
I hadn't followed that guide before, in fact it's the first time I've seen it so it was a huge help. I've followed the instructions and Bamboo is still not kicking off my build.
I've added some info to the original question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've just realised I somehow ended up with an instance that doesn't have the ant/maven dependencies on the server. Are these required to have the elastic agent behave as expected?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to make sure the capabilities of that instance match requirements of your job. What does Administration/Agent Matrix show ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The matrix shows the instance is capable of building. I found the issue, my JAVA_HOME path was not set correctly (copy/paste error). Utlimately the agent never started as a result. The previous link was helpful to getting me there in the end.
Thanks, Przemek!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's a fault in Bamboo's default Windows AMI creation.
I've provided a solution here: http://fullstack.info/running-bamboo-ci-server-remote-agent-on-windows-server-cloud/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.