Skip to content
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

Upload not working correctly #2630

Closed
tim-krehan opened this issue May 28, 2018 · 7 comments
Closed

Upload not working correctly #2630

tim-krehan opened this issue May 28, 2018 · 7 comments

Comments

@tim-krehan
Copy link

Actual behaviour

The App uploads the file / picture / contact to 100%, but then gets stuck with full progress bar. When I check via webinterface the file is there.
After the upload ran into an timeout, i get the message an error occured. But a few seconds later it tries again and would run in the same issue.

Thats an image of the resulting files on my nextcloud (contact backup):
image

The behaviour with otherfiles is the same:
image

Expected behaviour

  • The file gets uploaded once.

Steps to reproduce

  1. Upload anything with the nextcloud app

Environment data

Android version:
7.0
Device model:
LG-H850
Stock or customized system:
Stock
Nextcloud app version:
3.1.0 beta
Nextcloud server version:
13.0.2 stable

Logs

Web server error log

Noting related realy

Nextcloud log (data/nextcloud.log) (that's an error i found a few days ago, not today. Tody there were none in the log file)

{"reqId":"iNknPu7npTDUJZxGbg9l","level":0,"time":"2018-05-20T06:35:17+00:00","remoteAddr":"2.247.254.139","user":"tim","app":"webdav","method":"HEAD","url":"/remote.php/webdav/.Contacts-Backup/2018-05-20_08-35-14.vcf","message":"Exception: {"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name .Contacts-Backup\/2018-05-20_08-35-14.vcf could not be located","Code":0,"Trace":"#0 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(81): OCA\\DAV\\Connector\\Sabre\\ObjectTree->getNodeForPath('.Contacts-Backu...')\n#1 [internal function]: Sabre\\DAV\\CorePlugin->httpGet(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#2 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#3 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:GET', Array)\n#4 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(253): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response), false)\n#5 [internal function]: Sabre\\DAV\\CorePlugin->httpHead(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#6 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#7 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:HEAD', Array)\n#8 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#9 \/var\/www\/html\/cloud\/apps\/dav\/appinfo\/v1\/webdav.php(80): Sabre\\DAV\\Server->exec()\n#10 \/var\/www\/html\/cloud\/remote.php(164): require_once('\/var\/www\/html\/c...')\n#11 {main}","File":"\/var\/www\/html\/cloud\/apps\/dav\/lib\/Connector\/Sabre\/ObjectTree.php","Line":174}","userAgent":"Mozilla/5.0 (Android) ownCloud-android/3.1.0","version":"13.0.2.1"}
{"reqId":"ku6iOjtS3d6G7TRvaiDX","level":0,"time":"2018-05-20T06:44:07+00:00","remoteAddr":"2.247.254.139","user":"tim","app":"webdav","method":"HEAD","url":"/remote.php/webdav/.Contacts-Backup/2018-05-20_08-35-14%20(2).vcf","message":"Exception: {"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name .Contacts-Backup\/2018-05-20_08-35-14 (2).vcf could not be located","Code":0,"Trace":"#0 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(81): OCA\\DAV\\Connector\\Sabre\\ObjectTree->getNodeForPath('.Contacts-Backu...')\n#1 [internal function]: Sabre\\DAV\\CorePlugin->httpGet(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#2 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#3 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:GET', Array)\n#4 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(253): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response), false)\n#5 [internal function]: Sabre\\DAV\\CorePlugin->httpHead(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#6 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#7 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:HEAD', Array)\n#8 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#9 \/var\/www\/html\/cloud\/apps\/dav\/appinfo\/v1\/webdav.php(80): Sabre\\DAV\\Server->exec()\n#10 \/var\/www\/html\/cloud\/remote.php(164): require_once('\/var\/www\/html\/c...')\n#11 {main}","File":"\/var\/www\/html\/cloud\/apps\/dav\/lib\/Connector\/Sabre\/ObjectTree.php","Line":174}","userAgent":"Mozilla/5.0 (Android) ownCloud-android/3.1.0","version":"13.0.2.1"}
{"reqId":"50O5grRNWFLcLnNXVxWp","level":0,"time":"2018-05-20T06:59:17+00:00","remoteAddr":"2.247.254.139","user":"tim","app":"webdav","method":"HEAD","url":"/remote.php/webdav/.Contacts-Backup/2018-05-20_08-35-14%20(2)%20(2).vcf","message":"Exception: {"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name .Contacts-Backup\/2018-05-20_08-35-14 (2) (2).vcf could not be located","Code":0,"Trace":"#0 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(81): OCA\\DAV\\Connector\\Sabre\\ObjectTree->getNodeForPath('.Contacts-Backu...')\n#1 [internal function]: Sabre\\DAV\\CorePlugin->httpGet(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#2 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#3 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:GET', Array)\n#4 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(253): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response), false)\n#5 [internal function]: Sabre\\DAV\\CorePlugin->httpHead(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#6 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#7 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:HEAD', Array)\n#8 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#9 \/var\/www\/html\/cloud\/apps\/dav\/appinfo\/v1\/webdav.php(80): Sabre\\DAV\\Server->exec()\n#10 \/var\/www\/html\/cloud\/remote.php(164): require_once('\/var\/www\/html\/c...')\n#11 {main}","File":"\/var\/www\/html\/cloud\/apps\/dav\/lib\/Connector\/Sabre\/ObjectTree.php","Line":174}","userAgent":"Mozilla/5.0 (Android) ownCloud-android/3.1.0","version":"13.0.2.1"}
{"reqId":"gOxmZlJefK4O4ibxBgsh","level":0,"time":"2018-05-20T07:02:58+00:00","remoteAddr":"92.211.7.71","user":"tim","app":"webdav","method":"HEAD","url":"/remote.php/webdav/.Contacts-Backup/2018-05-20_08-35-14%20(2)%20(2)%20(2).vcf","message":"Exception: {"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name .Contacts-Backup\/2018-05-20_08-35-14 (2) (2) (2).vcf could not be located","Code":0,"Trace":"#0 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(81): OCA\\DAV\\Connector\\Sabre\\ObjectTree->getNodeForPath('.Contacts-Backu...')\n#1 [internal function]: Sabre\\DAV\\CorePlugin->httpGet(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#2 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#3 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:GET', Array)\n#4 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(253): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response), false)\n#5 [internal function]: Sabre\\DAV\\CorePlugin->httpHead(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#6 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#7 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:HEAD', Array)\n#8 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#9 \/var\/www\/html\/cloud\/apps\/dav\/appinfo\/v1\/webdav.php(80): Sabre\\DAV\\Server->exec()\n#10 \/var\/www\/html\/cloud\/remote.php(164): require_once('\/var\/www\/html\/c...')\n#11 {main}","File":"\/var\/www\/html\/cloud\/apps\/dav\/lib\/Connector\/Sabre\/ObjectTree.php","Line":174}","userAgent":"Mozilla/5.0 (Android) ownCloud-android/3.1.0","version":"13.0.2.1"}
{"reqId":"5MJZ0Ysutz8C8FfRc2E6","level":0,"time":"2018-05-20T07:13:07+00:00","remoteAddr":"92.211.7.71","user":"tim","app":"webdav","method":"HEAD","url":"/remote.php/webdav/.Contacts-Backup/2018-05-20_08-35-14%20(2)%20(2)%20(2)%20(2).vcf","message":"Exception: {"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name .Contacts-Backup\/2018-05-20_08-35-14 (2) (2) (2) (2).vcf could not be located","Code":0,"Trace":"#0 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(81): OCA\\DAV\\Connector\\Sabre\\ObjectTree->getNodeForPath('.Contacts-Backu...')\n#1 [internal function]: Sabre\\DAV\\CorePlugin->httpGet(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#2 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#3 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:GET', Array)\n#4 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(253): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response), false)\n#5 [internal function]: Sabre\\DAV\\CorePlugin->httpHead(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#6 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#7 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:HEAD', Array)\n#8 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#9 \/var\/www\/html\/cloud\/apps\/dav\/appinfo\/v1\/webdav.php(80): Sabre\\DAV\\Server->exec()\n#10 \/var\/www\/html\/cloud\/remote.php(164): require_once('\/var\/www\/html\/c...')\n#11 {main}","File":"\/var\/www\/html\/cloud\/apps\/dav\/lib\/Connector\/Sabre\/ObjectTree.php","Line":174}","userAgent":"Mozilla/5.0 (Android) ownCloud-android/3.1.0","version":"13.0.2.1"}
{"reqId":"JDc6KZGbLcZcL6cIKwcP","level":0,"time":"2018-05-20T07:14:17+00:00","remoteAddr":"92.211.7.71","user":"tim","app":"webdav","method":"HEAD","url":"/remote.php/webdav/.Contacts-Backup/2018-05-20_08-35-14%20(2)%20(2)%20(2)%20(2)%20(2).vcf","message":"Exception: {"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name .Contacts-Backup\/2018-05-20_08-35-14 (2) (2) (2) (2) (2).vcf could not be located","Code":0,"Trace":"#0 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(81): OCA\\DAV\\Connector\\Sabre\\ObjectTree->getNodeForPath('.Contacts-Backu...')\n#1 [internal function]: Sabre\\DAV\\CorePlugin->httpGet(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#2 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#3 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:GET', Array)\n#4 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(253): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response), false)\n#5 [internal function]: Sabre\\DAV\\CorePlugin->httpHead(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#6 \/var\/www\/html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#7 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:HEAD', Array)\n#8 \/var\/www\/html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#9 \/var\/www\/html\/cloud\/apps\/dav\/appinfo\/v1\/webdav.php(80): Sabre\\DAV\\Server->exec()\n#10 \/var\/www\/html\/cloud\/remote.php(164): require_once('\/var\/www\/html\/c...')\n#11 {main}","File":"\/var\/www\/html\/cloud\/apps\/dav\/lib\/Connector\/Sabre\/ObjectTree.php","Line":174}","userAgent":"Mozilla/5.0 (Android) ownCloud-android/3.1.0","version":"13.0.2.1"}

@tobiasKaminsky
Copy link
Member

This is indeed strange:
if a file xyz.jpg already exists, a new file "xyz (2).jpg" and then "xyz (3).jpg" is created.
But you have "xyz.jpg", "xyz (2).jpg" and xyz (2) (2).jpg".

Can yo give us some details on your server?

  • web server? apache or nginx
  • external storage?

@tim-krehan
Copy link
Author

The Webserver is Apache 2.4.25-3 on Raspberry Pi 3+
the storage used is on a cifs mount from my local NAS

@tobiasKaminsky
Copy link
Member

@nextcloud/server-triage can this be somehow related to cifs?
We check if a file already exists and if so, increment (2…5).

@rullzer
Copy link
Member

rullzer commented May 29, 2018

Does this also happen when you try to upload via the webui?

@tim-krehan
Copy link
Author

tim-krehan commented May 29, 2018

no, the webui works fine. This only occures when I try to upload it with my phone.
The webui even detects conflicts.

I Uploaded a testfile:

image
image

@tim-krehan
Copy link
Author

Allright, so since the Update 3.2.0 RC2 the Upload is working mostly

BUT
If I use the option "move to app folder" the Upload itself is working just fine, but after it's completion (it stopps at 100%) the move operation wont trigger st once. so the file is just sitting there until it maybe works or the app runs in an timeout, and i get the error.
the contactbackup is still not working (yesterday i got the backup 16 times, all with one additional "(2)" in the filename. You can immagin how it looks like.)

@stale
Copy link

stale bot commented May 10, 2019

This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@stale stale bot added the stale label May 10, 2019
@stale stale bot closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants