nextcloud / ios

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

Too many "file not present" #299

Closed Kumapapa2012 closed 7 years ago

Kumapapa2012 commented 7 years ago

I have upload problems when uploading 1073 images/videos. I tested on Ubuntu 16.04LTS 64bit, NextCloudpi and Ubuntu MATE on Raspberry pi 3. I got too many "file not present" errors on iOS app. NextCloud replies HTTP 201(Created) but looks like it does not willing to receive data of object from iOS. This is image from iOS. file-1

marinofaggiana commented 7 years ago

Version ?

Kumapapa2012 commented 7 years ago

iOS 10.3.2 NextCloud 12 + php 7.1 on nginx.

marinofaggiana commented 7 years ago

Try with beta 2.17.4 and write report, thanks.

Kumapapa2012 commented 7 years ago

So far so good!

Thank you. But did you reduce concurency? This is uploading screen shot before testing: img_1666 This is now: img_1680

I suppose iOS client should have ability to adjust concurrency.

Kumapapa2012 commented 7 years ago

And now the client keeps crashing. I can see a red alert icon right before crashing. Should I remove nextcloud app then reinstall? img_1683

marinofaggiana commented 7 years ago

? Why ?

Kumapapa2012 commented 7 years ago

I thought some local iPhone data is corrupted. Anyhow I removed the TestFlight iOS app then re-installed. Nothing changed.

Then I copied all the user data to another folder "NextCloud-old" as backup, removed user and re-created user. And initialized TestFlight iOS app(removed/reinstalled and logon). And started uploading all the video/photos(1084 files) from iPhone. Now it finished with no single failure nor crash.

Maybe these empty media files (generated by public version) somehow caused crash of TestFlight version.

root@km-NextCloud01:/media/NextCloud01/NextCloud-old# find . -type f -empty ./ncdata/.ocdata ./ncdata/index.html ./ncdata/kumapapa2012/files/Photos/2017/05/2017-05-20 15-03-54 1202.mov ./ncdata/kumapapa2012/files/Photos/2017/05/2017-05-20 14-57-20 1180.mov ./ncdata/kumapapa2012/files/Photos/2017/05/2017-05-20 15-25-58 1216.mov ./ncdata/kumapapa2012/files/Photos/2017/05/2017-05-20 15-29-40 1219.mov ./ncdata/kumapapa2012/files/Photos/2017/05/2017-05-20 14-58-48 1182.mov ./ncdata/kumapapa2012/files/Photos/2017/05/2017-05-20 15-03-04 1188.mov ./ncdata/kumapapa2012/files/Photos/2017/05/2017-05-20 15-00-08 1183.mov ./ncdata/kumapapa2012/files/Photos/2017/05/2017-05-20 15-24-41 1215.mov ./ncdata/kumapapa2012/files/Photos/2017/05/2017-05-20 14-58-44 1181.mov ./ncdata/kumapapa2012/files/Photos/2016/10/2016-10-25 22-29-12 9823.mp4

FYI: Although these files became 0KB every time on NC server with public version, Test Flight version uploaded them correctly.

Anyhow, now test flight version's auto upload is working fine! I love this so much :heart_eyes: Thank you very much and I hope a new version with this fix will be released soon :+1:

Kumapapa2012 commented 7 years ago

Since auto upload works fine, I close this issue.