NextCloud - PostgreSQL Unlock Files

From wiki.1001solutions.net


First, put the maintenance mode on:

cd /var/www/nextcloud
sudo -u www-data php occ maintenance:mode --on


Then, delete the table content:

su postgres
psql
\l
\c nextcloud
DELETE FROM oc_file_locks;
\q


Last, remove tzhe maintenance mode:

sudo -u www-data php occ maintenance:mode --off