Bamboo getOrphanedTrustCertificates

I've just installed Bamboo server version (5.7.2, 5.6.2) and I'm trying to create first build plan, but I have an error on Application (Stash) linking step (page: /plugins/servlet/applinks/listApplicationLinks )

Invocation of method 'getOrphanedTrustCertificates' in  class com.atlassian.applinks.ui.velocity.ListApplicationLinksContext threw exception java.lang.IllegalStateException: adminConfig.currentApplication is not properly initialized! at com/atlassian/applinks/ui/admin/common_header.vm[line 11, column 20]

These docs didn't help. 

I tried to reinstall Bamboo and I haven't "orphaned" linked application on this server.

Any ideas? 

2 answers

1 accepted

2 votes

Hello Evgeniy,

Thank you for your question.

It seems you are missing to configure /etc/hosts (Linux) or C:\Windows\System32\drivers\etc\hosts (Windows) and due to that you are experiencing this issue.

Could you please run the following command from a Terminal, please:

# check your $HOSTNAME

# try to ping $HOSTNAME

If it returns "ping: cannot resolve <hostname>: Unknown host" then add an entry into your /etc/hosts file. For that edit /etc/hosts file and add following:        &lt;hostname&gt;

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.

Kind regards,
Rafael P. Sperafico
Atlassian Support

It helped, thank you.

1 vote

Hi Evgeniy,

Can you please run these queries:

SELECT * FROM trusted_apps_IPS;
SELECT * FROM trusted_apps_URLS;
SELECT * FROM trusted_apps;
SELECT * FROM bandana WHERE BANDANA_key LIKE '%applink%';
SELECT * FROM bandana WHERE BANDANA_key LIKE '%com.atlassian.oauth%';

If any rows are returned, it probably means that changes haven't been committed. In this case, please run those queries again:

DELETE FROM trusted_apps_IPS;
DELETE FROM trusted_apps_URLS;
DELETE FROM trusted_apps;
DELETE FROM bandana WHERE BANDANA_key LIKE '%applink%';
DELETE FROM bandana WHERE BANDANA_key LIKE '%com.atlassian.oauth%';

Then, open BAMBOO_HOME/xml-data/configuration/administration.xml and delete the entire <currentApplication> tag.

Then, restart the Bamboo instance and try to create the application link again.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,
Felipe Kraemer

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,586 views 0 6
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you