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

InstantUpload - continuous retry but file exists on server #554

Closed
nlaplante opened this issue Jul 5, 2014 · 6 comments
Closed

InstantUpload - continuous retry but file exists on server #554

nlaplante opened this issue Jul 5, 2014 · 6 comments

Comments

@nlaplante
Copy link

I have a problem with one photo which always gets "Upload failed". It retries continuously. But, looking at the server, the file is there, and many other duplicates.

Let's call the file PANO_123.JPG. On the server, I have multiple copies of the file:

  • PANO_123.JPG
  • PANO_123(1).JPG
  • PANO_123(2).JPG
  • and so on...

So, the upload is indeed successful, but for some reason the client marks it as failed and it retries later.

I have to clean the InstantUpload folder on my owncloud to prevent taking too much disk space.

@davivel
Copy link
Contributor

davivel commented Jul 10, 2014

Sorry, you will have to remove the data of the app in the device, and then refresh again. Go to 'Device settings' / 'Applications' / 'ownCloud' / 'Clear data'. The accounts information and downladed files will not be removed, but the local cache with the tree(s) of files will, so you will need to refresh the app after that (just enter in the app again).

The autorecovery of uploads needs a very deep review.

@modstone
Copy link

Hi there, I think I'm experiencing the same failures, or similar.

[APP]
App version: 1.5.8
Brand: MyWigo
Android version: 4.2.2

[SERVER]
nginx 1.4.6
php 5.5.9
ownCloud 6.0.4

Seems that every new attempt to upload an image from app to the server, app launches a HEAD petition like this. If it got 200/OK, interprets that this file exists and try to create a new version of the same file. Problem in my server is that always got 200/ok, even if file does not exist in my server.

Here I paste an example:
"HEAD /remote.php/webdav/InstantUpload/IMG_20140821_182519.jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"
"HEAD /remote.php/webdav/InstantUpload/IMG_20140821_182519%20(2).jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"
"HEAD /remote.php/webdav/InstantUpload/IMG_20140821_182519%20(3).jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"
"HEAD /remote.php/webdav/InstantUpload/IMG_20140821_182519%20(4).jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"
"HEAD /remote.php/webdav/InstantUpload/IMG_20140821_182519%20(5).jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"

[...]

"HEAD /remote.php/webdav/InstantUpload/IMG_20140821_182519%20(39708).jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"
"HEAD /remote.php/webdav/InstantUpload/IMG_20140821_182519%20(39709).jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"
"HEAD /remote.php/webdav/InstantUpload/IMG_20140821_182519%20(39710).jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"
"HEAD /remote.php/webdav/InstantUpload/IMG_20140821_182519%20(39711).jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"

@davivel
Copy link
Contributor

davivel commented Aug 28, 2014

@nlaplante , would be great if you could check your server logs and see if there is something there similar to the logs from @modstone .

Thanks!

@LukeOwlclaw
Copy link

This issue should be solved with my contribution in branch https://github.com/owncloud/android/tree/reliable_uploads

@LukeOwlclaw LukeOwlclaw removed their assignment Jun 15, 2015
@tobiasKaminsky
Copy link
Contributor

@nlaplante @modstone still valid?

@modstone
Copy link

Working fine on owncloud Android app 2.0.1 and server 8.2.6

@davivel davivel closed this as completed Jul 14, 2016
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

5 participants