I am running Bamboo (5.7.0) and Stash (3.4.1) on the same machine. I have set up applications links and have enabled "Trusted Applications", "OAuth", and "Basic Access" in both Outgoing Authentication and Incoming Authentication. I have a linked a Stash repository in Bamboo. In my Bamboo plan, my first task is "Source Code Checkout" and I reference the linked repository. Here's part of the stack trace. Any ideas?
com.atlassian.bamboo.repository.RepositoryException: java.lang.RuntimeException: com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://email@example.com:59645/house/myapp.git failed with code 128. Working directory was [.]., stderr: Error while opening SSH session stdout: [Warning: Permanently added '[127.0.0.1]:59645' (RSA) to the list of known hosts., BAMBOO-SSH-PROXY: [While connecting to [firstname.lastname@example.org/184.108.40.206:7999]: Error while opening SSH session: org.apache.sshd.common.RuntimeSshException: Failed to get the session.], fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.]
Thank you for your question.
Based on the information you have provided regarding Application Links, you have set them up using different authentication methods so every time a request is made the same not necessarily gets interpreted in the same way on the other end.
When using Bamboo 5.6+ and Stash 3.2+ we would suggest on creating application link with default settings, so could you remove the existent one and recreate it as per following:
will result in application link created with:
Important to notice the following should be same used to access the application from your web browser.
Hitting Bamboo from your web browser: http://bamboo.base.url
Bamboo administration >> System >> General configuration >> Base URL (http://bamboo.base.url)
Stash administration >> Settings >> Server Settings >> Base URL (http://stash.base.url)
In case you continue on experiencing issues, I would suggest you on raising a Support ticket and adding this Question to the tickets description along with a Bamboo Support Zip.
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
Thanks Rafael. I deleted the application link and recreated it. I also verified that the settings you mentioned were correct. I also needed to open up port 7999 on my hardware firewall as well as my server firewall, even though my Bamboo instance and Stash instance run on the same machine.
Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...
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