nextcloud / ios

📱 Nextcloud iOS App
https://itunes.apple.com/us/app/nextcloud/id1125420102
GNU General Public License v3.0
1.98k stars 882 forks source link

WebDAV sync OCP\Lock\LockedException #788

Open crazyyzarc opened 5 years ago

crazyyzarc commented 5 years ago

Expected behaviour

I want to synchronize my whole image library on my iPhone to Nextcloud

Actual behaviour

When synchronizing via iOS I get error messages like these:

[no app in context] Error: OCP\Lock\LockedException: "files/928bd4ce0d95f3e4e8fc51dc7815c1a1" is locked at <<closure>>

0. /var/www/nextcloud/lib/private/Files/Storage/Common.php line 778 changeLock("files/928bd4ce0d95f3e4e8fc51dc7815c1a1", 2) 1. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 615 changeLock("files/Photos/20 ... g", 2, OC\Lock\DBLockingProvider {}) 2. /var/www/nextcloud/lib/private/Files/View.php line 1970 changeLock("files/Photos/20 ... g", 2, OC\Lock\DBLockingProvider {}) 3. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php line 359 changeLock("/Photos/2018/06 ... g", 2) 4. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 219 changeLock(2) 5. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1130 put(null) 6. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 513 updateFile("Photos/2018/06/ ... g", null, null) 7. <<closure>> httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {}) 8. /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105 call_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }]) 9. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479 emit("method:PUT", [Sabre\HTTP\Requ ... }]) 10. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254 invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {}) 11. /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php line 80 exec() 12. /var/www/nextcloud/remote.php line 163 require_once("/var/www/nextcl ... p")

PUT /remote.php/webdav/Photos/2018/06/18-06-06%2018-07-49%200757.jpg from x.x.x.x by HR_c at 2019-02-11T15:15:35+01:00

Steps to reproduce

  1. Install and configure Nextcloud
  2. Downlaod iOS App and connect to Nextcloud
  3. Enable "Auto upload photos" and "Update the whole camera roll"

iOS version

12.1.4

App version

2.22.820 (2018)

Server configuration

Operating system: Ubuntu 18.04 LTS

Web server: Apache 2.4.29

Database: MySQL version 5.7.25

PHP version: php7.2

Nextcloud version: (see Nextcloud admin page) 15.0.4

pwhack commented 5 years ago

Same error here. Been having similar problems ever since v15.0.2, possibly v15 altogether.

Using official Nextcloud Docker image (15.0.4, sha256:c0a00b71f570f78b712dc8a536425f919725896f41855cf0a606a7969e4b0616).

Backed by official MariaDB Docker image (10.3.12, sha256:1571059e8458a8cd7d7d98d65ffb5ed38fe3812a47ce8ac47f830f022af15fe2).

Fronted by official nginx Docker image (1.15.8, sha256:f09fe80eb0e75e97b04b9dfb065ac3fda37a8fac0161f42fca1e6fe4d0977c80).

Client app v2.22.8.20 on iOS v12.1.4.

bangert commented 4 years ago

I've just disabled file locking on my nextcloud server (version 18.0.4) in order to get the IOS app to be able to auto upload. the server is using sqlite as backend - no memcache or redis involved.

ainquisitive commented 4 years ago

I've just disabled file locking on my nextcloud server (version 18.0.4) in order to get the IOS app to be able to auto upload. the server is using sqlite as backend - no memcache or redis involved.

Could you tell us how you did it ..?

I'm having same error.

josch commented 3 years ago

I've just disabled file locking on my nextcloud server (version 18.0.4) in order to get the IOS app to be able to auto upload. the server is using sqlite as backend - no memcache or redis involved.

Could you tell us how you did it ..?

I'm having same error.

You can disable file locking by putting the following line into your config.php:

'filelocking.enabled' => false,