CMDBuild Forum

Upgrade guide 2.5.1 to 3.1

Hi, Technoteca. I am Alek and I have a question about upgrade curently 2.5.1 to 3.1. So, Im on Ubuntu Server 17.10 tomcat 8 postgres 9.6. system. Is there in any manual step by step guide? I read tehnical manual but there is no clearly enough guide. So I tried couple of time to do update but with no succses. What Im doing - stop tomcat, remove cmbuild folder and war file, upload new one war, start tomcat. This war enough when make previous updates.
When I used to make v. 2 updates, a gui interface similar to Linux always came out after the upload of the war file in browser. So i want to move to new interface and version but I dont know how. Please make some guide step by step here in this tread or even better in tehnical manual. Thanks in advance

I have created my own setup guide based on some research, trial and error. I set up a new server with CMDBuild 3.1 and moved the database over.

It’s quite easy to configure CMDBuild manually when you know how. Basically you just have to change the database.conf-file and put it in //conf/ where is the same name as the cmdbuild folder in webapps as described in webapps//WEB-INF/README.txt.

CMDBuild takes care of the database upgrade when you open it the first time. If you get any errors along the way, just check the log file (e.g. /var/log/tomcat8/cmdbuild.log).

1 Like

I’ve translated what I’ve done so far from norwegian and put it here:
audunwangen[dot]net/2019/09/cmdbuild-3-1-installation/

Any suggestions would be appreciated.

1 Like

Hi, audun.wangen1. I want to thank for all of your help here. I have a simple question if you can help I’ll be gratefull. So - where I have to put database.conf file exactly? Now my config is as follow:
database.conf is in /webapps/cmdbuild/WEB-INF/conf.
I have a copy in /var/lib/tomcat8/webapps/conf.
When I start browser on adress h t t p://x.x.x.x:8080/cmdbuild the browser redirects me to adress h t t p://x.x.x.x:8080/cmdbuild/ui/#login where nothing happend (please see uploaded file). cmdb

Maybe my conf file is not OK. I have a 3 row in it
db.url=jdbc:postgresql://localhost:5432/cmdbuild
db.username=myusername
db.password=mypassword
I think that conection betwen db and webapp not working. I try to reboot server, to start and stop cmdbuild trought Tomcat Web Application Manager - no success

Because of upgrades and security, your should put database.conf in /var/lib/tomcat8/conf/cmdbuild/. Then you can delete the conf-file in /webapps/cmdbuild/WEB-INF/conf/.

If it still doesn’t work, check /var/log/tomcat8/cmdbuild.log for errors and post them here, and I’ll try to help you figure it out.

1 Like

Dear Audin, thank you for all your help! Everything is UP and operational thanks to you! Cheers from Bulgaria!
best regards Alek!