# Install fails on "Starting Ghost"

**URL:** <https://forum.ghost.org/t/install-fails-on-starting-ghost/29656>\
**Category:** Installation\
**Created:** [April 19, 2022, 9:42pm UTC](https://forum.ghost.org/t/install-fails-on-starting-ghost/29656 "2022-04-19T21:42:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aiden\_Mitchell](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/aiden_mitchell/32/3108_2.png) [@Aiden\_Mitchell](https://forum.ghost.org/u/Aiden_Mitchell)\
**Post date:** [April 19, 2022, 9:42pm UTC](https://forum.ghost.org/t/install-fails-on-starting-ghost/29656/1 "2022-04-19T21:42:22Z")

</div>

Not sure what’s going on here, there are no other errors during install…  
`ghost doctor` finds no issues. Trying `ghost start` throws a new error:

```auto
A GhostError occurred.

Message: Ghost was able to start, but errored during boot with: 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_aidenmitchell-ca -n 50

```

- What version of Ghost are you using? Version 4.40.0
- What configuration? Default, as seen here: [How to install & setup Ghost on Ubuntu 16.04, 18.04, 20.04 or 22.04](https://ghost.org/docs/install/ubuntu/)
- What browser? N/A
- What errors or information do you see in the console?

```auto
✖ Starting Ghost
One or more errors occurred.

1) GhostError

Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_aidenmitchell-ca -n 50

Debug Information:
    OS: Ubuntu, v20.04.4 LTS
    Node Version: v16.14.2
    Ghost Version: 4.44.0
    Ghost-CLI Version: 1.19.2
    Environment: production
    Command: 'ghost install'

Additional log info available in: /home/aiden/.ghost/logs/ghost-cli-debug-2022-04-19T21_36_55_300Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
aiden@ghost01:/var/www/blog$ journalctl -u ghost_aidenmitchell-ca -n 50
-- Logs begin at Tue 2022-04-19 21:06:40 UTC, end at Tue 2022-04-19 21:36:55 UTC. --
Apr 19 21:31:58 ghost01 node[2386]: [2022-04-19 21:31:58] INFO Bootstrap client was closed.
Apr 19 21:32:03 ghost01 node[2386]: [2022-04-19 21:32:03] WARN Database state requires initialisation.
Apr 19 21:32:07 ghost01 node[2386]: [2022-04-19 21:32:07] INFO Creating table: newsletters
Apr 19 21:32:09 ghost01 node[2386]: [2022-04-19 21:32:09] INFO Creating table: posts
Apr 19 21:32:13 ghost01 node[2386]: [2022-04-19 21:32:13] INFO Creating table: posts_meta
Apr 19 21:32:18 ghost01 node[2386]: [2022-04-19 21:32:18] INFO Creating table: users
Apr 19 21:32:21 ghost01 node[2386]: [2022-04-19 21:32:21] INFO Creating table: oauth
Apr 19 21:32:26 ghost01 node[2386]: [2022-04-19 21:32:26] INFO Creating table: posts_authors
Apr 19 21:32:34 ghost01 node[2386]: [2022-04-19 21:32:34] INFO Creating table: roles
Apr 19 21:32:36 ghost01 node[2386]: [2022-04-19 21:32:36] INFO Creating table: roles_users
Apr 19 21:32:38 ghost01 node[2386]: [2022-04-19 21:32:38] INFO Creating table: permissions
Apr 19 21:32:41 ghost01 node[2386]: [2022-04-19 21:32:41] INFO Creating table: permissions_users
Apr 19 21:32:42 ghost01 node[2386]: [2022-04-19 21:32:42] INFO Creating table: permissions_roles
Apr 19 21:32:43 ghost01 node[2386]: [2022-04-19 21:32:43] INFO Creating table: settings
Apr 19 21:32:45 ghost01 node[2386]: [2022-04-19 21:32:45] INFO Creating table: tags
Apr 19 21:32:47 ghost01 node[2386]: [2022-04-19 21:32:47] INFO Creating table: posts_tags
Apr 19 21:32:58 ghost01 node[2386]: [2022-04-19 21:32:58] INFO Creating table: invites
Apr 19 21:33:02 ghost01 node[2386]: [2022-04-19 21:33:02] INFO Creating table: brute
Apr 19 21:33:03 ghost01 node[2386]: [2022-04-19 21:33:03] INFO Creating table: sessions
Apr 19 21:33:06 ghost01 node[2386]: [2022-04-19 21:33:06] INFO Creating table: integrations
Apr 19 21:33:09 ghost01 node[2386]: [2022-04-19 21:33:09] INFO Creating table: webhooks
Apr 19 21:33:14 ghost01 node[2386]: [2022-04-19 21:33:14] INFO Creating table: api_keys
Apr 19 21:33:16 ghost01 node[2386]: [2022-04-19 21:33:16] INFO Creating table: mobiledoc_revisions
Apr 19 21:33:18 ghost01 node[2386]: [2022-04-19 21:33:18] INFO Creating table: members
Apr 19 21:33:22 ghost01 node[2386]: [2022-04-19 21:33:22] INFO Creating table: products
Apr 19 21:33:24 ghost01 node[2386]: [2022-04-19 21:33:24] INFO Creating table: offers
Apr 19 21:33:31 ghost01 node[2386]: [2022-04-19 21:33:31] INFO Creating table: benefits
Apr 19 21:33:34 ghost01 node[2386]: [2022-04-19 21:33:34] INFO Creating table: products_benefits
Apr 19 21:34:00 ghost01 node[2386]: [2022-04-19 21:34:00] INFO Creating table: members_products
Apr 19 21:34:30 ghost01 node[2386]: [2022-04-19 21:34:30] INFO Creating table: posts_products
Apr 19 21:35:23 ghost01 node[2386]: [2022-04-19 21:35:23] INFO Creating table: members_cancel_events
Apr 19 21:35:30 ghost01 node[2386]: [2022-04-19 21:35:30] INFO Creating table: members_payment_events
Apr 19 21:35:41 ghost01 node[2386]: [2022-04-19 21:35:41] INFO Creating table: members_login_events
Apr 19 21:35:51 ghost01 node[2386]: [2022-04-19 21:35:51] INFO Creating table: members_email_change_events
Apr 19 21:36:03 ghost01 node[2386]: [2022-04-19 21:36:03] INFO Creating table: members_status_events
Apr 19 21:36:16 ghost01 node[2386]: [2022-04-19 21:36:16] INFO Creating table: members_product_events
Apr 19 21:36:34 ghost01 node[2386]: [2022-04-19 21:36:34] INFO Creating table: members_paid_subscription_events
Apr 19 21:36:43 ghost01 node[2386]: [2022-04-19 21:36:43] INFO Creating table: labels
Apr 19 21:36:51 ghost01 node[2386]: [2022-04-19 21:36:51] INFO Creating table: members_labels
Apr 19 21:36:55 ghost01 systemd[1]: Stopping Ghost systemd service for blog: aidenmitchell-ca...
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost is shutting down
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost is shutting down
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost has shut down
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Your site is now offline
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost was running for 5 minutes
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost has shut down
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Your site is now offline
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost was running for 5 minutes
Apr 19 21:36:55 ghost01 systemd[1]: ghost_aidenmitchell-ca.service: Succeeded.
Apr 19 21:36:55 ghost01 systemd[1]: Stopped Ghost systemd service for blog: aidenmitchell-ca.
...skipping...
Apr 19 21:33:34 ghost01 node[2386]: [2022-04-19 21:33:34] INFO Creating table: products_benefits
Apr 19 21:34:00 ghost01 node[2386]: [2022-04-19 21:34:00] INFO Creating table: members_products
Apr 19 21:34:30 ghost01 node[2386]: [2022-04-19 21:34:30] INFO Creating table: posts_products
Apr 19 21:35:23 ghost01 node[2386]: [2022-04-19 21:35:23] INFO Creating table: members_cancel_events
Apr 19 21:35:30 ghost01 node[2386]: [2022-04-19 21:35:30] INFO Creating table: members_payment_events
Apr 19 21:35:41 ghost01 node[2386]: [2022-04-19 21:35:41] INFO Creating table: members_login_events
Apr 19 21:35:51 ghost01 node[2386]: [2022-04-19 21:35:51] INFO Creating table: members_email_change_events
Apr 19 21:36:03 ghost01 node[2386]: [2022-04-19 21:36:03] INFO Creating table: members_status_events
Apr 19 21:36:16 ghost01 node[2386]: [2022-04-19 21:36:16] INFO Creating table: members_product_events
Apr 19 21:36:34 ghost01 node[2386]: [2022-04-19 21:36:34] INFO Creating table: members_paid_subscription_events
Apr 19 21:36:43 ghost01 node[2386]: [2022-04-19 21:36:43] INFO Creating table: labels
Apr 19 21:36:51 ghost01 node[2386]: [2022-04-19 21:36:51] INFO Creating table: members_labels
Apr 19 21:36:55 ghost01 systemd[1]: Stopping Ghost systemd service for blog: aidenmitchell-ca...
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost is shutting down
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost is shutting down
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost has shut down
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Your site is now offline
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost was running for 5 minutes
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost has shut down
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Your site is now offline
Apr 19 21:36:55 ghost01 node[2386]: [2022-04-19 21:36:55] WARN Ghost was running for 5 minutes
Apr 19 21:36:55 ghost01 systemd[1]: ghost_aidenmitchell-ca.service: Succeeded.
Apr 19 21:36:55 ghost01 systemd[1]: Stopped Ghost systemd service for blog: aidenmitchell-ca.

```

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [April 20, 2022, 7:49am UTC](https://forum.ghost.org/t/install-fails-on-starting-ghost/29656/2 "2022-04-20T07:49:28Z")

</div>

> [@Aiden\_Mitchell](#):
>
> `Migration lock was never released`

See this thread.

> [@Migration lock after updating Ghost](https://forum.ghost.org/t/migration-lock-after-updating-ghost/5625):
>
> I’ve been running Ghost on a Heroku server for the past few months. It’s based on the Ghost on Heroku projecet. Today I tried upgrading the Ghost library from 2.9.1 to 2.14.1 and since I did I’ve been receiving the following error: Unhandled rejection MigrationsAreLockedError: Migration lock was never released or currently a migration is running. Reverting didn’t help and now I can’t modify my database become of this. Is there anything I can do?
