Ghost 4.45 - Could not communicate with ghost

Hi, i followed the standard installation guide from here:

It won’t start up!!

If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:

  • What’s your URL? This is the easiest way for others to debug your issue
    https://blog.bernsteiner.net

  • What version of Ghost are you using?
    latest (4.45.0)

  • What configuration?

  • What browser?

  • What errors or information do you see in the console?
    Debug Information:
    OS: Ubuntu, v20.04.4 LTS
    Node Version: v14.19.1
    Ghost Version: 4.45.0
    Ghost-CLI Version: 1.19.3
    Environment: production
    Command: ‘ghost start’
    Message: Could not communicate with Ghost
    Suggestion: journalctl -u ghost_blog-bernsteiner-net -n 50
    Stack: Error: Could not communicate with Ghost
    at Server. (/usr/lib/node_modules/ghost-cli/lib/utils/port-polling.js:91:20)
    at Object.onceWrapper (events.js:519:28)
    at Server.emit (events.js:400:28)
    at emitCloseNT (net.js:1677:8)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)

  • What steps could someone else take to reproduce the issue you’re having?
    actual installation of ghost 4.45

Output of ghost doctor:

ghostrun@lnxsrv01 : /var/www/blog $ ghost doctor

Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.

:heavy_check_mark: Checking system Node.js version - found v14.19.1
:heavy_check_mark: Checking logged in user
:heavy_check_mark: Ensuring user is not logged in as ghost user
:heavy_check_mark: Checking if logged in user is directory owner
:heavy_check_mark: Checking current folder permissions
:heavy_check_mark: Checking system compatibility
:heavy_check_mark: Checking for a MySQL installation

  • sudo systemctl is-active ghost_blog-bernsteiner-net
    ? Sudo Password [hidden]
    :heavy_check_mark: Validating config
    :heavy_check_mark: Checking folder permissions
    :heavy_check_mark: Checking file permissions
    :heavy_check_mark: Checking content folder ownership
    :heavy_check_mark: Checking memory availability
    :heavy_check_mark: Checking binary dependencies
    :heavy_check_mark: Checking free space
    :heavy_check_mark: Checking systemd unit file
    :heavy_check_mark: Checking systemd node version - found v14.19.1

Have you run the suggested command journalctl -u ghost_blog-bernsteiner-net -n 50 ?

Also, what versions of node and nodejs are you running?

Hi, i run the suggested command:

