Group folders

Fonte: ARDITI - WIKI
Saltar para a navegação Saltar para a pesquisa


Fixes

Folders not showing

If the folders are not showing on Nextcloud after an update or recovering a backup/snapshot, you need to run the following commands:

  • sudo -u www-data php /var/www/nextcloud/occ groupfolders:list
  • sudo -u www-data php /var/www/nextcloud/occ groupfolders:scan X => where X is the number of the folder you want to scan
  • sudo -u www-data php /var/www/nextcloud/occ user:list
  • sudo -u www-data php /var/www/nextcloud/occ files:scan X —home-only => where Z is the id of the user you want to scan

Failed to remove item from trashbin

This problem arises when the group folder tries to remove an item from the trash that doesn't exist. This can be caused by doing a rollback or manual edits on the database. To fix this issue, a script was created that creates the files in the log, so when the group folder tries to remove them, the files can be found.

  • ssh into nextcloud server: ssh azevinho -p 10022 -l arditiadmin
  • Fill in the password for that user
  • Go into root: sudo -i
  • Go to the directory /var/www/nextcloud-data: cd /var/www/nextcloud-data
  • Run the script: ./cleanTrashFiles.sh nextcloud.log
  • Clear the error log so you can check if the errors were fixed next time groupfolders tries to clear some items: sudo -u www-data truncate nextcloud.log --size 0