This was a migration from Debian 11 to Ubuntu 22.04, then an upgrade from 3.48 (I believe) to 5.0.2. I had a few issues with the SQL database, but I got all of that sorted.
The console output you’ve shared is expected. When you go to the admin panel, Ghost checks if you are logged in and if not shows the login screen, so the 403 is expected from that check.
Would be a good idea to run ghost log -f on your server and open the network tab in your browser, and then try to log in again.
That should give you logs both from the browser and server so you can see where it’s going wrong after you hit submit.
“Unable to determine the authenticated user or integration. Check that cookies are being passed through if using session authentication.”
NoPermissionError: Authorization failed
at authorizeAdminApi (/var/www/kruugnet/blog/versions/5.0.2/core/server/services/auth/authorize.js:33:25)
at Layer.handle [as handle_request] (/var/www/kruugnet/blog/versions/5.0.2/node_modules/express/lib/router/layer.js:95:5)
at next (/var/www/kruugnet/blog/versions/5.0.2/node_modules/express/lib/router/route.js:144:13)
at authenticate (/var/www/kruugnet/blog/versions/5.0.2/core/server/services/auth/session/middleware.js:28:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)