CMDBuild Forum

Error in ready2use installation

Hi, I have installed cmdbuild 2.4.3. and now I want to install ready2use.

But I recieved this error.

WARNING: errors ignored on restore: 5572
exit value: 1
Exception in thread "main" java.lang.RuntimeException: error executing command
        at com.tecnoteca.cmdbuild.ready2use.Main$ExecuteShellComand.execute(Main.java:88)
        at com.tecnoteca.cmdbuild.ready2use.Main.main(Main.java:228)
and cmdbuild data is empty. How can I fix this problem?

Thanks a lot

 

Dear Bahareh,

Maybe you have restored the Ready2Use database above the one created by installation?
You have to restore the Ready2Use DB on an empty database 
Best regards
 

Previously Tecnoteca wrote:

Dear Bahareh,
Maybe you have restored the Ready2Use database above the one created by installation?
You have to restore the Ready2Use DB on an empty database 
Best regards
 
 
Thanks for your reply. I decided it with an empty database and I got this:
WARNING: errors ignored on restore: 5624
exit value: 1
Exception in thread "main" java.lang.RuntimeException: error executing command
        at com.tecnoteca.cmdbuild.ready2use.Main$ExecuteShellComand.execute(Main.java:88)
        at com.tecnoteca.cmdbuild.ready2use.Main.main(Main.java:228)

in cmd all classes are created but lookup types is empty and it cuases many errors at startup.

Dear Bahareh,

Please do the following:
let's assume the database you use is called cmdbuild
 
1) Stop tomcat
2) Drop database cmdbuild
3) Create a new database cmdbuild
4) Now, restore Ready2Use database:
 
For a database with demo data, use file database.backup:

pg_restore --username postgres --dbname cmdbuild --disable-triggers -j 5 database.backup
 
For an empty database, use database_empty.backup
pg_restore --username postgres --dbname cmdbuild --disable-triggers -j 5 database_empty.backup
 
5) Restart tomcat

Previously Tecnoteca wrote:

Dear Bahareh,
Please do the following:
let's assume the database you use is called cmdbuild
 
1) Stop tomcat
2) Drop database cmdbuild
3) Create a new database cmdbuild
4) Now, restore Ready2Use database:
 
For a database with demo data, use file database.backup:

pg_restore --username postgres --dbname cmdbuild --disable-triggers -j 5 database.backup
 
For an empty database, use database_empty.backup
pg_restore --username postgres --dbname cmdbuild --disable-triggers -j 5 database_empty.backup
 
5) Restart tomcat

 

resolving [pg_restore, -U, {database.user}, -h, {database.host}, -p, {database.port}, -d, {database.name}, --disable-triggers, {database.file}]
executing: [pg_restore, -U, postgres, -h, 127.0.0.1, -p, 5432, -d, cmdbuild, --disable-triggers, ./../resources/database.backup]
Password: 
exit value: 0
resolving [cp, -b, {logo.file}, {splash_blue.file}, {splash_gray.file}, {webapp.root}/images/]
executing: [cp, -b, ./../resources/logo.jpg, ./../resources/splash.png, ./../resources/splash-gray.png, /opt/tomcat-8/webapps/images/]
exit value: 1
cp: l'obiettivo '/opt/tomcat-8/webapps/images/' non è una directory
Exception in thread "main" java.lang.RuntimeException: error executing command
at com.tecnoteca.cmdbuild.ready2use.Main$ExecuteShellComand.execute(Main.java:88)
at com.tecnoteca.cmdbuild.ready2use.Main.main(Main.java:228)