Bamboo fails in starting up
Asked by Fbusc:

After Bamboo upgrade from 5.10.8 to 6.1.4, Bamboo fails with the following error message. It is not due to issue permission of files(all files have the correct permission), I cannot understand what is the cause of the error and how to fix it.

![image.png](/t5/image/serverpage/image-id/22421i90FB680A81E1EC03/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Yogesh Mude
body: Hi [@Fbusc](/t5/user/viewprofilepage/user-id/1182855),

If you see in the error log the plugin module is not able to initiate please check if the JDK got changed on your machine and if the correct JDK gets picked up. Do you have your set up `JAVA_HOME`?

comments: author: Fbusc
body: Hi [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678), I 've checked both JDK and JAVA_HOME variable. Both of them are correctly setup, but I continue to receive the same error message


author: Fbusc
body: Hi [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678) here are the logs![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/22425i0414CEE51784B165/image-size/large?v=v2&px=999 "image.png")


author: Fbusc
body: Here are the logs

2018-05-18 14:08:22,177 WARN \[15-UpgradeTaskBackgroundThread:pool-24-thread-1\] \[UpgradeTask51406UseNewXmlFormatForRepositories\] Could not find plugin com.atlassian.bamboo.plugins.stash.atlassian-bamboo-plugin-stash:stash-rep  
2018-05-18 14:08:22,181 ERROR \[15-UpgradeTaskBackgroundThread:pool-24-thread-1\] \[BambooPluginUtils\] Unable to instantiate module com.atlassian.bamboo.plugin.descriptor.WebRepositoryViewerModuleDescriptorImpl  
java.lang.NullPointerException: Plugin container accessor is null. Plugin: com.atlassian.bamboo.plugins.stash.atlassian-bamboo-plugin-stash. Module name: com.atlassian.bamboo.plugins.stash.StashWebRepositoryViewer.  
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:250)  
at com.atlassian.plugin.module.ClassPrefixModuleFactory.createModule(ClassPrefixModuleFactory.java:32)  
at com.atlassian.plugin.module.PrefixDelegatingModuleFactory.createModule(PrefixDelegatingModuleFactory.java:88)  
at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.createModule(AbstractBambooModuleDescriptor.java:26)  
at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.access$000(AbstractBambooModuleDescriptor.java:17)  
at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor$2.call(AbstractBambooModuleDescriptor.java:91)  
at com.atlassian.bamboo.plugin.BambooPluginUtils.callUnsafeCode(BambooPluginUtils.java:53)  
at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.getModule(AbstractBambooModuleDescriptor.java:99)  
at com.atlassian.bamboo.webrepository.WebRepositoryViewerManagerImpl.getNewWebRepositoryViewerInstance(WebRepositoryViewerManagerImpl.java:49)  
at com.atlassian.bamboo.upgrade.tasks.v5_14.UpgradeTask51406UseNewXmlFormatForRepositories.getNewConfiguration(UpgradeTask51406UseNewXmlFormatForRepositories.java:106)  
at com.atlassian.bamboo.upgrade.tasks.v5_14.UpgradeTask51406UseNewXmlFormatForRepositories.convertXmlData(UpgradeTask51406UseNewXmlFormatForRepositories.java:141)  
at com.atlassian.bamboo.upgrade.tasks.v5_14.UpgradeTask51406UseNewXmlFormatForRepositories.lambda$doUpgrade$0(UpgradeTask51406UseNewXmlFormatForRepositories.java:66)  
at org.hibernate.jdbc.WorkExecutor.executeWork(WorkExecutor.java:37)  
at org.hibernate.internal.SessionImpl$1.accept(SessionImpl.java:2321)  
at org.hibernate.internal.SessionImpl$1.accept(SessionImpl.java:2318)  
at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.coordinateWork(JdbcCoordinatorImpl.java:314)  
at org.hibernate.internal.SessionImpl.doWork(SessionImpl.java:2340)  
at org.hibernate.internal.SessionImpl.doWork(SessionImpl.java:2325)  
at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate$2.doInHibernate(BambooTransactionHibernateTemplate.java:54)  
at org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:359)  
at org.springframework.orm.hibernate5.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:326)  
at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate$1.doInTransaction(BambooTransactionHibernateTemplate.java:43)  
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)  
at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.execute(BambooTransactionHibernateTemplate.java:35)  
at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.execute(BambooTransactionHibernateTemplate.java:40)  
at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.doWork(BambooTransactionHibernateTemplate.java:50)  
at com.atlassian.bamboo.upgrade.tasks.v5_14.UpgradeTask51406UseNewXmlFormatForRepositories.doUpgrade(UpgradeTask51406UseNewXmlFormatForRepositories.java:63)  
at com.atlassian.bamboo.upgrade.AbstractUpgradeManager.runUpgradeTask(AbstractUpgradeManager.java:175)  
at com.atlassian.bamboo.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:99)  
at com.atlassian.bamboo.upgrade.UpgradeLauncher.lambda$upgradeAndStartBamboo$0(UpgradeLauncher.java:104)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:47)  
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:745)  
2018-05-18 14:08:22,183 ERROR \[15-UpgradeTaskBackgroundThread:pool-24-thread-1\] \[AbstractUpgradeManager\] java.lang.NullPointerException: Plugin container accessor is null. Plugin: com.atlassian.bamboo.plugins.stash.atlassian-bamboo-plugin-stash. Module name: com.atlassian.bamboo.plugins.stash.StashWebRepositoryViewer.  
java.lang.NullPointerException: Plugin container accessor is null. Plugin: com.atlassian.bamboo.plugins.stash.atlassian-bamboo-plugin-stash. Module name: com.atlassian.bamboo.plugins.stash.StashWebRepositoryViewer.  
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:250)  
at com.atlassian.plugin.module.ClassPrefixModuleFactory.createModule(ClassPrefixModuleFactory.java:32)  
at com.atlassian.plugin.module.PrefixDelegatingModuleFactory.createModule(PrefixDelegatingModuleFactory.java:88)  
at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.createModule(AbstractBambooModuleDescriptor.java:26)  
at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.access$000(AbstractBambooModuleDescriptor.java:17)


author: Yogesh Mude
body: HI [@Fbusc](/t5/user/viewprofilepage/user-id/1182855),

Might be the plugin has not been loaded while starting up the Bamboo server.

for more details about the error please see the bamboo server logs and attach the error log here.