/ tech-note

Troubleshooting on updating Ghost blog

This is just my personal note as it has always keep tormenting me on every update. So I just want to go back here whenever I get to the wall.

FIRST: Update the blog

The update command is ghost update. But in my case it must be run via sudo (so sudo ghost update).

MESSAGE: Migrations are missing. Please run knex-migrator migrate.

Run sudo setup ghost migrate. It usually happens when I run the update command without sudo - it installs dependencies, but is terminated on the migration step.

Port XYZQ is already in use by another program.

This is a common bug. In my case kill the ghost process and everything works fine (it is automatically restarted).

ps -ax | grep ghost
sudo kill [PID]