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

Autoupload doesn't upload #1137

Closed
Tioborto opened this issue Jun 26, 2017 · 25 comments
Closed

Autoupload doesn't upload #1137

Tioborto opened this issue Jun 26, 2017 · 25 comments

Comments

@Tioborto
Copy link

Actual behaviour

Currently, for example all images are not being downloaded in a precisely folder.
For example :
I take a picture in the current folder of camera (/storage/emulated/0/Download)
The autoupload enable to remote folder (/Picture/Asus Download/)
But there is noothing in the remote folder..

Expected behaviour

My phone pictures are synchronized

Steps to reproduce

  1. Take a picture
  2. Enable synchronization/autoupload (by 4G)

Environment data

Android version: 6.0.1

Device model: Asus Zenfone 2

Stock or customized system: stock

Nextcloud app version: 1.4.3

Nextcloud server version: 12.0.0

Logs

Web server error log

No errors in log

Nextcloud log (data/nextcloud.log)

No errors in log

@ahendre2010
Copy link

Even when on wifi it isn't working. Uploading fails to start

@tobiasKaminsky
Copy link
Member

Could this be the problem: #759 (comment) ?

@ahendre2010
Copy link

I have added my camera folder in auto upload two days ago and it still doesn't showing up on NC. I also have unchecked upload only via wifi. I think it should have manual trigger to start auto uploading process so if I know I am on high speed wifi for a limited time then I can use one click to auto upload my photos.

@Tioborto
Copy link
Author

Like @ahendre2010, i think a button to manually update pictures could be a workaround

@ahendre2010
Copy link

ahendre2010 commented Jun 28, 2017 via email

@Tioborto
Copy link
Author

But what is the solution on my problem ?
The update doesn't work at this moment & it's problematic ..

@ahendre2010
Copy link

ahendre2010 commented Jun 28, 2017 via email

@agilob
Copy link

agilob commented Jun 28, 2017

@Tioborto Try enabling wifi and restarting the device, this helps me with #1106

@ahendre2010
Copy link

ahendre2010 commented Jun 29, 2017 via email

@byteturtle
Copy link

byteturtle commented Jul 4, 2017

Affecting me on 6.0.1 / MIUI 8.2 (Stock) too. My Device is the Xiaomi Redmi 4 Prime.
Same on 7.1.2 LineageOS (20170704-NIGHTLY) on the Nexus 5.
On both devices "only upload via WiFi" is enabled.

@mario
Copy link
Contributor

mario commented Jul 26, 2017

Dear users,

thank you for your patience. After lots of work, we’re super excited to be able to give you a test version with new auto upload implementation. Keep in mind we will only accept bugs related to Auto Upload in this APK, as other things might be broken.

https://cloud.nextcloud.com/s/ftZraTruRQjTe0R

This is a dev APK so it will not overwrite your existing play store/f-droid APK unless you’re already running dev version. Also, you might need to remove your existing dev version before installing this one.

Explanation of the current functionality:

  • added support for custom folders
  • separated image and video folders
  • checks for new files happens every 15-20 minutes
  • automatic retry every 15-20 minutes or when you force close/open the app
  • automatic pause once network is changed (untested!)
  • significantly less battery usage

All and any testing is more than appreciated, especially with large and ever-going files like Videos. (like, try to record a 30 min video).

Let me know if you’ve got any questions.

Cheers,
Mario

@bnbaz
Copy link

bnbaz commented Aug 6, 2017

I'm having auto-upload issues as well ('connection issue'), on MIUI 8 regardless of battery saver settings (nextcloud excluded or not). Manual uploads do work.

I just installed the dev version posted by @mario, unfortunately this version does not initiate auto-upload at all. Auto-upload is enabled for the camera folder, nextcloud removed, nextcloud dev added to battery exceptions, but it seems the new pictures are not recognized at all. This is regardless of the wifi only setting.

@mario
Copy link
Contributor

mario commented Aug 6, 2017

@bnbaz new version does not need the battery saver disabled. What phone/os? Did you confirm that auto upload folders are configured?

@bnbaz
Copy link

bnbaz commented Aug 6, 2017 via email

@mario
Copy link
Contributor

mario commented Aug 6, 2017 via email

@bnbaz
Copy link

bnbaz commented Aug 6, 2017 via email

@bnbaz
Copy link

bnbaz commented Aug 8, 2017

Unfortunately still no upload after an hour.

@Tioborto
Copy link
Author

Tioborto commented Aug 8, 2017

I've tested two times the auto upload on two several directories & nothing is uploaded..

Sent from my Asus ASUS_Z00AD using FastHub

@mario
Copy link
Contributor

mario commented Aug 8, 2017

Do you see the photos in your camera roll/gallery app? What does the log says if you enable Expert mode in settings?

@Tioborto
Copy link
Author

Tioborto commented Aug 8, 2017

Magical.. Two pictures has been uploaded.. I don't how
I check the logs

Sent from my Asus ASUS_Z00AD using FastHub

@mario
Copy link
Contributor

mario commented Aug 8, 2017

See? It all works...you just need to wait :p

@Tioborto
Copy link
Author

Tioborto commented Aug 8, 2017

Wait two days to upload ? It's a normal things ?

@mario
Copy link
Contributor

mario commented Aug 8, 2017

Well when did it appear in the upload queue? Also possibly it is ... depending on what you were doing with your phone in those two days/if anything? :)

@bnbaz
Copy link

bnbaz commented Aug 9, 2017

UploadsStorageManager : Updating / storage/emulated/...jpg with status:UPLOAD_IN_PROGRESS and result:UNKNOWN (old://storage/emulated/...jpg status:UPLOAD_IN_PROGRESS result:-1)

UploadsStorageManager : Updating / storage/emulated/...jpg with status=UPLOAD_IN_PROGRESS

UploadsStorageManager : updateUpload returns with: 1 for file : / storage/emulated/...jpg

UploadsStorageManager : notifyObserversNow

I can't export the logs so I typed the above part. Please let me know if you require more info. These log entries are all about the same file, and made in the same second.

@AndyScherzinger
Copy link
Member

@bnbaz we are working on releasing the first RC of the next release to Google Play. Please test if it solves your issue. So closing it for now. Please re-open if it occurs again

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

8 participants