# How to update grocy?

**URL:** https://forum.yunohost.org/t/how-to-update-grocy/25961
**Category:** Support apps
**Tags:** grocy, english
**Created:** [August 12, 2023, 3:31pm UTC](https://forum.yunohost.org/t/how-to-update-grocy/25961 "2023-08-12T15:31:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![CookieAlpha](https://forum.yunohost.org/user_avatar/forum.yunohost.org/cookiealpha/32/3393_2.png) [@CookieAlpha](https://forum.yunohost.org/u/CookieAlpha)
#### Post date: [August 12, 2023, 3:31pm UTC](https://forum.yunohost.org/t/how-to-update-grocy/25961/1 "2023-08-12T15:31:56Z")

</div>

Hi,

I’m a beginner with Yunohost, and I tried to update my Grocy App from 4.0.0~ynh3 to 4.0.1~ynh1.  
However, when the update completed, grocy webview just showed a barcode when opened. I looked on grocy’s guide and found that I needed to do this in order to upgrade :

```auto
* Check `config-dist.php` for new configuration options and add them to your `data/config.php` where appropriate (the default values from `config-dist.php` will be used for not in `data/config.php` defined settings)
* Empty the `data/viewcache` directory

```

I tried to access those file using the command line but couldn’t find them.

As I said, I’m a beginner so any help would really be appreciated. Thank you !

---

<div class="post-metadata">

### Author: ![Krakinou](https://forum.yunohost.org/user_avatar/forum.yunohost.org/krakinou/32/1702_2.png) [@Krakinou](https://forum.yunohost.org/u/Krakinou)
#### Post date: [August 12, 2023, 6:34pm UTC](https://forum.yunohost.org/t/how-to-update-grocy/25961/2 "2023-08-12T18:34:46Z")

</div>

If you have an ssh access to your server, connect to it.  
then

```auto
rm -r /var/www/grocy/data/viewcache/*

```

This should empty the data/viewcache directory.  
I doubt there is anything to do for config.php, the package should have taken care of it.

---

<div class="post-metadata">

### Author: ![CookieAlpha](https://forum.yunohost.org/user_avatar/forum.yunohost.org/cookiealpha/32/3393_2.png) [@CookieAlpha](https://forum.yunohost.org/u/CookieAlpha)
#### Post date: [August 22, 2023, 10:15am UTC](https://forum.yunohost.org/t/how-to-update-grocy/25961/3 "2023-08-22T10:15:46Z")

</div>

It worked, thank you so much for your answer !

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [September 6, 2023, 10:15am UTC](https://forum.yunohost.org/t/how-to-update-grocy/25961/4 "2023-09-06T10:15:51Z")

</div>

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