3.2.1 - problema installazione (java.lang.NullPointerException)

Buongiorno,
Sto installando la versione 3.2.1 su una VM Debian con:

Apache Tomcat/9.0.35
psql (PostgreSQL) 10.13 (Debian 10.13-1.pgdg100+1)
JVM:

  • openjdk version “11.0.7” 2020-04-14
  • OpenJDK Runtime Environment (build 11.0.7+10-post-Debian-3deb10u1)
  • OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Debian-3deb10u1, mixed mode, sharing)

Quando provo a configurare il database da UI (8080/cmdbuild/ui/#configuredb) ottengo il seguente errore:
java.lang.RuntimeException: error saving config to file for namespace = org.cmdbuild.database, caused by: java.lang.NullPointerException: config directory not available (check startup logs for errors)

Se invece provo l’installazione manuale lanciando questo comando, chiaramente cambiando nome del database (sennò ritorna errore dicendo che il db esiste già), (bash webapps/cmdbuild/cmdbuild.sh dbconfig create demo -configfile webapps/cmdbuild/WEB-INF/conf/database.conf), non ottengo alcun errore.

Accedendo da PostgreSQL noto che i database vengono creati.

In cmdbuild_sys.log trovo:

`2020-06-07T20:49:49.117Z [sys:boot] INFO o.cmdbuild.minions.SystemServiceImpl - start system
2020-06-07T20:49:49.135Z [sys:boot] INFO o.c.config.service.ConfigServiceImpl - init config beans
2020-06-07T20:49:49.222Z [system] INFO org.reflections.Reflections - Reflections took 65 ms to scan 1 urls, producing 8 keys and 222 values
2020-06-07T20:49:49.392Z [sys:boot] INFO o.cmdbuild.minions.MinionServiceImpl - loading 15 system services
2020-06-07T20:49:49.422Z [sys:boot] INFO o.c.c.s.ConfigChangeNotifierService - init 20 config change listeners
2020-06-07T20:49:49.460Z [sys:boot] INFO o.c.config.service.ConfigServiceImpl - load config from files
2020-06-07T20:49:49.463Z [sys:boot] WARN o.c.c.s.FilesystemConfigRepositoryImpl - config directory is not available, skip config file load
2020-06-07T20:49:49.531Z [sys:boot] WARN o.c.d.d.ConfigurableDataSourceImpl - cannot configure data source: missing database configuration!
2020-06-07T20:49:49.546Z [sys:boot] INFO o.cmdbuild.minions.SystemServiceImpl -

    system is CHECKING_DATABASE

2020-06-07T20:49:49.546Z [sys:boot] INFO o.cmdbuild.minions.SystemServiceImpl - check database
2020-06-07T20:49:49.549Z [sys:boot] INFO o.cmdbuild.minions.SystemServiceImpl -

    system is WAITING_FOR_DATABASE_CONFIGURATION

2020-06-07T20:49:50.034Z [system] INFO org.reflections.Reflections - Reflections took 23 ms to scan 1 urls, producing 8 keys and 222 values `

In catalina.out trovo:

       *at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)*
*    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)*
*    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)*
*    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:909)*
*    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)*
*    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)*
*    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)*
*    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)*
*    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)*
*    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)*
*    at org.apache.catalina.startup.Catalina.start(Catalina.java:633)*
*    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:343)*
*    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)*
*    Caused by: java.lang.IllegalArgumentException: invalid config dir =< /opt/tomcat/conf/cmdbuild >*
*    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:204)*
*    at org.cmdbuild.webapp.services.WebappDirectoryServiceImpl.prepareConfigDir(WebappDirectoryServiceImpl.java:103)*
*    ... 46 common frames omitted*
*    07-Jun-2020 20:49:50.391 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/tomcat/webapps/cmdbuild] has finished in [21,747] ms*
*    07-Jun-2020 20:49:50.395 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]*
*    07-Jun-2020 20:49:50.418 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [23,347] milliseconds*
*    07-Jun-2020 20:55:46.294 INFO [http-nio-8080-exec-7] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header*
*     Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.*
*    java.lang.IllegalArgumentException: Invalid character found in the HTTP protocol [HTTP/1.10x0aHost:]*
*            at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:560)*
*            at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:260)*
*            at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)*
*            at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)*
*            at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)*
*            at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)*
*            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)*
*            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)*
*            at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)*
*            at java.base/java.lang.Thread.run(Thread.java:834)*

Grazie.