ownCloud is software for creating and using file hosting services. ownCloud can be installed on our VPS+ hosting. In some cases, a file lock can prevent files from being removed in ownCloud. This guide explains how to remove the lock to successfully delete the file.
The error message may present as:
Files are locked
Related Articles
Edit File with File Manager
Connect via FTP and Upload Files via FileZilla
Enabling Maintenance Mode
CAUTION: This will kick out and block any users from access to ownCloud while in maintenance mode.
- Log into cPanel
- Navigate to the File Manager, located in the Files section
- Navigate to the ownCloud directory
- Inside the ownCloud document root, navigate to the config folder
- Edit the config.php file
- Look for the line
'maintenance' => false
and changefalse
totrue
- If the line is not present, add it to between
'dbtype'
and'version'
- Take note of the value for
'dbname'
EXAMPLE: In this example, maintenance mode is set to true and the 'dbname' value is imhkmc5_ownc643. - Save the updated file
Removing the File Lock
- In cPanel, navigate to phpMyAdmin, located in the Databases section
- Navigate to the database noted earlier and select the oc_file_locks table
- Check the Check All checkbox, then click Delete
CAUTION: Ensure the correct table is selected! If a table other than the oc_file_locks table in the correct database is selected, deleting all entries risks massive data loss, as well as potentially losing functionality of the site. It is strongly recommended to create a backup first! - All locked files will be unlocked
Disable Maintenance Mode
- In the config.php file, update
'maintenance' => true
back tofalse
, or remove the line - Save the updated file
- Any locked files can be deleted or overwritten now
Comments
0 comments
Article is closed for comments.