Hi there,
I upgrade a self-hosted Ghost instance from version 4.48.7 to latest 5.22.6 yesterday following this guide: Ghost Docs.
The ghost update
command showed successful upgrade, and the public blog site is functioning.
However, when I logged into the admin site at /ghost, I noticed these issues:
- On the dashboard, the “Recent posts” section showed “No published posts yet.”
- The “Posts” page showed 404, and all the pages under it, “Drafts”, “Scheduled”, and “Published” all showed 404
- Other pages were working fine: “Pages”, “Tags”, “Settings”, etc.
Database:
- Check MySQL version to be above MySQL 8: Ver 14.14 Distrib 5.7.40, for Linux (x86_64)
- Checked that my production database’s “posts” table does have all the posts records still present.
Logs:
- There were no obvious errors in the error log
- The relevant log entry showed 404 but I couldn’t understand why this request was returning 404.
"req": {
"meta": {
"requestId": "dd04f71d-3415-4636-a1a7-4317558bfa48",
"userId": "1"
},
"url": "/posts/?formats=mobiledoc%2Clexical&limit=30&page=1&filter=status%3A%5Bdraft%2Cscheduled%2Cpublished%2Csent%5D",
"method": "GET",
"originalUrl": "/ghost/api/admin/posts/?formats=mobiledoc%2Clexical&limit=30&page=1&filter=status%3A%5Bdraft%2Cscheduled%2Cpublished%2Csent%5D",
"params": {},
...
"query": {
"formats": "mobiledoc,lexical",
"limit": "30",
"page": "1",
"filter": "status:[draft,scheduled,published,sent]"
}
...
"res": {
"_headers": {
"x-powered-by": "Express",
"vary": "Accept-Version, Accept-Encoding",
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
"content-type": "application/json; charset=utf-8",
"content-length": "242",
"etag": "W/\"f2-96AX1JJLqQmsWSdF3L13JjA0Nto\""
},
"statusCode": 404,
"responseTime": "20ms"
},
"msg": "",
"time": "2022-11-05T07:49:49.831Z",
"v": 0
Any help and pointers on where I can look next for the root cause of this issue would be much appreciated.