From 7786d522d771a33034d01594566b7377560e5814 Mon Sep 17 00:00:00 2001 From: Claus Mancini Date: Thu, 29 Aug 2019 17:07:11 -0300 Subject: [PATCH] Mind to stop openproject service It is necessary to stop the service before to begin the migration by running $ sudo openproject run ./docker/mysql-to-postgres/bin/migrate-mysql-to-postgres to avoid the following error: database "openproject" is being accessed by other users --- docs/operations/migrating/packaged/postgresql-migration.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/operations/migrating/packaged/postgresql-migration.md b/docs/operations/migrating/packaged/postgresql-migration.md index 9849835086..998fe68056 100644 --- a/docs/operations/migrating/packaged/postgresql-migration.md +++ b/docs/operations/migrating/packaged/postgresql-migration.md @@ -140,7 +140,12 @@ You are now ready to migrate from MySQL to PostgreSQL. The OpenProject packages ``` sudo openproject run ./docker/mysql-to-postgres/bin/migrate-mysql-to-postgres ``` +Make sure you stopped openproject service, otherwise you will get the following error: +``` +ERROR: database "openproject" is being accessed by other users +DETAIL: There is 1 other session using the database. +``` This might take a while depending on current installation size. ## Optional: Uninstall MySQL