Ghost Login (Bad Request) post update to v5.1.1

I am unable to login to ghost.

Admin page shows error BAD REQUEST and not login area.

LOG:

Jun 1 02:50:58 AM [2022-05-31 21:20:58] ERROR “GET /ghost/” 400 7ms
Jun 1 02:50:58 AM
Jun 1 02:50:58 AM Unable to find admin template file /var/lib/ghost/versions/4.48.0/core/server/web/admin/views/default-prod.html
Jun 1 02:50:58 AM IncorrectUsageError: Unable to find admin template file /var/lib/ghost/versions/4.48.0/core/server/web/admin/views/default-prod.html
Jun 1 02:50:58 AM These template files are generated as part of the build process
Jun 1 02:50:58 AM Please see Ghost Docs
Jun 1 02:50:58 AM
Jun 1 02:50:58 AM “These template files are generated as part of the build process”
Jun 1 02:50:58 AM “Please see Ghost Docs
Jun 1 02:50:58 AM
Jun 1 02:50:58 AM Error ID:
Jun 1 02:50:58 AM 902cc4f0-e127-11ec-ae8c-1dbd403a9cc7
Jun 1 02:50:58 AM
Jun 1 02:50:58 AM ----------------------------------------

This is after updating to new version through Ghost CLI

The error suggests your instance is loading v4.48.0 for some reason. Are you sure the 5.0.0 update completed with no errors?

Yes it is loading v4.48.0 even though 5.0.0 update completed. There seems to something missing and this is why Login page returns Bad request error.