Repositories missing from the Linked repositories page inside Bamboo

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

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:

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.




Last modified on Nov 24, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.