KB Article #190000

[INTERCHANGE] CN doesn't start after an upgrade : CloudTools initialization failed 3 times.

Problem

After an upgrade to B2Bi 2.6 UP2024-10, CN doesn't start.

Error in *_cn.log is :
2025-03-07 13:24:23,219 - INFO [Startup] (CloudToolsInitializer) - CloudTools initialized
2025-03-07 13:24:33,542 - FATAL [Startup] (CloudToolsInitializer) - CloudTools initialization failed 3 times. Exiting

With more DEBUG :
Edit the the log4j2.xml file located in <SHARED_FOLDER>/local_te/conf
or/and in <INSTALLED_FOLDER>/Interchange/conf.

And add line :
<Logger name="com.axway.b2bi.container" level="DEBUG" />

Error in *_cn.log is :
2025-03-13 07:11:34,508 - DEBUG [Startup] (CloudToolsInitializer) - Error testing lock
java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: relation "cdt_lock" does not exist
Position : 13
at com.axway.b2bi.cloudtools.sql.JdbcUtils.update(JdbcUtils.java:74) ~[cloudtools-sql.jar:26.14.0-4]
at com.axway.b2bi.cloudtools.lock.JdbcLockProvider.cleanupLockedBySQL(JdbcLockProvider.java:88) ~[cloudtools-lock.jar:26.14.0-4]
at com.axway.b2bi.cloudtools.lock.JdbcLockProvider.<init>(JdbcLockProvider.java:65) ~[cloudtools-lock.jar:26.14.0-4]


Resolution

After an upgrade, if some old configuration file are restored, they didn't have the new changes required.

1) Check in <SHARED_FOLDER>/local_te/conf/filereg.xml that this line is present :
"<File name="cloudToolsSchemas" path="conf/db/cloudTools"/>"

2) If there is no file <SHARED_FOLDER>/local_te/conf/filereg.xml,
check in <INSTALLED_FOLDER>/local_te/conf/filereg.xml that this line is present :
"<File name="cloudToolsSchemas" path="conf/db/cloudTools"/>

If the line is not present, please add it and try a new start of B2Bi.
After added the line in filereg.xml, the missing database tables (cdt_lock, cdt_lock_cnt and tracker_messages) will be created automatically during CN start :
2025-03-13 07:19:33,756 - INFO [Startup] (DatabaseInstaller) - Database schema being created or updated for CloudTools.