So I found the migrations_lock
table and updated the lock to 0
as per Migration lock after updating Ghost - #4 by KeenenCharles - but when I sudo systemctl restart ghost_jaguart-tech
the MigrationsLock error recurrs, and the database has been updated to 1
again…
I also tried ghost update --rollback
- which fails with permissions because the Ghost logs are owned by Ghost rather than normal user. Opened the permissions on the logs - but --rollback fails at the systemctl stop
stage.
ghost update --force
says it has succeeded, but systemctl start
and while it thinks its running, syslog says:
{
message: {
statusCode: 500,
errorType: 'InternalServerError',
level: 'critical',
message: "Ghost was able to start, but errored during boot with: EACCES: permission denied, open '/var/www/www.jaguart.tech/content/data/the-art-of-jagu.ghost.2023-11-06-07-08-11.json'",
id: '3ee655f0-7c73-11ee-bf5e-7d632264e5ee',
name: 'InternalServerError',
code: 'EACCES',
property: null,
redirect: null,
hideStack: false,
errno: -13,
syscall: 'open',
path: '/var/www/www.jaguart.tech/content/data/the-art-of-jagu.ghost.2023-11-06-07-08-11.json'
}
}
The file that is is unable to open does not exist - it has the MigrationsLock timestamp in it’s name. So at a guess, the reinstall even with --force is missing a step…
Not sure what to try next - any help appreciated.