Hi,
I updated my Ghost installation but it is not working.
eghost@ghost:/var/www/menia$ ghost install v4 --db=sqlite3
Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js
┌──────────────────────────────────────────────────────────────────────────────────────────────┐
│ Ghost 3.x and below have reached end-of-life status. │
│End-of-life software does not receive bug or security fixes, please update your Ghost version.│
│ See https://ghost.org/docs/faq/major-versions-lts/. │
└──────────────────────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────────┐
│Warning: MySQL 8 will be the required database in the next major release of Ghost.│
│ Make sure your database is up to date to ensure forwards compatibility. │
└──────────────────────────────────────────────────────────────────────────────────┘
✔ Checking system Node.js version - found v14.17.0
✔ Checking logged in user
✔ Checking current folder permissions
✔ Checking system compatibility
✔ Checking memory availability
✔ Checking free space
✔ Checking for latest Ghost version
✔ Setting up install directory
✔ Downloading and installing Ghost v4.48.0
✔ Finishing install process
? Enter your blog URL: https://menia.electronthemes-ghost.com/
✔ Configuring Ghost
✔ Setting up instance
+ sudo chown -R ghost:ghost /var/www/menia/content
✔ Setting up "ghost" system user
? Do you wish to set up Nginx? Yes
+ sudo mv /tmp/menia-electronthemes-ghost-com/menia.electronthemes-ghost.com.conf /etc/nginx/sites-available/menia.electronthemes-ghost.com.conf
+ sudo ln -sf /etc/nginx/sites-available/menia.electronthemes-ghost.com.conf /etc/nginx/sites-enabled/menia.electronthemes-ghost.com.conf
+ sudo nginx -s reload
✔ Setting up Nginx
? Do you wish to set up SSL? Yes
? Enter your email (For SSL Certificate) electronthemes@gmail.com
+ sudo /etc/letsencrypt/acme.sh --upgrade --home /etc/letsencrypt
+ sudo /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --server letsencrypt --domain menia.electronthemes-ghost.com --webroot /var/www/menia/system/nginx-root --reloadcmd "nginx -s reload" --accountemail electronthemes@gmail.com+ sudo mv /tmp/menia-electronthemes-ghost-com/menia.electronthemes-ghost.com-ssl.conf /etc/nginx/sites-available/menia.electronthemes-ghost.com-ssl.conf
+ sudo ln -sf /etc/nginx/sites-available/menia.electronthemes-ghost.com-ssl.conf /etc/nginx/sites-enabled/menia.electronthemes-ghost.com-ssl.conf
+ sudo nginx -s reload
✔ Setting up SSL
? Do you wish to set up Systemd? Yes
+ sudo mv /tmp/menia-electronthemes-ghost-com/ghost_menia-electronthemes-ghost-com.service /lib/systemd/system/ghost_menia-electronthemes-ghost-com.service
+ sudo systemctl daemon-reload
✔ Setting up Systemd
+ sudo systemctl is-active ghost_menia-electronthemes-ghost-com
? Do you want to start Ghost? Yes
+ sudo systemctl start ghost_menia-electronthemes-ghost-com
+ sudo systemctl stop ghost_menia-electronthemes-ghost-com
✖ Starting Ghost
One or more errors occurred.
1) GhostError
Message: Ghost was able to start, but errored during boot with: (EADDRINUSE) Cannot start Ghost.
Help: Is another Ghost instance already running?
Suggestion: journalctl -u ghost_menia-electronthemes-ghost-com -n 50
Debug Information:
OS: Ubuntu, v16.04.7 LTS
Node Version: v14.17.0
Ghost Version: 4.48.0
Ghost-CLI Version: 1.21.0
Environment: production
Command: 'ghost install v4 --db=sqlite3'
Additional log info available in: /home/eghost/.ghost/logs/ghost-cli-debug-2022-05-24T09_10_48_920Z.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.
Do you have any other Ghost instances installed or running? Try changing the port (ghost config set server.port 2400
) and restarting to see if it will fix the issue
Of course, then your admin panel will move to http://localhost:2400/ghost

