HTTP Status 404 - /bonita/

Hello everybody.

I’m trying to access the localhost:8080/bonita but when I do it I got this message “HTTP Status 404 - /bonita/”

I changed the user and group privileges to tomcat7, when I try to access this one localhost:8443/bonita I got the messagem “connection refused”

When I access the “Tomcat Web Application Manager” the applications tag shows:

path: /bonita
Version: None specified
Display name: Bonita
Running: false

So I click on Start button and then I got another message:
“FAIL - Application at context path /bonita could not be started”

How can I fix the issue above?

I am using a container (nspawn) on Arch Linux 64 that only have installed MySQL and tomcat7.

I think the database error message is kind of explicit and even give direction to fix the issue: Packet for query is too large (4227668 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.

You can also find a note about this error in Bonita documentation.

Just try to increase the maximum packet size for your MySQL setup to something bigger than 4227668 and that should fix it.

Did you check the content of the logs files located in Tomcat logs folder?

Hi antoine.mottier sorry about late I had been solving some personal problems.

I looked up the tomcat logs folders on /var/log/tomcat7 and there are two files empty (catalina.err and catalina.out)

Looking for informations on /opt/bonita/server/logs directory I found a log file called bonita.2017-08-10.log

On this log file I checker some informations listed below

I put some log parts, if you need the all log information please let me know

2017-08-10 11:51:33.349 +0000 INFO: org.bonitasoft.engine.EngineInitializer Platform is already initialized.
2017-08-10 11:51:33.349 +0000 INFO: org.bonitasoft.engine.EngineInitializer Starting node…
2017-08-10 11:51:36.856 +0000 WARNING: org.hibernate.engine.jdbc.spi.SqlExceptionHelper SQL Error: 0, SQLState: S1000
2017-08-10 11:51:36.856 +0000 SEVERE: org.hibernate.engine.jdbc.spi.SqlExceptionHelper Packet for query is too large (4227668 > 1048576). You can change this value on the server by setting t
he max_allowed_packet’ variable.
2017-08-10 11:51:36.910 +0000 SEVERE: org.bonitasoft.engine.EngineInitializer Exception while initializing the engine:
org.bonitasoft.engine.platform.StartNodeException: Platform starting failed.

2017-08-10 11:51:36.913 +0000 INFO: org.bonitasoft.engine.EngineInitializer Initialization of Bonita Engine done! ( took 12167ms)
2017-08-10 11:51:36.996 +0000 SEVERE: org.bonitasoft.engine.api.impl.ServerAPIImpl THREAD_ID=17 | HOSTNAME=bonita | Node not started. Method ‘org.bonitasoft.engine.api.PlatformAPI.getClientP
latformConfigurations’ cannot be called until node has been started (PlatformAPI.startNode()). Exact class: org.bonitasoft.engine.api.impl.PlatformAPIImpl
2017-08-10 11:51:36.997 +0000 SEVERE: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bonita] Exception sending context initialized event to listener instance of class org.bo
nitasoft.console.common.server.servlet.PlatformTenantListener
org.bonitasoft.engine.platform.NodeNotStartedException: USERNAME=local | The current node has not been started yet. Method PlatformAPI.startNode() must be called previously.
at org.bonitasoft.engine.api.impl.ServerAPIImpl.checkMethodAccessibility(ServerAPIImpl.java:287)

2017-08-10 11:52:41.303 +0000 INFO: org.bonitasoft.engine.EngineInitializer Stopping Bonita Engine…
2017-08-10 11:52:41.303 +0000 INFO: org.bonitasoft.engine.EngineInitializer Node is not started, nothing to do.
2017-08-10 11:52:41.314 +0000 INFO: org.bonitasoft.engine.EngineInitializer Bonita Engine stopped!

thahk you.