Can't clear maintenance flag after aborted backup

Running self-installed Ghost, but backup aborted and now can’t clear a flag causing a popup on Settings page saying “Ghost is currently undergoing maintenance, please wait a moment then retry”.

The site is up and live, but there must be a flag somewhere that is not cleared. I looked at migration_lock table, root directory, etc., but can’t find anything. Help?

Ghost Ghost-CLI version: 1.28.2
Ghost version: 5.130.2

P.S. If it helps, browser devtools console shows following:

index-BVxh86CD.mjs:19516 Tp: Ghost is currently undergoing maintenance, please wait a moment then retry.
at oT (https://sitename.com/ghost/assets/admin-x-settings/index-BVxh86CD.mjs:19546:11)

1 Like

I’m not sure about this.

You could SSH to your server with Warp Terminal, which has AI integrated. You can send shell commands or AI prompts. Tell it your path to your Ghost install and the exact error and it will trace through the code to figure it out.

If your lucky, solving your first problem with it will fit into the free tier.

I use Warp, and that’s an entertaining approach. I’ll give it a shot, with low confidence.

If anyone’s curious, the issue seems to have been the rate limit burst filtering in nginx being triggered by admin/settings page requests, causing Ghost to think the site was in maintenance mode, when it wasn’t. Ghost backup triggered it by making many requests to the admin api url in a short period. Removing that burst filtering has cleared up the problem.

2 Likes

Did Warp help solve it?

To a degree, yes. Warp deconstructing the flag mostly proved that it had to be something external wrt the server itself causing Ghost to think its own services were down.