# I am having trouble updating ghost on digitalocean

**URL:** <https://forum.ghost.org/t/i-am-having-trouble-updating-ghost-on-digitalocean/23228>\
**Category:** Developer help\
**Created:** [June 3, 2021, 3:47am UTC](https://forum.ghost.org/t/i-am-having-trouble-updating-ghost-on-digitalocean/23228 "2021-06-03T03:47:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Achintpanchal1](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/achintpanchal1/32/13494_2.png) [@Achintpanchal1](https://forum.ghost.org/u/Achintpanchal1)\
**Post date:** [June 3, 2021, 3:47am UTC](https://forum.ghost.org/t/i-am-having-trouble-updating-ghost-on-digitalocean/23228/1 "2021-06-03T03:47:03Z")

</div>

can someone guide me on how to update the ghost droplet. It is showing me these errors

```
Last login: Wed Jun 2 16:01:50 2021 from 42.106.8.68
root@blog-website:~# sudo -i -u ghost-mgr
ghost-mgr@blog-website:~$ cd var/www/ghost
-bash: cd: var/www/ghost: No such file or directory
ghost-mgr@blog-website:~$ ghost update
Working directory is not a recognisable Ghost installation.
Run `ghost update` again within a folder where Ghost was installed with Ghost-CLI.
ghost-mgr@blog-website:~$

```

 ![Screenshot (82)](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/c/c11784ed9ba406a8e7cadcbca41c93ebfb691556.png)

---

<div class="post-metadata">

**Author:** ![stuwest](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@stuwest](https://forum.ghost.org/u/stuwest)\
**Post date:** [June 3, 2021, 4:25am UTC](https://forum.ghost.org/t/i-am-having-trouble-updating-ghost-on-digitalocean/23228/2 "2021-06-03T04:25:39Z")

</div>

To free up memory you can try restarting the server with the `reboot` command before doing the update.

---

<div class="post-metadata">

**Author:** ![Achintpanchal1](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/achintpanchal1/32/13494_2.png) [@Achintpanchal1](https://forum.ghost.org/u/Achintpanchal1)\
**Post date:** [June 3, 2021, 4:37am UTC](https://forum.ghost.org/t/i-am-having-trouble-updating-ghost-on-digitalocean/23228/3 "2021-06-03T04:37:30Z")

</div>

I also try that but still, it is showing that error only

---

<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:** [June 3, 2021, 8:41am UTC](https://forum.ghost.org/t/i-am-having-trouble-updating-ghost-on-digitalocean/23228/4 "2021-06-03T08:41:53Z")

</div>

> [@Achintpanchal1](#):
>
> ```auto
> ghost-mgr@blog-website:~$ cd var/www/ghost
> -bash: cd: var/www/ghost: No such file or directory
> 
> ```

I think you’re missing the `/` at the beginning here, it should likely be `/var/www/ghost`.

I would suggest running CLI commands one at a time and examining the output of each to ensure it’s worked, if it hasn’t worked you’ll usually be told why. If you try running all the commands at once or don’t examine the output and continue anyway then any further commands are unlikely to work or could have unintended consequences.

---

<div class="post-metadata">

**Author:** ![Achintpanchal1](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/achintpanchal1/32/13494_2.png) [@Achintpanchal1](https://forum.ghost.org/u/Achintpanchal1)\
**Post date:** [June 3, 2021, 9:11am UTC](https://forum.ghost.org/t/i-am-having-trouble-updating-ghost-on-digitalocean/23228/5 "2021-06-03T09:11:07Z")

</div>

kevin I try that also but still it is showing error 😔

---

<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:** [June 3, 2021, 9:24am UTC](https://forum.ghost.org/t/i-am-having-trouble-updating-ghost-on-digitalocean/23228/6 "2021-06-03T09:24:05Z")

</div>

Then you need to find the directory in which you installed Ghost and `cd` to that.

---

<div class="post-metadata">

**Author:** ![yong](https://avatars.discourse-cdn.com/v4/letter/y/b487fb/32.png) [@yong](https://forum.ghost.org/u/yong)\
**Post date:** [June 3, 2021, 9:35am UTC](https://forum.ghost.org/t/i-am-having-trouble-updating-ghost-on-digitalocean/23228/7 "2021-06-03T09:35:46Z")

</div>

You can try `ghost update --no-check-mem` to bypass CLI memory check.

---

<div class="post-metadata">

**Author:** ![Achintpanchal1](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/achintpanchal1/32/13494_2.png) [@Achintpanchal1](https://forum.ghost.org/u/Achintpanchal1)\
**Post date:** [June 3, 2021, 9:39am UTC](https://forum.ghost.org/t/i-am-having-trouble-updating-ghost-on-digitalocean/23228/8 "2021-06-03T09:39:40Z")

</div>

Brother i followed the instructions step by step of digital ocean and also watch some videos of it 😔👍🏻  
Can u guide me how to find the directory

---

<div class="post-metadata">

**Author:** ![Achintpanchal1](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/achintpanchal1/32/13494_2.png) [@Achintpanchal1](https://forum.ghost.org/u/Achintpanchal1)\
**Post date:** [June 3, 2021, 11:21am UTC](https://forum.ghost.org/t/i-am-having-trouble-updating-ghost-on-digitalocean/23228/9 "2021-06-03T11:21:49Z")

</div>

Thanks it worked brother 😇😇😇😇
