# Unable to update ghost. Please help

**URL:** https://forum.ghost.org/t/unable-to-update-ghost-please-help/2192
**Category:** Developer help
**Tags:** ghost-cli
**Created:** [July 30, 2018, 7:31am UTC](https://forum.ghost.org/t/unable-to-update-ghost-please-help/2192 "2018-07-30T07:31:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![gokg4](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/gokg4/32/1053_2.png) [@gokg4](https://forum.ghost.org/u/gokg4)
#### Post date: [July 30, 2018, 7:31am UTC](https://forum.ghost.org/t/unable-to-update-ghost-please-help/2192/1 "2018-07-30T07:31:30Z")

</div>

I have installed ghost on Digital Ocean a few weeks back & I am having no problems with the installation.

When trying to update I get this error message:

**An error occurred.**  
**Message: 'EACCES: permission denied, open ‘/var/www/ghost/.ghost-cli’'**

Now I am unable to update ghost. Please help.

ghost doctor command

✔ Checking system Node.js version  
✔ Checking logged in user  
✔ Ensuring user is not logged in as ghost user  
✔ Checking if logged in user is directory owner  
✔ Checking current folder permissions  
✔ Checking operating system compatibility  
✔ Checking for a MySQL installation  
Running sudo command: systemctl is-active ghost\_139-59-31-191  
ℹ Validating config [skipped]  
✔ Checking folder permissions  
✔ Checking file permissions  
✔ Checking content folder ownership  
✔ Checking memory availability

---

<div class="post-metadata">

### Author: ![kszmigiel](https://avatars.discourse-cdn.com/v4/letter/k/ec9cab/32.png) [@kszmigiel](https://forum.ghost.org/u/kszmigiel)
#### Post date: [July 31, 2018, 10:27pm UTC](https://forum.ghost.org/t/unable-to-update-ghost-please-help/2192/2 "2018-07-31T22:27:32Z")

</div>

maybe try `sudo ghost doctor`?

---

<div class="post-metadata">

### Author: ![pascalandy](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/pascalandy/32/444_2.png) [@pascalandy](https://forum.ghost.org/u/pascalandy)
#### Post date: [August 1, 2018, 2:54am UTC](https://forum.ghost.org/t/unable-to-update-ghost-please-help/2192/3 "2018-08-01T02:54:26Z")

</div>

Seems like a permission error. In the doc they refer to:

```
find ./ -type d -exec chmod 775 {} \;
find ./ ! -path "./versions/*" -type f -exec chmod 664 {} \;
```

---

<div class="post-metadata">

### Author: ![ewliang](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ewliang/32/1129_2.png) [@ewliang](https://forum.ghost.org/u/ewliang)
#### Post date: [August 5, 2018, 6:27pm UTC](https://forum.ghost.org/t/unable-to-update-ghost-please-help/2192/4 "2018-08-05T18:27:56Z")

</div>

I also had a issue updating Ghost a few weeks back. I also had something that had to do with permissions for user, and it didn’t work even when I switched to my deployment user nor running permission commands so I ended up backing up my blog’s content folder and slowly updating the version using the CLI (I had Docker so it made things a bit safer for my situation).

Here’s one guess  
Maybe try stopping your ghost instance (don’t delete it).  
Then try to update it again using the CLI.  
Once it’s finished updating, start the ghost instance once more, and see if that works.

Sometimes that works for me for other website project commands. 🙂

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)
#### Post date: [August 19, 2018, 6:32pm UTC](https://forum.ghost.org/t/unable-to-update-ghost-please-help/2192/5 "2018-08-19T18:32:37Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
