-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCA\DAV\Connector\Sabre\Exception\FileLocked: "Myfile" is locked #11220
Comments
I'm not sure about the root case what causes this error, but you might want to clear the redis database to solve this error. Redis holds the file locking status in your case. Execute following command on your server:
|
Thanks but the error comes again :/ And scan with sudo -u www-data php occ files:scan no results. (Danke Patrick, aber der Fehler kommt immer wieder, egal wie oft ich die DB leere. Sobald ein neuer Upload gestartet wird kommt der Fehler immer wieder.) |
Also clearing this could lead to race conditions during that time. We are investigating what this could cause - see #9001 and #8239 that the bot linked. |
no fix? only closed.. |
As a duplicate of the linked tickets ... |
I can unfortunately reliably replicate lock errors with new nextcloud installs on both antergos using docker as well as on freenas - both using recommending caching (apcu local & redis locking). Unless I'm missing something big this code is not production ready. |
Steps to reproduce
Install Virtual Machine from www.techandme.se
Upload files using the Windows Desktop Client
Expected behaviour
Upload the files
Actual behaviour
Error messages in the Nextcloud server and on the client
OCA\DAV\Connector\Sabre\Exception\FileLocked: "Apps" is locked
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:
OCA\DAV\Connector\Sabre\Directory->createFile("license.txt", null)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 529:
Sabre\DAV\Server->createFile("files/rogls ... t", null, null)
Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:
call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:
Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/var/www/nextcloud/apps/dav/lib/Server.php - line 293:
Sabre\DAV\Server->exec()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:
OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 163:
require_once("/var/www/ne ... p")
Server configuration
Operating system: Ubuntu 18.04 OVA
Web server: Apache 2.4
Database: PostgreSQL 10.3
PHP version: PHP-FPM 7.2
Nextcloud version: 14.00
Updated from an older Nextcloud/ownCloud or fresh install: VM from techandme.se
Where did you install Nextcloud from: VM from techandme.se
Signing status:
Signing status
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Enabled:
Disabled:
Nextcloud configuration:
{
"system": {
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"localhost",
"XXXXXX",
"XXXXXX",
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"dbtype": "pgsql",
"version": "14.0.0.19",
"overwrite.cli.url": "https://XXX.de/",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"instanceid": "REMOVED SENSITIVE VALUE",
"mail_smtpmode": "smtp",
"log_rotate_size": "10485760",
"memcache.local": "\OC\Memcache\Redis",
"filelocking.enabled": true,
"memcache.distributed": "\OC\Memcache\Redis",
"memcache.locking": "\OC\Memcache\Redis",
"redis": {
"host": "REMOVED SENSITIVE VALUE",
"port": 0,
"timeout": 0,
"dbindex": 0,
"password": "REMOVED SENSITIVE VALUE"
},
"htaccess.RewriteBase": "/",
"loglevel": "2",
"log_type": "file",
"logfile": "/mnt/ncdata/nextcloud.log",
"logtimezone": "Europe/Berlin",
"maintenance": false,
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtpauth": 1,
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"mail_smtpport": "25",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE"
}
}
Are you using external storage, if yes which one: local/smb/sftp/... --> no
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... --> no
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
nextcloud2.log
``
`
Browser log
Browser log
The text was updated successfully, but these errors were encountered: