Cannot delete or rename folders

Hi people

After all I did not found any long term solution. I have these sync issues and errors since more than 2 years now, no matter which Owncloud or Nextcloud Version. It affects only big customers with redis cache active. My workaround at the moment is to run a daily cronjob during the night, performing these steps:

  • occ ‘files:scan --all’
  • occ ‘files:cleanup’
  • occ ‘maintenance:mode --on’
  • mysql -u root -p’inheregoesyourpassword’ -D ocdb -e ‘delete from oc_file_locks where 1’
  • occ ‘maintenance:mode --off’

Since I launched this cronjob, I did not have any sync or lock Issues.

Good Luck, Cheers zisuu