Repositories missing from the Linked repositories page inside Bamboo

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Repositories suddenly missing from the Linked repositories page ($BAMBOO_BASE_URL/admin/configureLinkedRepositories!doDefault.action) inside Bamboo even though they still exist inside the database. The Linked repositories page shows up empty with a "No repository configured" message.

Diagnosis

If the list of repositories inside the Linked repositories page is empty look for the presence of NullPointerException in the <Bamboo server home directory>/logs/atlassian-bamboo.log files, such as the following:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2021-05-24 06:22:34,783 ERROR [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-54] [AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.stash.plugin.remote.event.StashBranchChangedRemoteEvent@68b719d6[branchName=master,reposito ryProject=CSS,repositorySlug=c-029-trigger-repo,committer=fktd7id,sourceId=3817a292-a5ca-3d31-8e6c-78ce507f0da4,sourceUrl=https://testdev.video.com/bitbucket]] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.bamboo.plugins.stash.e vents.BranchChangedEventListener.onBranchChangedEvent(com.atlassian.stash.plugin.remote.event.StashBranchChangedRemoteEvent), listener=com.atlassian.bamboo.plugins.stash.events.BranchChangedEventListener@6e6ffe53}] java.lang.RuntimeException: Listener: com.atlassian.bamboo.plugins.stash.events.BranchChangedEventListener event: com.atlassian.stash.plugin.remote.event.StashBranchChangedRemoteEvent at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:52) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.lambda$null$0(AsynchronousAbleEventDispatcher.java:37) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException at com.atlassian.bamboo.plugins.stash.events.RepositoryFinder.lambda$findBitbucketServerRepositories$1(RepositoryFinder.java:56) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)

Cause

The repository cache used by Bamboo to display the list of repositories inside the Linked Repositories page might be corrupted causing the NullPointerException as well as the missing repositories/ empty page.

Solution

The solution, in this case, would be to restart Bamboo. A restart of the application will flush the repository cache.  This should be enough to bring the repositories back inside the Linked Repositories page.

Updated on February 25, 2025

Still need help?

The Atlassian Community is here for you.