CMDBuild Forum

CMDBuild Wizard Fails on Database Setup – 'config directory not available' Error (Ubuntu 24.04.2)

Dear all,

I’m installing CMDBuild on Ubuntu 24.04.2 LTS and encountered an issue during the database configuration step in the setup wizard.

Although the PostgreSQL database has been correctly created and is accessible via terminal, the wizard fails with the following error message:

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)

It seems the application cannot find or access the configuration directory to save the settings.

I would appreciate any guidance on:

  • Which directory the application is trying to access at this point,
  • If there are additional permissions or paths that need to be set,
  • Or if this could be a misconfiguration in the Tomcat context or CMDBuild deployment.

Thanks in advance for your help!

Best regards,
Carlos França

Configuration files are saved in a folder named after the web application, located within the Tomcat conf directory: ${tomcat_dir}/conf/${webapp_name}/.

If your webapp is named cmdbuild, configuration files will be saved in ${tomcat_dir}/conf/cmdbuild/. Then, make sure that the folder has the appropriate permissions for the user starting the application.

1 Like

I thank you for the support and almost immediate response.