Issues with the Database in Production

Hi,

I am having issues with updating my application on production. every time i make changes in production and re upload the war files, it gives the “Please contact system administrator” error which is cleared by dropping all the tables in the database so the application can create the tables itself (which make me lose all the data that was in the database)… what could be the problem?

Regards,
Susan

Hi,

  1. When you meet errors on production server, e.g. when server fails to start - you always should be looking into CUBA logs and application server logs first.

How to setup logs and where to find them, take a look to a corresponding deployment option page: Deployment Options - CUBA Platform. Developer’s Manual

Regarding problem description, I can guess that you have forgot to enable “cuba.automaticDatabaseUpdate = true” application property.
This property can be enabled when building WAR.
https://doc.cuba-platform.com/manual-7.2/build.gradle_buildWar.html

hi, when i set the cuba.automaticDatabaseUpdate = true application property, it gives me the error but when i set it to false it works just fine but it is not updating the database of course