Upgrading SanteDB iCDR with large databases
Issue: After installing an upgrade for a SanteDB iCDR server, the service starts never finishes, and it is logged that a database update has failed.
Applies To:
SanteDB iCDR (Version 2.1.x)
Symptoms:
Upon starting the Windows Service or Linux daemon you notice that the startup takes a long time
When attempting to access the server via an API or dCDR you receive a 503 error
In the SanteDB log file there are log entries noting:
Solutions:
Note the update file name in the log (example:
20220112-01
) and locate the equivalent SQL file in$installdir$/data/sql/updates/20220112-PSQL.sql
(note: Firebird database have-FBSQL
as their suffix)Open a connection to the database using a client tool (like PGAdmin, DBeaver, etc.)
Run the update file manually
Kill the SanteDB host process
Restart the SanteDB iCDR host process
Last updated