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

**URL:** <https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519>\
**Category:** Developer help\
**Created:** [May 31, 2022, 9:22pm UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519 "2022-05-31T21:22:19Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jon.reich](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jon.reich/32/17557_2.png) [@jon.reich](https://forum.ghost.org/u/jon.reich)\
**Post date:** [May 31, 2022, 9:22pm UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/1 "2022-05-31T21:22:19Z")

</div>

I am unable to login to ghost.

Admin page shows error BAD REQUEST and not login area.

 ![Error Image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/6/c/6c6ea64ca25efcdf986cc89dae97886f4711b108.png)

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](https://ghost.org/docs/install/source/)  
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](https://ghost.org/docs/install/source/)”  
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

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [June 1, 2022, 1:03am UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/2 "2022-06-01T01:03:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jon.reich](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jon.reich/32/17557_2.png) [@jon.reich](https://forum.ghost.org/u/jon.reich)\
**Post date:** [June 8, 2022, 7:51pm UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/3 "2022-06-08T19:51:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![FifthRate](https://avatars.discourse-cdn.com/v4/letter/f/6a8cbe/32.png) [@FifthRate](https://forum.ghost.org/u/FifthRate)\
**Post date:** [January 12, 2023, 6:40pm UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/4 "2023-01-12T18:40:00Z")

</div>

May I please bump this? I’ve been experimenting on getting Ghost 5 to run on hosted Plesk webserver. I’ve made great progress. The app installs (via Yarn) on Node 16.19.0. The setup script creates all the database tables as expected. If I go to the domain, the default Casper theme loads successfully (incidentally, it’s missing from the downloaded zip file - I had to manually put the files there before running Yarn). All the theme links seems to work. Woo hoo, right!?

But if I try to navigate to [https://domainname/ghost](https://domainname/ghost), I get the 500 error. I’m SO CLOSE. What can I do to get over the finish line??

EDIT: I can even successfully subscribe to my not-yet admin-enabled ghost instance!

---

<div class="post-metadata">

**Author:** ![FifthRate](https://avatars.discourse-cdn.com/v4/letter/f/6a8cbe/32.png) [@FifthRate](https://forum.ghost.org/u/FifthRate)\
**Post date:** [January 12, 2023, 8:08pm UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/5 "2023-01-12T20:08:57Z")

</div>

An update: I check the production error log and found this:

`"Unable to find admin template file /var/www/vhosts/DOMAIN.org/blog.DOMAIN.org/ghost/core/core/built/admin/index.html","context":"\"These template files are generated as part of the build process\"","help":"\"Please see https://ghost.org/docs/install/source/`

I confirmed that these files were not built during the install process. So in addition to the default Casper theme issue (not included in the downloaded ghost.zip file), the installation process somehow doesn’t built out the admin stuff. Is this a bug of some kind?

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [January 12, 2023, 9:48pm UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/6 "2023-01-12T21:48:28Z")

</div>

> [@FifthRate](#):
>
> Is this a bug of some kind?

No, it sounds like you’re not installing Ghost but instead pulling in/downloading the npm module (or raw source zip from GitHub?) and trying to run that. Proper installation steps can be found here:

> **[How to install Ghost, the official guide](https://ghost.org/docs/install/)**
>
> Everything you need to know about working with the Ghost professional publishing platform.

---

<div class="post-metadata">

**Author:** ![FifthRate](https://avatars.discourse-cdn.com/v4/letter/f/6a8cbe/32.png) [@FifthRate](https://forum.ghost.org/u/FifthRate)\
**Post date:** [January 12, 2023, 10:23pm UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/7 "2023-01-12T22:23:59Z")

</div>

In fact, I did download the source zip from Github. Plesk has built-in Node.js support. You configure it by supplying the information necessary to build the project. For example:

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/1/4/146e30ef246a163a3bba24ae4feea4dbcc4a529f.png)

At this point, all you have to do is click the “Yarn Install” button in Plesk and the appropriate dependencies from the package.json file are pulled and installed on the server. When you restart the server and navigate to the web page, the database is initialized as expected…

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/7/0/70aa8dac1c46b50df10bed329aed2d8f4cbde80a.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/3/d/3d84b550c554c2b724796e4b9ec7ee8f72c976f9.png)

Once this is done, if I navigate to the webroot for the ghost blog, everything loads as expected:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/8/b/8b4628d7a69f624f1dfb5b2f91e9b6d47da957b0.jpeg)

But if I navigate to /ghost to login…

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/0/7/073742bc0e18dbf2c71ab3037942b08235a0bb19.png)

I’m at a lost to understand why everything _except_ the admin stuff is built. When I go to the directory in question in the prod error log to find this file:

`/ghost/core/core/server/web/admin/views/default-prod.html`

This is the entire contents of the directory.

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/b/a/ba03bd307831a20b2b8aa66c572b08a17f41271b.png)

From what I can tell, this is the only thing that wasn’t properly built out. Does this provide any pointers?

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [January 12, 2023, 11:36pm UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/8 "2023-01-12T23:36:12Z")

</div>

> [@FifthRate](#):
>
> In fact, I did download the source zip from Github.

That’s just a copy of the raw source, it’s not an installable version of Ghost. You’ll need to follow the instructions in the link I provided above.

---

<div class="post-metadata">

**Author:** ![markstos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/markstos/32/18182_2.png) [@markstos](https://forum.ghost.org/u/markstos)\
**Post date:** [January 13, 2023, 3:05am UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/9 "2023-01-13T03:05:24Z")

</div>

Unless Plesk offers root access, I don’t think the recommended Ghost install script will work.

---

<div class="post-metadata">

**Author:** ![FifthRate](https://avatars.discourse-cdn.com/v4/letter/f/6a8cbe/32.png) [@FifthRate](https://forum.ghost.org/u/FifthRate)\
**Post date:** [January 13, 2023, 4:09am UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/10 "2023-01-13T04:09:51Z")

</div>

I’m very confused. I _already_ host two blogs on Plesk using their NodeJS support using an older version of Ghost with more or less this same process I’ve posted in this thread. I’m not sure how the install guide will help me at this point.

And everything seems to be working just fine with Ghost 5 _except_ this bit where the admin component is missing. The database is populated and the server is running. I know Ghost is packaged differently now than it was with the version is used on the two blogs that are functioning perfectly.

---

<div class="post-metadata">

**Author:** ![Detlev](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/detlev/32/24244_2.png) [@Detlev](https://forum.ghost.org/u/Detlev)\
**Post date:** [June 9, 2023, 10:34pm UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/11 "2023-06-09T22:34:19Z")

</div>

I sounds like Kevin is saying the vanilla download from git is missing install logic as opposed to following the bouncing ball of their INSTALL instructions …

---

<div class="post-metadata">

**Author:** ![Noftasmos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/noftasmos/32/27235_2.png) [@Noftasmos](https://forum.ghost.org/u/Noftasmos)\
**Post date:** [November 7, 2023, 1:04pm UTC](https://forum.ghost.org/t/ghost-login-bad-request-post-update-to-v5-1-1/30519/12 "2023-11-07T13:04:06Z")

</div>

Did you end up finding a fix for the issue you had?
