nextcloud / ios

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

Autoupload failed with 1 picture #611

Open MeiRos opened 6 years ago

MeiRos commented 6 years ago

Expected behaviour

All pics should uploaded automatically. If upload fails, then should try again later.

Actual behaviour

First shot (05.07.2018-18.15-9249.jpg) of a 7 shots in a minute was still not uploaded after a day. Shot times: 18:15.11, .37, .44, .45, and .49 After those, few pics more were taken quite soon.

Steps to reproduce

Take 7 pics in a minute and see if all is uploaded or not

iOS version

11.3.1

App version

2.21.3.1

Server configuration

Operating system: Centos 7 Web server: nginx/1.15.0 Database: 10.1.34-MariaDB PHP version: PHP 7.2.6 Nextcloud version: (see Nextcloud admin page) 13.0.4

Logs time UTC +0 iPhone time UTC +3

{"reqId":"AeaqBqlJqC4SMihl5n4f","level":4,"time":"2018-07-05T20:00:20+00:00","remoteAddr":"11.111.111.111","user":"username","app":"webdav","method":"PUT","url":"\/remote.php\/webdav\/Puhelimesta\/05.07.2018-18.15-9249.jpg","message":"Exception: {\"Exception\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Exception\\\\FileLocked\",\"Message\":\"\\\"Puhelimesta\\\" is locked\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/nginx\\\/domains\\\/domain.name\\\/public\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1096): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->createFile('05.07.2018-18.1...', Resource id #20)\\n#1 \\\/home\\\/nginx\\\/domains\\\/domain.name\\\/public\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(529): Sabre\\\\DAV\\\\Server->createFile('Puhelimesta\\\/05....', Resource id #20, NULL)\\n#2 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPut(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#3 \\\/home\\\/nginx\\\/domains\\\/domain.name\\\/public\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#4 \\\/home\\\/nginx\\\/domains\\\/domain.name\\\/public\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:PUT', Array)\\n#5 \\\/home\\\/nginx\\\/domains\\\/domain.name\\\/public\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#6 \\\/home\\\/nginx\\\/domains\\\/domain.name\\\/public\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(80): Sabre\\\\DAV\\\\Server->exec()\\n#7 \\\/home\\\/nginx\\\/domains\\\/domain.name\\\/public\\\/remote.php(164): require_once('\\\/home\\\/nginx\\\/dom...')\\n#8 {main}\",\"File\":\"\\\/home\\\/nginx\\\/domains\\\/domain.name\\\/public\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php\",\"Line\":168}","userAgent":"Mozilla\/5.0 (iOS) Nextcloud-iOS\/2.21.3","version":"13.0.4.0"}

Similar messages have appeared 2 times before, but those pics were uploaded to the Nextcloud. This account and iOS app have been in use about 2 months. This was (hopefully) first time pic didn't upload.

11.111.111.111 - username [05/Jul/2018:20:00:05 +0000] "GET /ocs/v1.php/cloud/capabilities?format=json HTTP/2.0" 200 750 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:05 +0000] "GET /ocs/v2.php/cloud/activity?format=json HTTP/2.0" 200 588 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:05 +0000] "GET /ocs/v2.php/cloud/user?format=json HTTP/2.0" 200 233 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:06 +0000] "PROPFIND /remote.php/webdav HTTP/2.0" 207 785 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - - [05/Jul/2018:20:00:06 +0000] "GET /index.php/avatar/username/128 HTTP/1.1" 200 5299 "-" "Nextcloud/1 CFNetwork/897.15 Darwin/17.5.0"
11.111.111.111 - username [05/Jul/2018:20:00:06 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/2.0" 200 74 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:06 +0000] "GET /ocs/v1.php/apps/files_sharing/api/v1/shares HTTP/2.0" 200 198 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:06 +0000] "REPORT /remote.php/dav/files/username HTTP/2.0" 207 941 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:07 +0000] "PROPFIND /remote.php/webdav/Photos/25.03.2016-17.54-2257.jpg HTTP/2.0" 207 817 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:11 +0000] "SEARCH /remote.php/dav HTTP/2.0" 207 1645316 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:15 +0000] "PROPFIND /remote.php/webdav HTTP/2.0" 207 4515 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:17 +0000] "PROPFIND /remote.php/webdav/Puhelimesta HTTP/2.0" 207 777 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:18 +0000] "PROPFIND /remote.php/webdav/Puhelimesta HTTP/2.0" 207 236643 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:29 +0000] "PROPFIND /remote.php/webdav/Puhelimesta HTTP/2.0" 207 239259 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:17 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.16-9259.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:18 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.16-9257.jpg HTTP/2.0" 204 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:20 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.15-9249.jpg HTTP/2.0" 423 231 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:23 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.21-9265.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:25 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.21-9264.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:25 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.21-9261.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
11.111.111.111 - username [05/Jul/2018:20:00:25 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.21-9260.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"

11.111.111.111 is wifi connection 2.2.2.2 slow mobile connection and other pics, which are not shown in the log above, was uploaded with it. (See log above, file with http code 204 was already uploaded. See below)

The not uploaded file have first http code 499 with mobile connection. Later it have http code 423 with wifi connection.

2.2.2.2 - username [05/Jul/2018:15:56:11 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.15-9250.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
2.2.2.2 - username [05/Jul/2018:15:57:23 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.15-9251.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
2.2.2.2 - username [05/Jul/2018:15:57:35 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.15-9252.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
2.2.2.2 - username [05/Jul/2018:15:59:32 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.16-9257.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
2.2.2.2 - username [05/Jul/2018:15:59:39 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.16-9258.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
2.2.2.2 - username [05/Jul/2018:15:59:44 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.15-9249.jpg HTTP/2.0" 499 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
2.2.2.2 - username [05/Jul/2018:16:00:02 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.16-9256.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
2.2.2.2 - username [05/Jul/2018:16:00:05 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.15-9254.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
2.2.2.2 - username [05/Jul/2018:16:00:09 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.15-9255.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
2.2.2.2 - username [05/Jul/2018:16:00:10 +0000] "PUT /remote.php/webdav/Puhelimesta/05.07.2018-18.15-9253.jpg HTTP/2.0" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.21.3"
marinofaggiana commented 6 years ago

Hi, try new version in TestFlight. thanks

MeiRos commented 6 years ago

@marinofaggiana Email sent to the TestFlight's address.

Is that known problem with older apps that some pics (or files) may not be uploaded?

instantlinux commented 5 years ago

I filed a similar report in #770 with more detail on how to reproduce, by forcing upload failures with an nginx proxy, setting the server back to normal and then retrying the iOS app (er, well, it doesn't retry).