Bonita start error: The requested resource is not available.

1
0
-1

After installing the subscription edition, the server does not start.
This is the error message in the log:
2017-05-04 15:33:55.190 +0200 WARNING: org.bonitasoft.engine.service.impl.BonitaSpringContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobService' defined in class path resource [bonita-pl
atform-community.xml]: Cannot resolve reference to bean 'tenantRecorderSyncForPlatform' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantRecorderSyncForPlatform' defined in class path resource [bonita-platform-commun
ity.xml]: Cannot resolve reference to bean 'persistenceService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistenceService' defined in class path resource [bonita-platform-community.xml]: Cannot resolve reference
to bean 'extraTenantHibernateProperties' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'extraTenantHibernateProperties' defined in class path resource [bonita-platform-sp.xml]: Cannot create inner bean 'com.bonitasoft.en
gine.service.impl.URLofFileInFolderFactory#1bc04d8f' of type [com.bonitasoft.engine.service.impl.URLofFileInFolderFactory] while setting bean property 'map' with key [TypedStringValue: value [net.sf.ehcache.configurationResourceName], target type [null]]; nested exception is org.springframework.beans.factory.BeanCre
ationException: Error creating bean with name 'com.bonitasoft.engine.service.impl.URLofFileInFolderFactory#1bc04d8f' defined in class path resource [bonita-platform-sp.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException

Version is 7.4.3 subscription edition, the console during startup:
`-----------------------------------------------------

Starting Tomcat server...

/opt/BonitaBPM/start-bonita.sh: 26: /opt/BonitaBPM/start-bonita.sh: ./server/bin/startup.sh: not found
root@bpm:/# cd /opt/BonitaBPM

root@bpm:/opt/BonitaBPM# ./start-bonita.sh

Initializing and configuring Bonita BPM Tomcat bundle

____ _ _ ____ _____ __ __
| _ \ () | | _ | __ | \/ |
| |
) | ___ _ __ | | __ _ | |) | |) | \ / |
| _ < / _ | '_ | | __/ ` | | _ <| ___/| |\/| |
| |
) | () | | | | | || (| | | |_) | | | | | |
|____/ _
/|
| |||____,| |____/|| || ||

(platform Setup 7.4.3)

[INFO] configuration for Database vendor: postgres
[INFO] Connected to 'postgres' database with url: 'jdbc:postgresql://localhost:5432/bonitaengine' with user: 'postgres'
[INFO] Platform is already created. Nothing to do.
[INFO] Tomcat environment detected with root /opt/BonitaBPM
[INFO] Running auto-configuration using file /opt/BonitaBPM/setup/database.properties
[INFO] Creating a backup of configuration file 'server/bin/setenv.bat' to 'setup/tomcat-backups/setenv.bat.2017-05-04_15h33m45s'
[INFO] Setting Bonita BPM internal database vendor to 'postgres' and Business Data database vendor to 'postgres' in 'setenv.bat' file
[INFO] Creating a backup of configuration file 'server/bin/setenv.sh' to 'setup/tomcat-backups/setenv.sh.2017-05-04_15h33m45s'
[INFO] Setting Bonita BPM internal database vendor to 'postgres' and Business Data database vendor to 'postgres' in 'setenv.sh' file
[INFO] Creating a backup of configuration file 'server/conf/Catalina/localhost/bonita.xml' to 'setup/tomcat-backups/bonita.xml.2017-05-04_15h33m45s'
[INFO] Configuring file 'conf/Catalina/localhost/bonita.xml' with your DB values for Bonita BPM internal database on 'postgres' and for Business Data database on 'postgres'
[INFO] Creating a backup of configuration file 'server/conf/bitronix-resources.properties' to 'setup/tomcat-backups/bitronix-resources.properties.2017-05-04_15h33m45s'
[INFO] Configuring file 'conf/bitronix-resources.properties' with your DB values for Bonita BPM internal database on postgres and for Business Data database on postgres
[INFO] Copying your postgres driver file 'setup/lib/postgresql-9.3-1102-jdbc41.jar' to tomcat lib folder 'server/lib/bonita'
[INFO] Your postgres driver file 'server/lib/bonita/postgresql-9.3-1102-jdbc41.jar' already exists. Skipping the copy.

[INFO] Tomcat auto-configuration complete.

Starting Tomcat server...

Using CATALINA_BASE: /opt/BonitaBPM/server
Using CATALINA_HOME: /opt/BonitaBPM/server
Using CATALINA_TMPDIR: /opt/BonitaBPM/server/temp
Using JRE_HOME: /usr/lib/jvm/java-8-oracle
Using CLASSPATH: /opt/BonitaBPM/server/bin/bootstrap.jar:/opt/BonitaBPM/server/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/BonitaBPM/server/catalina.pid
Tomcat started.`
What can cause this, and how to fix it?

Comments

Submitted by antoine.mottier on Mon, 04/23/2018 - 16:53

In order to reproduce the issue can you share the full log files using for example Google Drive or Dropbox?
You can potentially end up in such situation if you accidentally delete all the tenants configuration files and push this new configuration to the database. Some extra check will be added to the next release of Bonita to prevent such situation.

Also I advise you open a case on https://customer.bonitasoft.com/ in order to benefit from the help of Bonitasoft support. They will also be interested in a zip of setup/ and server/logs directories.

3 answers

1
0
-1

Subscription users should not get LESS help :)
As a matter of fact, I think this not a subscription specific issue.

I am running in the exact same issue using the community editions.

Bonita has been running fine a few days. Now, it seems to be stuck due to the fact that the BPM service refuses to start. I can connect as technical user but nothing else works.

I installed the editor on OSX and run everything for now only locally. I also have a docker instance running but I don´t run both at the same time ATM to prevent ports conflicts.

Any hint appreciated.

Comments

Submitted by antoine.mottier on Mon, 04/23/2018 - 16:55

"Subscription users should not get LESS help :)" I totally agree with that and encourage Subscription users to report any issues they might have on https://customer.bonitasoft.com/ in order to get an answer provided by Bonitasoft support.

If you face the same issue I would be interested in full Bonita and Tomcat log files to try to identify the root cause of the issue.

1
-1
-1

First things first,

Community doesn't really know anything about Subscription (in general). I would immediately refer to your Subscription Bonitasoft Support agent who will be able to help you.

regards
Seán

PS: While you may not like the answer, it gives a possible solution, please mark as resolved.

1
-1
-1
Notifications