Looked like a local install…
Hi Vikas,
Thank you for your reply.
I tried after changing the server port but it is showing the same issues.
"url": "https://menia.electronthemes-ghost.com/",
"server": {
"port": 2400,
"host": "127.0.0.1"
},
The issues
+ sudo systemctl is-active ghost_menia-electronthemes-ghost-com
✔ Checking system Node.js version - found v14.17.0
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
+ sudo systemctl is-active ghost_menia-electronthemes-ghost-com
✔ Validating config
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking binary dependencies
✔ Checking systemd unit file
✔ Checking systemd node version - found v14.17.0
+ sudo systemctl start ghost_menia-electronthemes-ghost-com
+ sudo systemctl stop ghost_menia-electronthemes-ghost-com
✖ Starting Ghost: menia-electronthemes-ghost-com
A GhostError occurred.
Message: Ghost was able to start, but errored during boot with: (EADDRINUSE) Cannot start Ghost.
Help: Is another Ghost instance already running?
Suggestion: journalctl -u ghost_menia-electronthemes-ghost-com -n 50
Debug Information:
OS: Ubuntu, v16.04.7 LTS
Node Version: v14.17.0
Ghost Version: 4.48.0
Ghost-CLI Version: 1.21.0
Environment: production
Command: 'ghost start'
Additional log info available in: /home/eghost/.ghost/logs/ghost-cli-debug-2022-05-24T16_57_42_235Z.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.
Could you please check again?
Can you share the log in: /home/eghost/.ghost/logs/ghost-cli-debug-2022-05-24T16_57_42_235Z.log
?
There is no log file stored in the location
I got logs file in the ghost installation location /var/www/menia/content/logs/
but those are also empty
Those are the Ghost logs, we need to check the CLI logs.
What happens when you run journalctl -u ghost_menia-electronthemes-ghost-com -n 50
?
This is showing when I run journalctl -u ghost_menia-electronthemes-ghost-com -n 50
eghost@ghost:/var/www/menia$ journalctl -u ghost_menia-electronthemes-ghost-com -n 50
Hint: You are currently not seeing messages from other users and the system.
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
No journal files were opened due to insufficient permissions.
Try running the same command with sudo
I got this message
eghost@ghost:/var/www/menia$ sudo journalctl -u ghost_menia-electronthemes-ghost-com -n 50
-- Logs begin at Wed 2022-05-25 01:17:50 UTC, end at Wed 2022-05-25 04:10:40 UTC. --
May 25 04:10:14 ghost.electronthemes-ghost.com node[21433]: Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
May 25 04:10:14 ghost.electronthemes-ghost.com node[21433]: https://careers.ghost.org/product-engineer-node-js
May 25 04:10:14 ghost.electronthemes-ghost.com node[21433]: - Inspecting operating system
May 25 04:10:15 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:15] INFO Ghost is running in production...
May 25 04:10:15 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:15] INFO Your site is now available on https://menia.electronthemes-ghost.com/
May 25 04:10:15 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:15] INFO Ctrl+C to shut down
May 25 04:10:15 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:15] INFO Ghost server started in 1.207s
May 25 04:10:15 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:15] INFO Bootstrap client was closed.
May 25 04:10:15 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:15] WARN Database state requires initialisation.
May 25 04:10:16 ghost.electronthemes-ghost.com systemd[1]: Stopping Ghost systemd service for blog: menia-electronthemes-ghost-com...
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] WARN Ghost is shutting down
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] WARN Ghost is shutting down
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] WARN Ghost has shut down
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] WARN Your site is now offline
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] WARN Ghost was running for a few seconds
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] ERROR Server is not running.
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]:
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: Server is not running.
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: Error Code:
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: ERR_SERVER_NOT_RUNNING
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: ----------------------------------------
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: Error [ERR_SERVER_NOT_RUNNING]: Server is not running.
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: at Server.close (net.js:1606:12)
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: at Object.onceWrapper (events.js:482:28)
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: at Server.emit (events.js:376:20)
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: at emitCloseNT (net.js:1659:8)
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: at processTicksAndRejections (internal/process/task_queues.js:81:21)
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]:
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] WARN Ghost has shut down
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] WARN Your site is now offline
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] WARN Ghost was running for a few seconds
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: newsletters
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: posts
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: posts_meta
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: users
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: oauth
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: posts_authors
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: roles
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: roles_users
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: permissions
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: permissions_users
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: permissions_roles
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: settings
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: tags
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: posts_tags
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: invites
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: brute
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: sessions
May 25 04:10:16 ghost.electronthemes-ghost.com node[21433]: [2022-05-25 04:10:16] INFO Creating table: integrations
May 25 04:10:16 ghost.electronthemes-ghost.com systemd[1]: Stopped Ghost systemd service for blog: menia-electronthemes-ghost-com.