Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Stuck on "Please wait while Bamboo sets up database" - MSSql

Like others, my install has hung on the database setup - I've tried a few different installs/reinstalls, a different database name etc - Help


2019-09-19 10:14:44,261 INFO [localhost-startStop-1] [MessageDatabase] Persistence store purged.
2019-09-19 10:14:45,105 INFO [localhost-startStop-1] [PListStoreImpl] PListStore:[C:\atlassian\bamboo-home\jms-store\bamboo\tmp_storage] started
2019-09-19 10:14:45,269 INFO [localhost-startStop-1] [BrokerService] Apache ActiveMQ 5.15.8 (bamboo, ID:IconRedGate-62846-1568902485115-0:1) is starting
2019-09-19 10:14:45,274 INFO [localhost-startStop-1] [BrokerPluginSupport] Broker Plugin org.apache.activemq.broker.util.TimeStampingBrokerPlugin started
2019-09-19 10:14:45,276 INFO [localhost-startStop-1] [BrokerService] Apache ActiveMQ 5.15.8 (bamboo, ID:IconRedGate-62846-1568902485115-0:1) started
2019-09-19 10:14:45,276 INFO [localhost-startStop-1] [BrokerService] For help or more information please see: http://activemq.apache.org
2019-09-19 10:14:45,319 INFO [localhost-startStop-1] [JmsSslManagementUtils] Loading an existing key store from C:\Atlassian\bamboo-home\xml-data\configuration\broker.ks
2019-09-19 10:14:45,384 INFO [localhost-startStop-1] [JmsSslManagementUtils] Keystore successfully loaded
2019-09-19 10:14:46,858 INFO [localhost-startStop-1] [BambooActiveMQConnectionFactory] Setting broker URL to 'vm://bamboo'
2019-09-19 10:14:47,353 INFO [localhost-startStop-1] [BouncyCastleProviderUtils] Bouncy Castle provider already present
2019-09-19 10:14:52,520 INFO [localhost-startStop-1] [StdSchedulerFactory] Using default implementation for ThreadExecutor
2019-09-19 10:14:52,556 INFO [localhost-startStop-1] [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2019-09-19 10:14:52,557 INFO [localhost-startStop-1] [QuartzScheduler] Quartz Scheduler v.2.2.3 created.
2019-09-19 10:14:52,559 INFO [localhost-startStop-1] [RAMJobStore] RAMJobStore initialized.
2019-09-19 10:14:52,562 INFO [localhost-startStop-1] [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v2.2.3) 'scheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

2019-09-19 10:14:52,563 INFO [localhost-startStop-1] [StdSchedulerFactory] Quartz scheduler 'scheduler' initialized from an externally provided properties instance.
2019-09-19 10:14:52,564 INFO [localhost-startStop-1] [StdSchedulerFactory] Quartz scheduler version: 2.2.3
2019-09-19 10:14:52,565 INFO [localhost-startStop-1] [QuartzScheduler] JobFactory set to: com.atlassian.bamboo.quartz.AutowiringJobFactory@47963a88
2019-09-19 10:14:52,960 WARN [localhost-startStop-1] [EhCacheHelper] No PeerProviders configured in ehcache, replication cannot be configured for non-local cache
2019-09-19 10:14:54,037 INFO [mail-queue-processor] [EmailService] Successfully initialised mail queue processor
2019-09-19 10:14:55,876 INFO [localhost-startStop-1] [RemoteAgentManagerImpl] Heartbeat timeout for remote agents: 600 seconds.
2019-09-19 10:14:56,030 INFO [localhost-startStop-1] [TransportConnector] Connector vm://bamboo started
2019-09-19 10:15:00,200 WARN [localhost-startStop-1] [ResourceResolver] Unable to find resource bamboo-capabilities.properties
2019-09-19 10:15:00,220 INFO [localhost-startStop-1] [DefaultAgentCapabilityManagerImpl] Failed to load bamboo-capabilities.properties
2019-09-19 10:15:00,233 INFO [localhost-startStop-1] [lifecycle] *******************************
2019-09-19 10:15:00,233 INFO [localhost-startStop-1] [lifecycle] * System information *
2019-09-19 10:15:00,234 INFO [localhost-startStop-1] [lifecycle] *******************************
2019-09-19 10:15:00,262 INFO [localhost-startStop-1] [lifecycle] com.atlassian.bamboo.configuration.SystemInfoImpl@3d1733c2[
userName=charlesg
userTimezone=America/New_York
userLocale=English (United States)
systemEncoding=Cp1252
operatingSystem=Windows 7 6.1
operatingSystemArchitecture=amd64
systemDate=Thursday, 19 Sep 2019
systemTime=10:15:00
tempDir=C:\Program Files\Bamboo\temp
userHome=C:\Users\charlesg.ICON-INTL
totalMemory=806
freeMemory=468
usedMemory=338
availableProcessors=4
startupTimestamp=1568902495870
currentDirectory=C:\Program Files\Bamboo
applicationHome=C:\atlassian\bamboo-home
buildWorkingDirectory=C:\Atlassian\bamboo-home\xml-data\build-dir
currentDate=Thu Sep 19 10:15:00 EDT 2019
freeDiskSpace=384160420
hostName=IconRedGate.icon-intl.com
ipAddress=10.244.0.169
]
2019-09-19 10:15:02,660 INFO [localhost-startStop-1] [QuartzScheduler] Scheduler scheduler_$_NON_CLUSTERED started.
2019-09-19 10:15:02,676 INFO [localhost-startStop-1] [UpgradeLauncher] Upgrades not performed since the application has not been set up yet.
2019-09-19 10:15:02,712 INFO [localhost-startStop-1] [CompressingFilter] CompressingFilter has initialized
2019-09-19 10:15:03,404 INFO [localhost-startStop-1] [SpringObjectFactory] Setting autowire strategy to name
2019-09-19 10:15:03,408 INFO [localhost-startStop-1] [StrutsSpringObjectFactory] Struts-Spring integration initialised successfully
2019-09-19 10:15:04,376 INFO [localhost-startStop-1] [Dispatchers] Dispatcher org.apache.struts2.dispatcher.Dispatcher initialised
2019-09-19 10:15:04,437 INFO [localhost-startStop-1] [SpringObjectFactory] Setting autowire strategy to name
2019-09-19 10:15:04,437 INFO [localhost-startStop-1] [StrutsSpringObjectFactory] Struts-Spring integration initialised successfully
2019-09-19 10:15:05,171 INFO [localhost-startStop-1] [AccessLogFilter] AccessLogFilter initialized. Format is: <user> <url> <starting memory free (kb)> +- <difference in free mem (kb)> <query time (ms)>
2019-09-19 10:15:05,240 INFO [localhost-startStop-1] [SpringObjectFactory] Setting autowire strategy to name
2019-09-19 10:15:05,240 INFO [localhost-startStop-1] [StrutsSpringObjectFactory] Struts-Spring integration initialised successfully
2019-09-19 10:15:05,335 INFO [localhost-startStop-1] [Dispatchers] Dispatcher org.apache.struts2.dispatcher.Dispatcher initialised
2019-09-19 10:15:05,379 INFO [localhost-startStop-1] [SpringObjectFactory] Setting autowire strategy to name
2019-09-19 10:15:05,380 INFO [localhost-startStop-1] [StrutsSpringObjectFactory] Struts-Spring integration initialised successfully
2019-09-19 10:15:05,909 INFO [http-nio-8085-exec-1] [JohnsonFilter] The application is not yet setup. Redirecting request from '/start.action' to '/bootstrap/selectSetupStep.action'
2019-09-19 10:15:05,929 INFO [http-nio-8085-exec-2] [AccessLogFilter] 0:0:0:0:0:0:0:1 GET http://localhost:8085/bootstrap/selectSetupStep.action 554520kb
2019-09-19 10:15:06,237 INFO [http-nio-8085-exec-2] [SelectSetupStepAction] Current setup step is /setup/setupDatabase.action
2019-09-19 10:15:06,281 INFO [http-nio-8085-exec-4] [AccessLogFilter] 0:0:0:0:0:0:0:1 GET http://localhost:8085/setup/setupDatabase.action 398327kb
2019-09-19 10:15:13,724 INFO [http-nio-8085-exec-5] [AccessLogFilter] 0:0:0:0:0:0:0:1 POST http://localhost:8085/setup/chooseDatabaseType.action 493555kb
2019-09-19 10:15:13,844 INFO [http-nio-8085-exec-6] [AccessLogFilter] 0:0:0:0:0:0:0:1 GET http://localhost:8085/setup/setupDatabaseConnection.action?selectedDatabase=mssql 439431kb
2019-09-19 10:16:08,798 INFO [http-nio-8085-exec-9] [AccessLogFilter] 0:0:0:0:0:0:0:1 POST http://localhost:8085/setup/performSetupDatabaseConnection.action 377042kb
2019-09-19 10:16:08,975 INFO [performSetupDatabaseConnectionBackgroundThread] [SetupDatabaseConnectionAction] Validating database configuration...
2019-09-19 10:16:08,976 INFO [performSetupDatabaseConnectionBackgroundThread] [SetupDatabaseConnectionAction] Validating connection to url: [jdbc:sqlserver://localhost:1433;databaseName=bamboo2]
2019-09-19 10:16:09,489 INFO [performSetupDatabaseConnectionBackgroundThread] [SetupDatabaseConnectionAction] Database configuration is valid.
2019-09-19 10:16:09,490 INFO [performSetupDatabaseConnectionBackgroundThread] [SetupUtilityBean] Setting up database: mssql
2019-09-19 10:16:09,492 INFO [performSetupDatabaseConnectionBackgroundThread] [SetupUtilityBean] Bootstrapping database: mssql
2019-09-19 10:16:09,492 INFO [performSetupDatabaseConnectionBackgroundThread] [DefaultHibernateConfigurator] Saving bootstrap configuration...
2019-09-19 10:16:09,504 INFO [performSetupDatabaseConnectionBackgroundThread] [DefaultHibernateConfigurator] Refreshing Spring context...
2019-09-19 10:16:10,512 WARN [performSetupDatabaseConnectionBackgroundThread] [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[])]
2019-09-19 10:16:11,011 WARN [http-nio-8085-exec-9] [TokenHelper] Could not find token mapped to token name: token
2019-09-19 10:16:11,195 INFO [performSetupDatabaseConnectionBackgroundThread] [AbstractPoolBackedDataSource] Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@c554553e [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@4f3a457d [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, debugUnreturnedConnectionStackTraces -> false, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, identityToken -> 31eoixa5khwwo3tmcga6|32794810, idleConnectionTestPeriod -> 30, initialPoolSize -> 3, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 120, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@c20b82dd [ description -> null, driverClass -> null, factoryClassLocation -> null, forceUseNamedDriverClass -> false, identityToken -> 31eoixa5khwwo3tmcga6|38f0a633, jdbcUrl -> jdbc:sqlserver://localhost:1433;databaseName=bamboo2, properties -> {handling_mode=DELAYED_ACQUISITION_AND_HOLD, user=******, password=******} ], preferredTestQuery -> null, privilegeSpawnedThreads -> false, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, extensions -> {}, factoryClassLocation -> null, identityToken -> 31eoixa5khwwo3tmcga6|3e78e3df, numHelperThreads -> 3 ]
2019-09-19 10:16:11,316 INFO [performSetupDatabaseConnectionBackgroundThread] [ResettableTableHiLoGenerator] Registering exportables...
2019-09-19 10:16:11,317 INFO [performSetupDatabaseConnectionBackgroundThread] [ResettableTableHiLoGenerator] Generator table: org.hibernate.mapping.Table(hibernate_unique_key)
2019-09-19 10:16:11,381 ERROR [performSetupDatabaseConnectionBackgroundThread] [PojoEntityTuplizer] HHH000243: Setters of lazy classes cannot be final: com.atlassian.bamboo.plan.AbstractChain.notificationSet
2019-09-19 10:16:11,604 ERROR [performSetupDatabaseConnectionBackgroundThread] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.resultsummary.AbstractResultsSummary_#testClassResults; expected type : org.hibernate.metamodel.internal.PluralAttributeImpl$SetAttributeImpl; encountered type : javax.persistence.metamodel.ListAttribute
2019-09-19 10:16:11,609 ERROR [performSetupDatabaseConnectionBackgroundThread] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl_#availabilityZones; expected type : org.hibernate.metamodel.internal.SingularAttributeImpl; encountered type : javax.persistence.metamodel.CollectionAttribute
2019-09-19 10:16:11,610 ERROR [performSetupDatabaseConnectionBackgroundThread] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl_#subnetIds; expected type : org.hibernate.metamodel.internal.SingularAttributeImpl; encountered type : javax.persistence.metamodel.CollectionAttribute
2019-09-19 10:16:11,621 ERROR [performSetupDatabaseConnectionBackgroundThread] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.project.DefaultProject_#allPlans; expected type : org.hibernate.metamodel.internal.PluralAttributeImpl$CollectionAttributeImpl; encountered type : javax.persistence.metamodel.ListAttribute
2019-09-19 10:16:11,661 ERROR [performSetupDatabaseConnectionBackgroundThread] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.commit.CommitImpl_#files; expected type : org.hibernate.metamodel.internal.PluralAttributeImpl$SetAttributeImpl; encountered type : javax.persistence.metamodel.ListAttribute
2019-09-19 10:16:11,679 ERROR [performSetupDatabaseConnectionBackgroundThread] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.resultsummary.tests.TestClassImpl_#testCases; expected type : org.hibernate.metamodel.internal.PluralAttributeImpl$SetAttributeImpl; encountered type : javax.persistence.metamodel.ListAttribute
2019-09-19 10:16:12,171 INFO [performSetupDatabaseConnectionBackgroundThread] [BrokerService] Using Persistence Adapter: KahaDBPersistenceAdapter[C:\atlassian\bamboo-home\jms-store\bamboo\KahaDB]
2019-09-19 10:16:12,173 INFO [performSetupDatabaseConnectionBackgroundThread] [SharedFileLocker] Database C:\atlassian\bamboo-home\jms-store\bamboo\KahaDB\lock is locked by another server. This broker is now in slave mode waiting a lock to be acquired
2019-09-19 10:16:13,207 ERROR [http-nio-8085-exec-10] [FiveOhOh] 500 Exception was thrown.
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:84)
at org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:190)
at org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:176)
at org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:127)
at com.atlassian.bamboo.persistence.BambooSessionInViewFilter.doFilterInternal(BambooSessionInViewFilter.java:24)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.bamboo.filter.BambooCompressingFilter.doFilter(BambooCompressingFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.bamboo.filter.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:40)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.bamboo.filter.ClickjackingAndMimeTypeSniffingPreventionFilter.doFilter(ClickjackingAndMimeTypeSniffingPreventionFilter.java:36)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.bamboo.filter.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:64)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:206)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)

1 answer

0 votes

Hello @Charles Gallo welcome to the community!

You've mentioned that you've attempted to install Bamboo with different databases and retries, did they hang with the same exception? My first thoughts are about if the user you're running Bamboo has permissions to alter the files it requires.

Not sure, didn't capture the log
The user I'm trying with is DBO, so I'm fairly sure it has rights

OK,  it keeps failing in the same spot, the user is both dbo and sysadmin rights

Did you resolve this, I have a similar issue.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

670 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you