CarnetApp/CarnetNextcloud

QuickNote directory is not getting removed from the server after the app is disabled and removed

jason-a69 opened this issue · 1 comments

Describe the bug
A directory is created for each user called QuickNote when you create the app, if you disable and remove the app that directory is not removed. You cannot see this directory in the files section for a user but it still syncs so it must be stored in the database somewhere? How can I remove it completely?

To Reproduce
Steps to reproduce the behavior:

  1. Login as an admin
  2. Download and enable carnet
  3. Login as a user and create some notes.
  4. Remove the app
  5. See error

Expected behavior
When carnet is removed it should not leave any historical data behind

Desktop (please complete the following information):

  • OS: Linux Mint 20.1
  • Firefox
  • Version 88

Fixed it, it was a permissions issue.

I had to ssh to my nextcloud server and manually remove the QuickNote directory for each user and then rescan the files. If you do not know what you are doing, do not proceed from here.

My nextcloud data directory is stored at /mnt/dietpi_userdata/nextcloud_data
I have substituted my user to jase

First remove the QuickNote directory, in this case for user jase
rm -fr /mnt/dietpi_userdata/nextcloud_data/files/jase/Documents/QuickNote

Then rescan the directory tree (assuming your nextcloud install is at /var/www/nextcloud)
sudo -u www-data php /var/www/nextcloud/occ files:scan jase

Repeat for each user, I am sure there is a way to automate this but I am not doing this for now.