Nextcloud: Difference between revisions

From Leo's Notes
This page was last edited on 14 June 2020, at 23:48.
Created page with " == Troubleshooting == === Locked File === After an unexpected power loss on a server, a file was stuck in a locked state. ==== File Locks with Database ==== To clear any lo..."
 
m Added category
Line 27: Line 27:


See: https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883
See: https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883
{{Navbox Web}}[[Category:WebApp]]

Revision as of 23:48, 14 June 2020


Troubleshooting

Locked File

After an unexpected power loss on a server, a file was stuck in a locked state.

File Locks with Database

To clear any locks if using database file locks:

  1. Log in to the database
  2. Empty the oc_file_locks table with DELETE FROM oc_file_locks WHERE 1.

File Locks with Redis

File locks can also use Redis if enabled in the configuration with:

'memcache.locking' => '\\OC\\Memcache\\Redis',

To clear any locks if using Redis, just stop Redis and remove its dump.rdb file.

Disable File Locking

Alternatively, disable file locks completely by setting config/config.php:

'filelocking.enabled' => false,

Disabling is recommended if you have multiple applications that may be accessing the file at the same time.

See: https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883