Debug Information:
OS: Ubuntu, v18.04.5 LTS
Node Version: v12.18.4
Ghost Version: 3.34.0
Ghost-CLI Version: 1.14.1
Environment: production
Command: 'ghost restart'
Message: Migration lock was never released or currently a migration is running.
Help: If you are sure no migration is running, check your data and if your database is in a broken state, you could run `knex-migrator rollback`.
Suggestion: journalctl -u ghost_coeur-digital-com-1 -n 50
Stack: Error: Migration lock was never released or currently a migration is running.
at Server.<anonymous> (/home/superdetroit/.nvm/versions/node/v12.18.4/lib/node_modules/ghost-cli/lib/utils/port-polling.js:38:28)
at Object.onceWrapper (events.js:421:28)
at Server.emit (events.js:315:20)
at emitCloseNT (net.js:1654:8)
at processTicksAndRejections (internal/process/task_queues.js:83:21)
I check all permission and also unlock the db MariaDB [db]> UPDATE migrations_lock set locked=0 where lock_key='km01';
When i try the roll back i got an error too.
Any idea?
Thanks
[2020-09-24 08:37:03] ERROR The server has encountered an error.
The server has encountered an error.
Error ID:
5b309fa0-fe30-11ea-adc6-592a976ab35d
----------------------------------------
InternalServerError: The server has encountered an error.
at new KnexMigrateError (/var/www/ghost/versions/3.34.0/node_modules/knex-migrator/lib/errors.js:7:26)
at Object.loadConfig (/var/www/ghost/versions/3.34.0/node_modules/knex-migrator/lib/utils.js:44:15)
at new KnexMigrator (/var/www/ghost/versions/3.34.0/node_modules/knex-migrator/lib/index.js:18:24)
at /var/www/ghost/versions/3.34.0/node_modules/knex-migrator/bin/knex-migrator-health:16:28
at tryCatcher (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/promise.js:673:18)
at Promise._resolveCallback (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/promise.js:466:57)
at Promise._settlePromiseFromHandler (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/promise.js:559:17)
at Promise._settlePromise (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/promise.js:725:18)
at _drainQueueStep (/var/www/ghost/versions/3.34.0/node_modules/bluebird/js/release/async.js:93:12)
TypeError: Cannot read property 'connection' of undefined
at exports.Provider.sanitizeDatabaseProperties (/var/www/ghost/versions/3.34.0/core/shared/config/utils.js:103:25)
at Object.loadNconf (/var/www/ghost/versions/3.34.0/core/shared/config/index.js:52:11)
at Object.<anonymous> (/var/www/ghost/versions/3.34.0/core/shared/config/index.js:83:27)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/var/www/ghost/versions/3.34.0/MigratorConfig.js:1:16)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)