Can't deploy and UI designer don't work

Hello,

I have installed BoniteStudioCommunity-2021.2, and the problem is that when I install the software and run it for the first time it works fine, I can deploy my project and can access de UI designer, but if I close the studio and open it again then if I try to deploy again it doesn't update, I did a clean deploy and didn't show the current model. Also when I try to access the UI designer it takes too much time (2 minutes) and the url doesn't work. The thing am I not understanding is why when I install for the first time it works but if I restart the program then doesn't work anymore. I uninstall and then installed again and it happens the same, the first time it works but then it doesn't. Help please.

Thanks in advance

My first guess when reading the logs is that you don’t have permissions to write to the default temp folder.

Caused by: java.io.FileNotFoundException: C:\Users\jorge\AppData\Local\Temp\workspace-uid\extract\templates\rows.hbs.html (Acceso denegado)

and

Caused by: java.io.IOException: El sistema no puede encontrar la ruta especificada
at java.base/java.io.WinNTFileSystem.createFileExclusively(Native Method)

Can you try to identify why you cannot write files here: C:\Users\jorge\AppData\Local\Temp ? What kind of user right do you have on your machine ? Do you have enough disk space ?

Hi,

Can you share the content of the logs files ? (Engine, Studio and UID)

These are the errors that I get. I don't know if you want other information of the logs I am new at this.

 

java.lang.RuntimeException: Error while initializing the Engine
    at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextInitialized(EngineInitializerListener.java:34)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4768)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:690)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1889)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:583)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: org.bonitasoft.engine.exception.BonitaRuntimeException: java.io.IOException: El sistema no puede encontrar la ruta especificada
    at org.bonitasoft.engine.service.impl.SpringBeanAccessor.initializeContext(SpringBeanAccessor.java:70)
    at org.bonitasoft.engine.service.impl.SpringBeanAccessor.getContext(SpringBeanAccessor.java:55)
    at org.bonitasoft.engine.service.impl.SpringBeanAccessor.getService(SpringBeanAccessor.java:42)
    at org.bonitasoft.engine.service.impl.SpringPlatformServiceAccessor.getPlatformSessionService(SpringPlatformServiceAccessor.java:97)
    at org.bonitasoft.engine.EngineInitializer.getPlatformSessionService(EngineInitializer.java:110)
    at org.bonitasoft.engine.EngineInitializer.initializeEngine(EngineInitializer.java:57)
    at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextInitialized(EngineInitializerListener.java:32)
    ... 41 more
Caused by: java.io.IOException: El sistema no puede encontrar la ruta especificada
    at java.base/java.io.WinNTFileSystem.createFileExclusively(Native Method)
    at java.base/java.io.File.createTempFile(File.java:2129)
    at java.base/java.io.File.createTempFile(File.java:2175)
    at org.bonitasoft.engine.service.impl.PlatformBeanAccessor.getConfigurationFromDatabase(PlatformBeanAccessor.java:59)
    at org.bonitasoft.engine.service.impl.SpringBeanAccessor.configureContext(SpringBeanAccessor.java:82)
    at org.bonitasoft.engine.service.impl.SpringBeanAccessor.initializeContext(SpringBeanAccessor.java:66)
    ... 47 more

2021-12-02 11:39:41.577 +0100 SEVERE (main) org.bonitasoft.console.common.server.servlet.PlatformTenantListener Error initializing platform configuration. Engine most likely failed to start. Check previous error logs for more details.
2021-12-02 11:39:41.577 +0100 SEVERE (main) org.apache.catalina.core.StandardContext One or more listeners failed to start. Full details will be found in the appropriate container log file
2021-12-02 11:39:41.578 +0100 SEVERE (main) org.apache.catalina.core.StandardContext Falló en arranque del Contexto [/bonita] debido a errores previos
2021-12-02 11:39:41.583 +0100 INFO (main) org.bonitasoft.engine.EngineInitializer Stopping Bonita Engine...
2021-12-02 11:39:41.626 +0100 SEVERE (main) org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener Error while unloading the Engine
org.bonitasoft.engine.exception.BonitaRuntimeException: java.io.IOException: El sistema no puede encontrar la ruta especificada
    at org.bonitasoft.engine.service.impl.SpringBeanAccessor.initializeContext(SpringBeanAccessor.java:70)
    at org.bonitasoft.engine.service.impl.SpringBeanAccessor.getContext(SpringBeanAccessor.java:55)
    at org.bonitasoft.engine.service.impl.SpringBeanAccessor.getService(SpringBeanAccessor.java:42)
    at org.bonitasoft.engine.service.impl.SpringPlatformServiceAccessor.getPlatformSessionService(SpringPlatformServiceAccessor.java:97)
    at org.bonitasoft.engine.EngineInitializer.getPlatformSessionService(EngineInitializer.java:110)
    at org.bonitasoft.engine.EngineInitializer.unloadEngine(EngineInitializer.java:145)
    at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextDestroyed(EngineInitializerListener.java:41)
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4816)
    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5477)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:690)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1889)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:583)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: java.io.IOException: El sistema no puede encontrar la ruta especificada
    at java.base/java.io.WinNTFileSystem.createFileExclusively(Native Method)
    at java.base/java.io.File.createTempFile(File.java:2129)
    at java.base/java.io.File.createTempFile(File.java:2175)
    at org.bonitasoft.engine.service.impl.PlatformBeanAccessor.getConfigurationFromDatabase(PlatformBeanAccessor.java:59)
    at org.bonitasoft.engine.service.impl.SpringBeanAccessor.configureContext(SpringBeanAccessor.java:82)
    at org.bonitasoft.engine.service.impl.SpringBeanAccessor.initializeContext(SpringBeanAccessor.java:66)
    ... 48 more

Can you share the whole log files ?

There are located here: <SUTDIO>/workspace/.metadata/ (There is a .log, tomcat.log and ui-designer.log)

Thanks

 

 

Tomcat. log: https://drive.google.com/file/d/1nGEkc0bmphvMs0nNOiGTYGlIr9ETQH2U/view?usp=sharing

 

.log: https://drive.google.com/file/d/1A9YoN8pE4d9FAkZWqsd74vbB-e0Je9YO/view?usp=sharing

 

ui-designer-log: https://drive.google.com/file/d/16uQXlyr68hGe1zj9H07QMWKDROi4WVE3/view?usp=sharing

 

 

Thanks that solved the problem of deploying (It was a permissions problem in that file).