ghostrun@lnxsrv01:/var/www/blog$ journalctl -u ghost_blog-bernsteiner-net -n 50
Hint: You are currently not seeing messages from other users and the system.
Users in groups ‘adm’, ‘systemd-journal’ can see all messages.
Pass -q to turn off this notice.
– Logs begin at Thu 2022-04-21 18:55:53 UTC, end at Sat 2022-04-23 10:55:12 UTC. –
Apr 23 07:46:42 lnxsrv01 node[10326]: message: ‘Ghost was able to start, but errored during boot with: Migration lock was never released or currently a migration is running.’
Apr 23 07:46:42 lnxsrv01 node[10326]: }
Apr 23 07:58:24 lnxsrv01 node[11298]: - Inspecting operating system
Apr 23 07:58:24 lnxsrv01 node[11298]: Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
Apr 23 07:58:24 lnxsrv01 node[11298]: Product Engineer (Node.js) - Ghost
Apr 23 07:58:26 lnxsrv01 node[11338]: [2022-04-23 07:58:26] INFO Ghost is running in production…
Apr 23 07:58:26 lnxsrv01 node[11338]: [2022-04-23 07:58:26] INFO Your site is now available on https://blog.bernsteiner.net/
Apr 23 07:58:26 lnxsrv01 node[11338]: [2022-04-23 07:58:26] INFO Ctrl+C to shut down
Apr 23 07:58:26 lnxsrv01 node[11338]: [2022-04-23 07:58:26] INFO Ghost server started in 1.978s
Apr 23 07:58:27 lnxsrv01 node[11338]: [2022-04-23 07:58:27] INFO Bootstrap client was closed.
Apr 23 07:58:27 lnxsrv01 node[11338]: [2022-04-23 07:58:27] INFO Database is in a ready state.
Apr 23 07:58:27 lnxsrv01 node[11338]: [2022-04-23 07:58:27] INFO Ghost database ready in 2.778s
Apr 23 07:58:33 lnxsrv01 node[11338]: [2022-04-23 07:58:33] INFO Stripe not configured - skipping migrations
Apr 23 07:58:33 lnxsrv01 node[11338]: [2022-04-23 07:58:33] INFO Ghost URL Service Ready in 8.613s
Apr 23 07:58:33 lnxsrv01 node[11338]: [2022-04-23 07:58:33] INFO Ghost booted in 8.746s
Apr 23 07:58:33 lnxsrv01 node[11338]: [2022-04-23 07:58:33] INFO Adding offloaded job to the
Queue
Apr 23 07:58:33 lnxsrv01 node[11338]: [2022-04-23 07:58:33] INFO Scheduling job update-check at 27 33 16 * * *. Next run on: Sat Apr 23 2022 16:33:27 GMT+0000 (Coordinated Universal Time)
Apr 23 07:58:33 lnxsrv01 node[11338]: [2022-04-23 07:58:33] INFO Bootstrap client was closed.
Apr 23 10:53:15 lnxsrv01 node[11338]: [2022-04-23 10:53:15] WARN Ghost is shutting down
Apr 23 10:53:16 lnxsrv01 node[11338]: [2022-04-23 10:53:15] WARN Ghost is shutting down
Apr 23 10:53:16 lnxsrv01 node[11338]: [2022-04-23 10:53:15] WARN Ghost has shut down
Apr 23 10:53:16 lnxsrv01 node[11338]: [2022-04-23 10:53:15] WARN Your site is now offline
Apr 23 10:53:16 lnxsrv01 node[11338]: [2022-04-23 10:53:15] WARN Ghost was running for 3 hours
Apr 23 10:53:16 lnxsrv01 node[11338]: [2022-04-23 10:53:15] WARN Ghost has shut down
Apr 23 10:53:16 lnxsrv01 node[11338]: [2022-04-23 10:53:15] WARN Your site is now offline
Apr 23 10:53:16 lnxsrv01 node[11338]: [2022-04-23 10:53:15] WARN Ghost was running for 3 hours
Apr 23 10:53:50 lnxsrv01 node[11628]: - Inspecting operating system
Apr 23 10:53:50 lnxsrv01 node[11628]: Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
Apr 23 10:53:50 lnxsrv01 node[11628]: Product Engineer (Node.js) - Ghost
Apr 23 10:53:52 lnxsrv01 node[11666]: [2022-04-23 10:53:52] INFO Ghost is running in production…
Apr 23 10:53:52 lnxsrv01 node[11666]: [2022-04-23 10:53:52] INFO Your site is now available on http://blog.bernsteiner.net/
Apr 23 10:53:52 lnxsrv01 node[11666]: [2022-04-23 10:53:52] INFO Ctrl+C to shut down
Apr 23 10:53:52 lnxsrv01 node[11666]: [2022-04-23 10:53:52] INFO Ghost server started in 1.925s
Apr 23 10:53:53 lnxsrv01 node[11666]: [2022-04-23 10:53:53] INFO Bootstrap client was closed.
Apr 23 10:53:53 lnxsrv01 node[11666]: [2022-04-23 10:53:53] INFO Database is in a ready state.
Apr 23 10:53:53 lnxsrv01 node[11666]: [2022-04-23 10:53:53] INFO Ghost database ready in 2.723s
Apr 23 10:53:59 lnxsrv01 node[11666]: [2022-04-23 10:53:59] INFO Stripe not configured - skipping migrations
Apr 23 10:53:59 lnxsrv01 node[11666]: [2022-04-23 10:53:59] INFO Ghost URL Service Ready in 8.639s
Apr 23 10:53:59 lnxsrv01 node[11666]: [2022-04-23 10:53:59] INFO Ghost booted in 8.776s
Apr 23 10:53:59 lnxsrv01 node[11666]: [2022-04-23 10:53:59] INFO Adding offloaded job to the queue
Apr 23 10:53:59 lnxsrv01 node[11666]: [2022-04-23 10:53:59] INFO Scheduling job update-check at 30 25 19 * * *. Next run on: Sat Apr 23 2022 19:25:30 GMT+0000 (Coordinated Universal Time)
Apr 23 10:53:59 lnxsrv01 node[11666]: [2022-04-23 10:53:59] INFO Bootstrap client was closed.
Apr 23 10:55:12 lnxsrv01 node[11666]: [2022-04-23 10:55:12] WARN Ghost is shutting down
Apr 23 10:55:12 lnxsrv01 node[11666]: [2022-04-23 10:55:12] WARN Ghost is shutting down
Apr 23 10:55:12 lnxsrv01 node[11666]: [2022-04-23 10:55:12] WARN Ghost has shut down
Apr 23 10:55:12 lnxsrv01 node[11666]: [2022-04-23 10:55:12] WARN Your site is now offline
Apr 23 10:55:12 lnxsrv01 node[11666]: [2022-04-23 10:55:12] WARN Ghost was running for a minute
Apr 23 10:55:12 lnxsrv01 node[11666]: [2022-04-23 10:55:12] WARN Ghost has shut down
Apr 23 10:55:12 lnxsrv01 node[11666]: [2022-04-23 10:55:12] WARN Your site is now offline
Apr 23 10:55:12 lnxsrv01 node[11666]: [2022-04-23 10:55:12] WARN Ghost was running for a minute

Regards Node Version:
ghostrun@lnxsrv01 : /var/www/blog $ node -v
v14.19.1
ghostrun@lnxsrv01 : /var/www/blog $

Just for you Info - the same behavior i have had with Node Version 16.13.0 and 16.14.x

Thanks!
Best regards
Martin

Just to add another comment - the migration issue i solved with update the table migrations_lock within mysql…