SQLite mode (SpinFire Publish 8.6.2+)
Starting with SpinFire Publish (CAD Publisher) 8.6.2, customers can now use an embedded SQLite database instead of ArangoDB.
This is called SQLite mode.
SQLite mode makes it easier to install or update SpinFire Publish as there is no need to deploy ArangoDB.
This feature is in beta. Once out of beta, SpinFire Publish will exclusively use SQLite.
Migrating an existing installation
An existing installation of SpinFire Publish (CAD Publisher) based on ArangoDB must be migrated before it can use SQLite mode. This is a one-time operation done by running a migration program called CadPublisherArangoMigrator.exe
.
The program connects to ArangoDB using the same network settings as Centro Web App.
It turns off the applications, deploys the ArangoDB database, migrates its content to an SQLite database and sets a system environment variable CAD_PUBLISHER_SQLITE=true
to toggle SQLite mode on.
Follow the steps below to perform the migration:
Create a backup of the ArangoDB database.
Download and extract the ZIP file
CadPublisherArangoMigrator.zip
Download
C7-deploy-8.7.x.x.zip
and place it next toCadPublisherArangoMigrator.exe
.
You don’t need to extract the zip file, the migration program will do it automatically.If you have installed
Centro Web App
in a different folder than the defaultC:\inetpub\wwwroot\Centro
, openCadPublisherArangoMigrator.exe.config
and updateCentroConfigPath
setting with the correct value.Open an administrator Command Prompt in the folder that contains
CadPublisherArangoMigrator.exe
.Run
CadPublisherArangoMigrator.exe
from the command prompt.Enter the password for ArangoDB
root
user and press Enter.Wait for the migration to complete. If successful, you will see
Migration Successful!
.
If an error occurs, refer to the troubleshooting section below.(Optional) Uninstall ArangoDB.
Restart the machine. This is required to make sure that the environment variable will take effect everywhere (e.g. in IIS).
Upgrade Centro Web App
Run the installer. When prompted for ArangoDB credentials, enter dummy values.
Start
CentroPool
in IISNavigate to your Centro instance to make sure it is running correctly
Upgrade and start the Pipeline services
New installation
Set
CAD_PUBLISHER_SQLITE=true
as system environment variableInstall Centro Web App
When prompted for ArangoDB credentials, enter dummy values.
Navigate to your Centro instance to make sure it is running correctly
Install the Pipeline services
Troubleshooting
Failed to deploy database
Check the log files for more information:
CentroWebApp00.log
anddeploy_log_<appVersion>_<dd-MM-yyyy-HHmmss>.txt
Make sure that the IIS application pool (usually
CentroPool
) has write access to the folder that contains the database file:<ProgramDataRoot>\Centro7\
. The default isC:\ProgramData\Actify\Centro7\
.
Attempt to write a readonly database
Make sure that the IIS application pool (usually
CentroPool
) has write access to the folder that contains the database file:<ProgramDataRoot>\Centro7\
. The default isC:\ProgramData\Actify\Centro7\
.
HTTP Error 500.0 - Internal Server Error
Ensure that the the IIS application pool
CentroPool
is started.