How to fix “the .htaccess file does not work” message
On various distros you need to edit the /etc/apache2/apache2.conf directly and replace the “AllowOverride None” with “AllowOverride All”. I found instruction from that link:
Manually disable locking state
- put ownCloud in maintenance mode: edit
config/config.php
and change this line:
'maintenance' => true,
- Empty table
oc_file_locks
: Use tools such as phpmyadmin or connect directly to your database and run:
DELETE FROM oc_file_locks WHERE 1
- disable maintenance mode (undo first step).
Automatically reset locking state
Normally ownCloud should reset the locked state on its own via background jobs. So make sure your cron-jobs run properly (you admin page tells you when cron ran the last time): https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/background_jobs_configuration.html803
Permanent solution (if it happens regularly)
- on your own server: Use redis for this feature. It is faster and so far no problems have been reported. You can follow the instructions for memory-caching in the docs: https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/caching_configuration.html#id4689
- Shared hosting (others who can’t install redis): You can disable the file locking, edit your configuration file
config/config.php
:
'filelocking.enabled' => false,
- Disabling is no solution. If you really need a real solution, please report this error to the bugtracker (https://github.com/owncloud/core/issues32). Or join the existing discussion (if the error matches): https://github.com/owncloud/core/issues/2038093