CMDBuild Forum

Error when running ./cmdbuild.sh

Hi,

I’m trying to install CMDBuild and I get an error when running ./cmdbuid.sh install command, after adding all configuration specifics. Could you have a look please?

we’re ready to begin, this is your configuration:
tomcat: /opt/tomcat
http port: 8080
shutdown port: 8005
debug port: 8000
postgres database: localhost:5432/cmdbuild_39ca
database dump: demo.dump.xz
if everything is ok, press ENTER to begin installation

BEGIN installation
install tomcat…
Exception in thread “main” java.lang.RuntimeException: net.lingala.zip4j.exception.ZipException: Cannot create destination folder
at org.cmdbuild.utils.lang.CmExceptionUtils.toRuntimeException(CmExceptionUtils.java:62)
at org.cmdbuild.utils.lang.CmExceptionUtils.runtime(CmExceptionUtils.java:40)
at org.cmdbuild.utils.tomcatmanager.TomcatBuilder.buildTomcat(TomcatBuilder.java:87)
at org.cmdbuild.utils.cli.commands.InstallCommandRunner.exec(InstallCommandRunner.java:161)
at org.cmdbuild.utils.cli.commands.AbstractCommandRunner.exec(AbstractCommandRunner.java:62)
at org.cmdbuild.utils.cli.Main.runMain(Main.java:144)
at org.cmdbuild.utils.cli.Main.main(Main.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.cmdbuild.webapp.cli.Main.runCli(Main.java:98)
at org.cmdbuild.webapp.cli.Main.main(Main.java:76)
Caused by: net.lingala.zip4j.exception.ZipException: Cannot create destination folder
at net.lingala.zip4j.util.Zip4jUtil.checkOutputFolder(Zip4jUtil.java:77)
at net.lingala.zip4j.core.ZipFile.extractAll(ZipFile.java:470)
at net.lingala.zip4j.core.ZipFile.extractAll(ZipFile.java:451)
at org.cmdbuild.utils.tomcatmanager.TomcatBuilder.unpackToDir(TomcatBuilder.java:113)
at org.cmdbuild.utils.tomcatmanager.TomcatBuilder.buildTomcat(TomcatBuilder.java:78)
… 10 more

Problem solved
Must be run with root
sudo ./cmdbuid.sh install