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

Bamboo home directory comes from version 6.2 or older (build number [60307]) but database does not c

Michel Veillette February 12, 2018

Hi,

Last week, the VM running our instance of bamboo crashes and the VM is irrecuperable (We lost also the bamboo home). The database was stored on another server.

The version of our bamboo instance was 5.10.

So, we reinstalled bamboo (version 6.3.2) on a new rebuilt VM. I configured bamboo on a temporary database and once the configuration was completed, I changed the database in bamboo.cfg.xml to the real one and I restarted the service. Now, bamboo is not running due to the error above.

What are my options to fix that?

Here the logs:

2018-02-10 23:39:29,503 INFO [localhost-startStop-1] [DefaultBootstrapManager] Running validation tasks
2018-02-10 23:39:29,628 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ----------------------------------------------------------------------
2018-02-10 23:39:29,628 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 1 : Assert that Bamboo isn't running on HSQL database (post-bootstrap)
2018-02-10 23:39:29,628 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ----------------------------------------------------------------------
2018-02-10 23:39:29,644 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 1 completed successfully.
2018-02-10 23:39:29,660 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -------------------------------------------------------------------
2018-02-10 23:39:29,660 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 2 : Validate that JDBC driver is available in classpath (bootstrap)
2018-02-10 23:39:29,660 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -------------------------------------------------------------------
2018-02-10 23:39:29,675 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 2 completed successfully.
2018-02-10 23:39:29,675 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ---------------------------------------------------------------------------
2018-02-10 23:39:29,675 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 3 : Validate if build number in home directory matches database (bootstrap)
2018-02-10 23:39:29,675 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ---------------------------------------------------------------------------
2018-02-10 23:39:30,191 INFO [MLog-Init-Reporter] [MLog] MLog clients using slf4j logging.
2018-02-10 23:39:30,332 INFO [localhost-startStop-1] [C3P0Registry] Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
2018-02-10 23:39:30,472 INFO [localhost-startStop-1] [AbstractPoolBackedDataSource] Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@27c5561c [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@b61b808 [ 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 -> 2ryubu9t10e4o2l1xjjn5v|2463266e, 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@f0e4e596 [ description -> null, driverClass -> null, factoryClassLocation -> null, forceUseNamedDriverClass -> false, identityToken -> 2ryubu9t10e4o2l1xjjn5v|23cb80d0, jdbcUrl -> jdbc:postgresql://10.2.17.2:5433/bamboo, properties -> {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 -> 2ryubu9t10e4o2l1xjjn5v|30ca6757, numHelperThreads -> 3 ]
2018-02-10 23:39:30,941 FATAL [localhost-startStop-1] [BuildNumberInHomeMatchesDatabase] Bamboo home directory comes from version 6.2 or older (build number [60307]) but database does not contain build number
2018-02-10 23:39:30,941 ERROR [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 3 failed
java.lang.NullPointerException
at com.atlassian.bamboo.spring.StrutsContainer.lambda$static$0(StrutsContainer.java:15)
at io.atlassian.fugue.Suppliers$MemoizingSupplier.get(Suppliers.java:161)
at com.atlassian.struts.DefaultTextProvider.getTextProvider(DefaultTextProvider.java:188)
at com.atlassian.struts.DefaultTextProvider.getText(DefaultTextProvider.java:39)
at com.atlassian.bamboo.upgrade.tasks.validation.BuildNumberInHomeMatchesDatabase.doUpgrade(BuildNumberInHomeMatchesDatabase.java:59)
at com.atlassian.bamboo.upgrade.BootstrapUpgradeManagerImpl.runValidationTask(BootstrapUpgradeManagerImpl.java:129)
at com.atlassian.bamboo.upgrade.BootstrapUpgradeManagerImpl.lambda$runValidationTasks$0(BootstrapUpgradeManagerImpl.java:90)
at com.atlassian.bamboo.upgrade.AbstractUpgradeManager.forEachTask(AbstractUpgradeManager.java:150)
at com.atlassian.bamboo.upgrade.BootstrapUpgradeManagerImpl.runValidationTasks(BootstrapUpgradeManagerImpl.java:90)
at com.atlassian.bamboo.setup.DefaultBootstrapManager.runValidationTasks(DefaultBootstrapManager.java:373)
at com.atlassian.bamboo.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:277)
at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(DefaultAtlassianBootstrapManager.java:77)
at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:118)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4842)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2018-02-10 23:39:30,957 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -----------------------------------------------------------------
2018-02-10 23:39:30,957 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 2901 : Test if build number is applicable for upgrade (bootstrap)
2018-02-10 23:39:30,957 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -----------------------------------------------------------------
2018-02-10 23:39:30,957 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 2901 completed successfully.
2018-02-10 23:39:30,972 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ------------------------------------------------------------
2018-02-10 23:39:30,972 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 2902 : Test if plan keys are correctly formatted (bootstrap)
2018-02-10 23:39:30,972 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ------------------------------------------------------------
2018-02-10 23:39:31,066 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 2902 completed successfully.
2018-02-10 23:39:31,082 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -----------------------------------------------------------------------------
2018-02-10 23:39:31,082 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 4300 : Make sure there's single row in HIBERNATE_UNIQUE_KEY table (bootstrap)
2018-02-10 23:39:31,082 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -----------------------------------------------------------------------------
2018-02-10 23:39:31,128 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 4300 completed successfully.
2018-02-10 23:39:31,160 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -------------------------------------------------------------------------------------
2018-02-10 23:39:31,160 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 4410 : Make sure that all branch keys start with their master's chain key (bootstrap)
2018-02-10 23:39:31,160 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -------------------------------------------------------------------------------------
2018-02-10 23:39:31,175 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 4410 completed successfully.
2018-02-10 23:39:31,191 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ---------------------------------------------------------
2018-02-10 23:39:31,191 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 51010 : Check if lucene index root dir exists (bootstrap)
2018-02-10 23:39:31,191 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ---------------------------------------------------------
2018-02-10 23:39:31,191 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 51010 completed successfully.
2018-02-10 23:39:31,207 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -----------------------------------------------------------------------------
2018-02-10 23:39:31,207 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 51012 : Make sure that MySQL server uses InnoDB engine for tables (bootstrap)
2018-02-10 23:39:31,207 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -----------------------------------------------------------------------------
2018-02-10 23:39:31,207 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 51012 completed successfully.
2018-02-10 23:39:31,222 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] --------------------------------------------------------------------------
2018-02-10 23:39:31,222 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 51102 : Make sure server key has been initialized and is valid (bootstrap)
2018-02-10 23:39:31,222 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] --------------------------------------------------------------------------
2018-02-10 23:39:31,222 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 51102 completed successfully.
2018-02-10 23:39:31,222 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -------------------------------------------
2018-02-10 23:39:31,222 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 51111 : Verify DB compatibility (bootstrap)
2018-02-10 23:39:31,222 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -------------------------------------------
2018-02-10 23:39:31,238 INFO [localhost-startStop-1] [DatabaseIsSupported] Testing compatibility of [PostgreSQL] 9.2.0 (9.2.20) using JDBC driver [PostgreSQL JDBC Driver] 42.0.0 (42.0.0) with this version of Bamboo.
2018-02-10 23:39:31,238 INFO [localhost-startStop-1] [DatabaseIsSupported] Detected POSTGRESQL version [PostgreSQL] 9.2.0 (9.2.20), your DBMS version is supported.
2018-02-10 23:39:31,238 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 51111 completed successfully.
2018-02-10 23:39:31,253 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ---------------------------------------------
2018-02-10 23:39:31,253 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 51210 : Verify file name encoding (bootstrap)
2018-02-10 23:39:31,253 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ---------------------------------------------
2018-02-10 23:39:31,253 WARN [localhost-startStop-1] [FileNameEncodingIsReasonable] Encoding [Cp1252] used to encode file names is not capable of handling extended character sets. You may encounter failures during artifact transfers.
2018-02-10 23:39:31,253 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 51210 completed successfully.
2018-02-10 23:39:31,285 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ---------------------------------------------------------------------------
2018-02-10 23:39:31,285 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 51301 : Test if collation and commit isolation is set correctly (bootstrap)
2018-02-10 23:39:31,285 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ---------------------------------------------------------------------------
2018-02-10 23:39:31,285 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 51301 completed successfully.
2018-02-10 23:39:31,300 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ----------------------------------------------------------------
2018-02-10 23:39:31,300 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 51302 : Check that MySQL tables are case insensitive (bootstrap)
2018-02-10 23:39:31,300 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ----------------------------------------------------------------
2018-02-10 23:39:31,300 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 51302 completed successfully.
2018-02-10 23:39:31,300 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ---------------------------------------------------------------------------------------
2018-02-10 23:39:31,316 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 51404 : Make sure OSGi bundle cache directory is empty, clean it if needed. (bootstrap)
2018-02-10 23:39:31,316 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] ---------------------------------------------------------------------------------------
2018-02-10 23:39:31,316 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 51404 completed successfully.
2018-02-10 23:39:31,332 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -------------------------------------------------------------------
2018-02-10 23:39:31,332 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] 60001 : Make sure JNDI location of mail server is valid (bootstrap)
2018-02-10 23:39:31,332 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] -------------------------------------------------------------------
2018-02-10 23:39:31,332 INFO [localhost-startStop-1] [MailServerJndiLocationIsValid] Validating JNDI location of mail server in configuration file 'C:\Bamboo-Home\bamboo-mail.cfg.xml'.
2018-02-10 23:39:31,503 INFO [localhost-startStop-1] [BootstrapUpgradeManagerImpl] Task 60001 completed successfully.
2018-02-10 23:39:31,503 FATAL [localhost-startStop-1] [DefaultBootstrapManager] Validation tests failed: [Task 3 failed with exception: null]
2018-02-10 23:39:31,519 FATAL [localhost-startStop-1] [BootstrapLoaderListener] An error was encountered while bootstrapping Bamboo (see below):
null
java.lang.NullPointerException
at com.atlassian.bamboo.spring.StrutsContainer.lambda$static$0(StrutsContainer.java:15)
at io.atlassian.fugue.Suppliers$MemoizingSupplier.get(Suppliers.java:161)
at com.atlassian.struts.DefaultTextProvider.getTextProvider(DefaultTextProvider.java:188)
at com.atlassian.struts.DefaultTextProvider.getText(DefaultTextProvider.java:39)
at com.atlassian.bamboo.setup.DefaultBootstrapManager.runValidationTasks(DefaultBootstrapManager.java:376)
at com.atlassian.bamboo.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:277)
at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(DefaultAtlassianBootstrapManager.java:77)
at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:118)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4842)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2018-02-10 23:39:31,519 INFO [localhost-startStop-1] [UpgradeLauncher] Upgrades not performed since the application has not been set up yet.
2018-02-10 23:39:31,535 INFO [localhost-startStop-1] [CompressingFilter] CompressingFilter has initialized
2018-02-10 23:39:32,488 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy
2018-02-10 23:39:33,707 INFO [localhost-startStop-1] [Dispatchers] Dispatcher org.apache.struts2.dispatcher.Dispatcher initialised
2018-02-10 23:39:33,816 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy
2018-02-10 23:39:34,832 INFO [localhost-startStop-1] [AccessLogFilter] AccessLogFilter initialized. Format is: <user> <url> <starting memory free (kb)> +- <difference in free mem (kb)> <query time (ms)>
2018-02-10 23:39:34,910 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy
2018-02-10 23:39:35,082 INFO [localhost-startStop-1] [Dispatchers] Dispatcher org.apache.struts2.dispatcher.Dispatcher initialised
2018-02-10 23:39:35,128 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy

1 answer

1 accepted

0 votes
Answer accepted
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 12, 2018

In your case should go such way:

Install Bamboo 5.10 with temp DB settings,

then switch DB settings and start Bamboo to confirm it picked up everything correctly.

Then go with upgrade to 6.3.2

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events