I'm running the 5.7.2 Bamboo and stash 3.6, and everything was working great with Stash triggering builds in Bamboo on check in. But, I recently turned on SSL on the Tomcat servers for all of the Atlassian products we have, and Stash triggered builds don't work anymore. I can poll fine, but what used to work now does not. I have turned on logging but I don't see any obvious errors that would point me in the right direction. Anyone have any ideas?
Thank you for your question.
As Daniel Wester have mentioned, it is most likely the protocol change has not being update in the application links and due to that, the requests are not going through.
I would suggest you on:
In order to create the application links, you should be using the URL used to hit the application (Stash, Bamboo) in your web browser.
Please, notice the very same URL should be the one set up as Base URL within the Application.
When using Bamboo 5.6+ and Stash 3.2+ newly created application link with default settings:
In Stash, please make sure you have "Stash administration >> Settings >> Server Settings >> SSH access" configured as per following:
[x] SSH enabled [x] SSH access keys enabled SSH Port: 7999
In Bamboo, please do not forget to Define a new version control capability.
please, run SSLPoke from Bamboo box against Stash box and vice-versa
# from Stash box root@hostname:~$ java SSLPoke bamboo.base.url 443 Successfully connected # from Bamboo box root@hostname:~$ java SSLPoke stash.base.url 443 Successfully connected
please, remove and recreate the application link between Bamboo and Stash
enable debug logging in Stash by going to the Stash admin area, choose Logging and Profiling (under 'Support') and select Enable debug logging.
enable debugging information by adding the following under "Bamboo administration >> System >> Log settings >> Classpath"
com.atlassian.bamboo.plan.branch, type: ALL com.atlassian.bamboo.build.strategy, type: DEBUG com.atlassian.bamboo.plugins.stash.events, type: DEBUG
update the log level to "DEBUG" on the following:
com.atlassian.bamboo.plugins.ssh, type: WARN com.atlassian.bamboo.ssh, type: WARN
and add the following:
com.atlassian.bamboo.plugins.git.GitRepository, type: DEBUG
go to your repository settings in Bamboo and hit Save
run a new build
The above will help you on troubleshooting
If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.
Thank you for your understanding.
Rafael P. Sperafico
Hi Rafael, Thanks for the help. The application links seem to be ok - but I'll delete them and redo them again, but the defaults have me puzzled. I have Trusted Apps Authentication ENABLED and 2-legged OAuth ENABLED. That was the way we used to have it. Is that not right? I'll try out the new logging and see what I can see. Hopefully this can point me somewhere.
Hello Robert, Please, open a support ticket and attach the following: - please, attach a Stash Support Zip "Stash Administration >> Atlassian Support Tools >> Support Zip >> Create" - please, create and attach a new Bamboo Support Zip "Bamboo Administration >> System >> Atlassian Support Tools >> Support Zip >> Create" - please, attach "<bamboo-install>/conf/server.xml" - please, attach build log - please, attach screenshot from SSLPoke command — Kind regards, Rafael P. Sperafico Atlassian Support
Sounds like there's an issue accessing th rest end points on Stash. Are you seeing any errors in the logs in either Stash OR Bamboo? Are you using self-signed certs?
Did you update the application links urls? Do you have redirects in place for the http protocol to https?
Hi Daniel, I don't see any errors in the log files at all - I wish I did! We are not using self-signed certs - we have a wildcard domain cert signed by a CA. I updated all of the application links (had to since the URL changed). I do have redirects in place for all apps except Crucible. Bamboo can see Stash and all of the repos that Stash has. Polling does work, but not automatic triggering.
Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs