Bambo Error 500 after start service
Asked by Gabriel Farias:

Here is the log  

<br />

2021-03-22 09:37:04,385 INFO \[localhost-startStop-1\] \[BootstrapLoaderListener\] Starting BootstrapLoaderListener  
2021-03-22 09:37:04,385 INFO \[localhost-startStop-1\] \[lifecycle\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2021-03-22 09:37:04,385 INFO \[localhost-startStop-1\] \[lifecycle\] \* Bamboo is starting up \*  
2021-03-22 09:37:04,385 INFO \[localhost-startStop-1\] \[lifecycle\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2021-03-22 09:37:04,385 INFO \[localhost-startStop-1\] \[ServletContextHolder\] Setting servlet context: Bamboo  
2021-03-22 09:37:04,541 INFO \[localhost-startStop-1\] \[lifecycle\] atlassian.org.osgi.framework.bootdelegation set to javax.servlet,javax.servlet.\*,sun.\*,com.sun.\*,org.w3c.dom.\*,org.apache.xerces.\*,org.jboss.byteman.\*,jdk.internal.reflect  
2021-03-22 09:37:04,760 INFO \[localhost-startStop-1\] \[BootstrapLoaderListener\] App classloader is the same as web app classloader  
2021-03-22 09:37:06,463 INFO \[localhost-startStop-1\] \[lifecycle\] Starting Bamboo 7.2.3 (build #70210 Fri Mar 05 07:21:30 BRT 2021) using Java 1.8.0_241 from Oracle Corporation  
2021-03-22 09:37:06,463 INFO \[localhost-startStop-1\] \[lifecycle\] Real path of servlet context: C:\\Bamboo\\atlassian-bamboo\\  
2021-03-22 09:37:06,698 INFO \[localhost-startStop-1\] \[lifecycle\] Bamboo home directory: C:\\Users\\gabriel.farias\\bamboo-home  
2021-03-22 09:37:06,698 INFO \[localhost-startStop-1\] \[lifecycle\] Default charset: windows-1252, file name ecoding: Cp1252  
2021-03-22 09:37:06,729 INFO \[localhost-startStop-1\] \[UpgradeLauncher\] Upgrades not performed since the application has not been set up yet.  
2021-03-22 09:37:06,760 INFO \[localhost-startStop-1\] \[CompressingFilter\] CompressingFilter has initialized  
2021-03-22 09:37:07,901 INFO \[localhost-startStop-1\] \[SpringObjectFactoryProxy\] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy  
2021-03-22 09:37:09,244 INFO \[localhost-startStop-1\] \[Dispatchers\] Dispatcher org.apache.struts2.dispatcher.Dispatcher initialised  
2021-03-22 09:37:09,307 INFO \[localhost-startStop-1\] \[SpringObjectFactoryProxy\] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy  
2021-03-22 09:37:10,244 INFO \[localhost-startStop-1\] \[SpringObjectFactoryProxy\] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy  
2021-03-22 09:37:10,369 INFO \[localhost-startStop-1\] \[Dispatchers\] Dispatcher org.apache.struts2.dispatcher.Dispatcher initialised  
2021-03-22 09:37:10,448 INFO \[localhost-startStop-1\] \[SpringObjectFactoryProxy\] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy  
2021-03-22 09:37:41,651 INFO \[http-nio-8085-exec-1\] \[JohnsonFilter\] The application is not yet setup. Redirecting request from '/start.action' to '/bootstrap/selectSetupStep.action'  
2021-03-22 09:37:42,135 INFO \[http-nio-8085-exec-1\] \[SelectSetupStepAction\] Current setup step is /setup/setupDefaultDatabase.action  
2021-03-22 09:37:42,229 INFO \[setupDefaultDatabaseBackgroundThread\] \[SetupDefaultsAction\] Setting up the embedded database...  
2021-03-22 09:37:42,244 WARN \[http-nio-8085-exec-2\] \[TokenHelper\] Could not find token mapped to token name: token  
2021-03-22 09:37:42,322 INFO \[setupDefaultDatabaseBackgroundThread\] \[SetupUtilityBean\] Setting up database: h2  
2021-03-22 09:37:42,322 INFO \[setupDefaultDatabaseBackgroundThread\] \[SetupUtilityBean\] Bootstrapping database: h2  
2021-03-22 09:37:42,322 INFO \[setupDefaultDatabaseBackgroundThread\] \[DefaultHibernateConfigurator\] Saving bootstrap configuration...  
2021-03-22 09:37:42,322 INFO \[setupDefaultDatabaseBackgroundThread\] \[DefaultHibernateConfigurator\] Refreshing Spring context...  
2021-03-22 09:37:47,050 WARN \[setupDefaultDatabaseBackgroundThread\] \[GenericTypeAwarePropertyDescriptor\] Invalid JavaBean property 'mappingResources' being accessed! Ambiguous write methods found next to actually used \[public void bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.setMappingResources(bucket.core.persistence.hibernate.MappingResources)\]: \[public void org.springframework.orm.hibernate5.LocalSessionFactoryBean.setMappingResources(java.lang.String\[\])\]  
2021-03-22 09:37:50,487 INFO \[setupDefaultDatabaseBackgroundThread\] \[HikariDataSource\] HikariPool-1 - Started.  
2021-03-22 09:37:53,206 INFO \[setupDefaultDatabaseBackgroundThread\] \[ResettableTableHiLoGenerator\] Registering exportables...  
2021-03-22 09:37:53,206 INFO \[setupDefaultDatabaseBackgroundThread\] \[ResettableTableHiLoGenerator\] Generator table: org.hibernate.mapping.Table(hibernate_unique_key)  
2021-03-22 09:37:54,519 WARN \[setupDefaultDatabaseBackgroundThread\] \[cache\] HHH90001006: Missing cache\[default-update-timestamps-region\] was created on-the-fly. The created cache will use a provider-specific default configuration: make sure you defined one. You can disable this warning by setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.  
2021-03-22 09:37:54,519 WARN \[setupDefaultDatabaseBackgroundThread\] \[cache\] HHH90001006: Missing cache\[default-query-results-region\] was created on-the-fly. The created cache will use a provider-specific default configuration: make sure you defined one. You can disable this warning by setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.  
2021-03-22 09:37:54,691 WARN \[setupDefaultDatabaseBackgroundThread\] \[cache\] HHH90001006: Missing cache\[bucket.user.propertyset.BucketPropertySetItem\] was created on-the-fly. The created cache will use a provider-specific default configuration: make sure you defined one. You can disable this warning by setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.  
2021-03-22 09:37:57,378 ERROR \[setupDefaultDatabaseBackgroundThread\] \[MetadataContext\] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.resultsummary.AbstractResultsSummary_#testClassResults; expected type : org.hibernate.metamodel.model.domain.internal.SetAttributeImpl; encountered type : javax.persistence.metamodel.ListAttribute  
2021-03-22 09:37:57,378 ERROR \[setupDefaultDatabaseBackgroundThread\] \[MetadataContext\] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl_#availabilityZones; expected type : org.hibernate.metamodel.model.domain.internal.SingularAttributeImpl; encountered type : javax.persistence.metamodel.CollectionAttribute  
2021-03-22 09:37:57,378 ERROR \[setupDefaultDatabaseBackgroundThread\] \[MetadataContext\] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl_#subnetIds; expected type : org.hibernate.metamodel.model.domain.internal.SingularAttributeImpl; encountered type : javax.persistence.metamodel.CollectionAttribute  
2021-03-22 09:37:57,409 ERROR \[setupDefaultDatabaseBackgroundThread\] \[MetadataContext\] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.project.DefaultProject_#allPlans; expected type : org.hibernate.metamodel.model.domain.internal.BagAttributeImpl; encountered type : javax.persistence.metamodel.ListAttribute  
2021-03-22 09:37:57,487 ERROR \[setupDefaultDatabaseBackgroundThread\] \[MetadataContext\] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.commit.CommitImpl_#files; expected type : org.hibernate.metamodel.model.domain.internal.SetAttributeImpl; encountered type : javax.persistence.metamodel.ListAttribute  
2021-03-22 09:37:57,534 ERROR \[setupDefaultDatabaseBackgroundThread\] \[MetadataContext\] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.resultsummary.tests.TestClassImpl_#testCases; expected type : org.hibernate.metamodel.model.domain.internal.SetAttributeImpl; encountered type : javax.persistence.metamodel.ListAttribute  
2021-03-22 09:38:01,065 INFO \[setupDefaultDatabaseBackgroundThread\] \[BrokerService\] Loaded the Bouncy Castle security provider at position: 11  
2021-03-22 09:38:01,472 INFO \[setupDefaultDatabaseBackgroundThread\] \[BrokerService\] Using Persistence Adapter: KahaDBPersistenceAdapter\[C:\\Users\\gabriel.farias\\bamboo-home\\jms-store\\bamboo\\KahaDB\]  
2021-03-22 09:38:01,909 INFO \[setupDefaultDatabaseBackgroundThread\] \[MessageDatabase\] Persistence store purged.  
2021-03-22 09:38:02,315 INFO \[setupDefaultDatabaseBackgroundThread\] \[PListStoreImpl\] PListStore:\[C:\\Users\\gabriel.farias\\bamboo-home\\jms-store\\bamboo\\tmp_storage\] started  
2021-03-22 09:38:02,503 INFO \[setupDefaultDatabaseBackgroundThread\] \[BrokerService\] Apache ActiveMQ 5.15.14 (bamboo, ID:abl-devhomolog-01-53037-1616416682331-0:1) is starting  
2021-03-22 09:38:02,503 INFO \[setupDefaultDatabaseBackgroundThread\] \[BrokerPluginSupport\] Broker Plugin org.apache.activemq.broker.util.TimeStampingBrokerPlugin started  
2021-03-22 09:38:02,503 INFO \[setupDefaultDatabaseBackgroundThread\] \[BrokerService\] Apache ActiveMQ 5.15.14 (bamboo, ID:abl-devhomolog-01-53037-1616416682331-0:1) started  
2021-03-22 09:38:02,503 INFO \[setupDefaultDatabaseBackgroundThread\] \[BrokerService\] For help or more information please see: <http://activemq.apache.org>  
2021-03-22 09:38:02,519 WARN \[setupDefaultDatabaseBackgroundThread\] \[BrokerService\] Store limit is 102400 mb (current store usage is 0 mb). The data directory: C:\\Users\\gabriel.farias\\bamboo-home\\jms-store\\bamboo\\KahaDB only has 28950 mb of usable space. - resetting to maximum available disk space: 28950 mb  
2021-03-22 09:38:02,519 WARN \[setupDefaultDatabaseBackgroundThread\] \[BrokerService\] Temporary Store limit is 51200 mb (current store usage is 0 mb). The data directory: C:\\Users\\gabriel.farias\\bamboo-home\\jms-store\\bamboo only has 28950 mb of usable space. - resetting to maximum available disk space: 28950 mb  
2021-03-22 09:38:02,565 INFO \[setupDefaultDatabaseBackgroundThread\] \[JmsSslManagementUtils\] Loading an existing key store from C:\\Users\\gabriel.farias\\bamboo-home\\xml-data\\configuration\\broker.ks  
2021-03-22 09:38:02,597 INFO \[setupDefaultDatabaseBackgroundThread\] \[JmsSslManagementUtils\] Keystore successfully loaded  
2021-03-22 09:38:06,409 INFO \[setupDefaultDatabaseBackgroundThread\] \[BambooActiveMQConnectionFactory\] Setting broker URL to 'vm://bamboo'  
2021-03-22 09:38:07,815 INFO \[setupDefaultDatabaseBackgroundThread\] \[BouncyCastleProviderUtils\] Bouncy Castle provider already present  
2021-03-22 09:38:10,253 WARN \[setupDefaultDatabaseBackgroundThread\] \[XmlWebApplicationContext\] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'decoratingErrorAccessor' defined in class path resource \[applicationContext.xml\]: Cannot resolve reference to bean 'decoratedErrorDetailsFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'decoratedErrorDetailsFactory' defined in class path resource \[applicationContext.xml\]: Cannot resolve reference to bean 'resultsSummaryManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resultsSummaryManager': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resultsSummaryManagerTarget' defined in class path resource \[applicationContextManagers.xml\]: Cannot resolve reference to bean 'buildResultsIndexer' while setting bean property 'buildResultsIndexer'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildResultsIndexer' defined in class path resource \[applicationContextManagers.xml\]: Cannot create inner bean 'com.atlassian.bamboo.index.buildresult.DefaultBuildResultsIndexer#323aee10' of type \[com.atlassian.bamboo.index.buildresult.DefaultBuildResultsIndexer\] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.index.buildresult.DefaultBuildResultsIndexer#323aee10' defined in class path resource \[applicationContextManagers.xml\]: Cannot resolve reference to bean 'buildResultLuceneConnection' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildResultLuceneConnection' defined in class path resource \[applicationContextManagers.xml\]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate \[com.atlassian.bamboo.index.LuceneConnectionImpl\]: Constructor threw exception; nested exception is com.atlassian.bonnie.LuceneException: java.nio.file.AccessDeniedException: C:\\Users\\gabriel.farias\\bamboo-home\\index\\results  
2021-03-22 09:38:10,253 INFO \[setupDefaultDatabaseBackgroundThread\] \[AgentManagerImpl\] Stopping all local agents...  
2021-03-22 09:38:10,284 INFO \[setupDefaultDatabaseBackgroundThread\] \[BrokerService\] Apache ActiveMQ 5.15.14 (bamboo, ID:abl-devhomolog-01-53037-1616416682331-0:1) is shutting down  
2021-03-22 09:38:10,300 INFO \[setupDefaultDatabaseBackgroundThread\] \[BrokerPluginSupport\] Broker Plugin org.apache.activemq.broker.util.TimeStampingBrokerPlugin stopped  
2021-03-22 09:38:10,300 INFO \[setupDefaultDatabaseBackgroundThread\] \[PListStoreImpl\] PListStore:\[C:\\Users\\gabriel.farias\\bamboo-home\\jms-store\\bamboo\\tmp_storage\] stopped  
2021-03-22 09:38:10,300 INFO \[setupDefaultDatabaseBackgroundThread\] \[KahaDBStore\] Stopping async queue tasks  
2021-03-22 09:38:10,300 INFO \[setupDefaultDatabaseBackgroundThread\] \[KahaDBStore\] Stopping async topic tasks  
2021-03-22 09:38:10,300 INFO \[setupDefaultDatabaseBackgroundThread\] \[KahaDBStore\] Stopped KahaDB  
2021-03-22 09:38:10,331 INFO \[setupDefaultDatabaseBackgroundThread\] \[BrokerService\] Apache ActiveMQ 5.15.14 (bamboo, ID:abl-devhomolog-01-53037-1616416682331-0:1) uptime 8.969 seconds  
2021-03-22 09:38:10,331 INFO \[setupDefaultDatabaseBackgroundThread\] \[BrokerService\] Apache ActiveMQ 5.15.14 (bamboo, ID:abl-devhomolog-01-53037-1616416682331-0:1) is shutdown  
2021-03-22 09:38:10,347 INFO \[setupDefaultDatabaseBackgroundThread\] \[HikariPool\] HikariPool-1 - Close initiated...  
2021-03-22 09:38:10,550 INFO \[setupDefaultDatabaseBackgroundThread\] \[HikariPool\] HikariPool-1 - Closed.  
2021-03-22 09:38:10,565 ERROR \[setupDefaultDatabaseBackgroundThread\] \[ContextLoader\] Context initialization failed  
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'decoratingErrorAccessor' defined in class path resource \[applicationContext.xml\]: Cannot resolve reference to bean 'decoratedErrorDetailsFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'decoratedErrorDetailsFactory' defined in class path resource \[applicationContext.xml\]: Cannot resolve reference to bean 'resultsSummaryManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resultsSummaryManager': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resultsSummaryManagerTarget' defined in class path resource \[applicationContextManagers.xml\]: Cannot resolve reference to bean 'buildResultsIndexer' while setting bean property 'buildResultsIndexer'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildResultsIndexer' defined in class path resource \[applicationContextManagers.xml\]: Cannot create inner bean 'com.atlassian.bamboo.index.buildresult.DefaultBuildResultsIndexer#323aee10' of type \[com.atlassian.bamboo.index.buildresult.DefaultBuildResultsIndexer\] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.index.buildresult.DefaultBuildResultsIndexer#323aee10' defined in class path resource \[applicationContextManagers.xml\]: Cannot resolve reference to bean 'buildResultLuceneConnection' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildResultLuceneConnection' defined in class path resource \[applicationContextManagers.xml\]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate \[com.atlassian.bamboo.index.LuceneConnectionImpl\]: Constructor threw exception; nested exception is com.atlassian.bonnie.LuceneException: java.nio.file.AccessDeniedException: C:\\Users\\gabriel.farias\\bamboo-home\\index\\results


Answers:
author: Gabriel Farias
body: Solved at change service account from Service Local to Local System