Auto upload doesn't work
Actual behaviour
- When I add or enable a folder in the auto upload list, nothing gets uploaded. In this case, I have a bunch of .md files with notes which I want to be automatically uploaded to the folder 'Notes' in my Nextcloud. They do not get uploaded and no error is shown.
Expected behaviour
- Files should be uploaded/synchronized
Steps to reproduce
- Set up a folder to automatically upload in the android client
Environment data
Android version: 7.1.2
Device model: Sony Z1 Compact
Stock or customized system: AICP Android (based on LineageOS)
Nextcloud app version: 3.2.1
Nextcloud server version: 13.0.4
Same here on Gemini PDA. The proof that the problem is solvable is an application for Dropbox called DropSync (greetings to my hometown Prague,CZ ;-) ) - MetaCtrl have autosync applications for Dropbox, MEGA storage, Google drive, MS OneDrive and Box. If I add a file to synced folder, it is seamlessly uploaded. Fullstop. This is expected behaviour. Should I really ask a third-party developer to add appliaction for FOSS project or is NC team capable to fix the code at least after a year ?!
@jirikeller My current solution is the syncthing application. I have synced notes (and a lot of additional folders) on all my devices now - except on my nextcloud.
@Apfelgriebs - thanks for marvellous tip ! Unfortunately this is not really "optimal" solution, however fully works - the only limitation is that the devices have to "meet" online from time to time, however this is easily solved by having one instance of syncthing. And actually, on some desktop one may sync syncthing even with nextcloud ;-)
I don't get it. Why is this feature so randomly functional? Last time I was told to remove Nextcloud app from any power optimizations, which I did and fixed the issue, but since 2 updates it does not work anymore on my S9+. I think I will revert to owncloud to see if things get better over there.
For what it's worth - I am having the same issues at the moment. Galaxy S9+, and for a while now Nextcloud has not been auto-uploading all photos.
Sometimes it will detect that a new photo exists; but more often it won't.
The upload part is fine, but the detection part doesn't seem to be reliable for some reason.
I'm using the standard camera app, I haven't really changed any settings and I don't have a SD card; Nextcloud app on phone is version 3.2.1, and I have excluded it from the "put to sleep if running in background" functionality on the phone.
Not sure what I can do in terms of debugging on the phone (is there anything I can do with logcat or similar??) but hopefully these details of the problem I'm seeing will help.
@mario @tobiasKaminsky do you know anything steps that would provide further information to gain some insight on why auto upload doesn't seem to work for the mentioned devices like Sony Z1 compact, Samsung Galaxy S9+ and Gemini PDA?
Auto upload is broken with Samsung S7 Android 8.0. Disabling battery optimization did not help either. I made sure all the upload folders are properly selected. It does not seem to watch for changes.
@mario @tobiasKaminsky are you aware of any general issues regarding Samsung Galaxy S issues regarding auto upload issues?
@AndyScherzinger
I have another device with LineageOS 14.1 and auto uploads works perfectly fine.
I have another device with LineageOS 14.1 and auto uploads works perfectly fine.
@gerroon yeah, I also run Lineage 15.1 and it works fine, also worked fine before with the OEM Android OS version... :/
It actually used work to on that S7 until couple months ago, it probably broke after the damn system updates couple months ago
I would love to help with any debugging I can (using either my S9+, or my S7 Edge which I still have). Both seem to have the same issue at the moment, i.e. new photos I take do not get detected by the auto upload functionality. If I 'Share...' the photos and send them to Nextcloud, the actual upload works fine.
Both phones are on Android 8.0.0 ("Samsung Experience 9.0").
@mario any debugging hints for @jmhunter ? :)
Also same issue again and again! It's a shame, this is one of the most important feature and you guys struggle on that for years. We have 2 devices, Huawai P10 Pro, Galaxy S7+ - both not working!
I'm currently experiencing the most annoying situation when trying to debug something. Sometimes it works and most often it does not. No idea why is it working all of a sudden for one or 2 pics and not working for the 10 following.That is really getting on my nerves.
I FOUND A SOLUTION GUYS.... @moulip @klm46 @jmhunter @gerroon @Apfelgriebs @jirikeller @mario
Hi all, I'm a iPhone-to-Android convert, and have Samsung S9+ (yesterday activated!). As other in this thread mention, I also had which had huge problems with auto-upload detection..... but I fixed it !! 👍
My steps:
Edit: Added this pre-cursor 1st step instruction on 8/17/18: "To ensure that 100% erased NC app, cache, certificates, serving settings (because Data settings persist after re-install), I did the following: "Settings" > "Device Maintenance" (to get to storage) > "Storage" > "Apps" > "NextCloud" > "Storage" (should say like 45mb/64GB used or something) > "Manage Storage" > "CLEAR DATA". (Optional: You can also click "Clear Cache" option, I just did Clear data, which is prob the same."
I deleted my NC account from NC app, completely deleted NC app, reinstalled from Google Play store.
I deleted the customized Gallery app from f-droid. (If you don't have Gallery app from F-droid, then ensure you are using the original plain vanilla Gallery app, no other gallery app as it may interfere)
Then Start NC app, go through usual process of Logging into account, giving permissions to app to read/write access, you know, the vanilla process of getting Set-up again on NC app.
Next, I went to Power Saver settings, and I added NC to "Unmonitored Apps" where they won't put to sleep. Instructions: "Device Management" > "Battery" (on bottom left corner) > " Unmonitored Apps" (e.g. select apps that won't be put to sleep) > Add NC app to this list > Click Done/Save. Maybe this helped too, but I closed all other applications and put them to sleep so only NC running.
Reboot NC app (e.g. close it then re-open it as fresh instance)
Take a photo from camera app. This 1st photo won't upload, because we haven't turned on "Auto-upload" yet, so go to "Auto-Upload" section (your 1st photo should appear here), then turn on the upload button (i.e. turn on the button so it turns from grey to blue signfying enable upload for Photos, Screenshots or Video), and verify the correct folder configuration for destiination as you wish. THEN take a 2nd photo with camera app, and this should immediately be detected and uploaded :)
Now I got the auto-upload to work on my Samsung S9 Plus running latest software (as of 8/17/18). YAAAYYYY. It uploads instantly after taking picture, the Auto-Upload detects it immediately, no need forced scan. Holy moly... wow.
Thanks @rwat1, very glad you have had success!
I am almost certain I had already done the Power Saving setting, i.e. told the phone not to put NC to sleep. (although there's a small chance that after uninstalling & reinstalling, I forgot to re-enable it again).. so I don't think that's the whole answer.
I will try deleting my account from NC app first, before uninstalling this time.
I don't know how it does it (as I thought that when an app was uninstalled, all its data was gone) but even when I uninstall NC from Play Store and reinstall it, my account data (or at least, the definitions of which folders to auto-upload, and how - plus my history of previous auto-uploaded files) persists! :( So I will try your trick of deleting the account from within the app, first.
My next step was to use an older version of NC client from F-Droid, actually (My gallery app is stock / standard) but I will try this first and report back - thanks!
Update: That didn't work for me.
-
When deleting account from within app, uninstalling app, reinstalling app and then re-logging in to my account - my auto upload settings (which phone folders to upload from; where to send them; whether to upload on wifi only; etc. as well as history of uploads) re-appeared when I logged in.
-
Took a photo, it didn't get detected as ready for upload.
-
'Force Close' Nextcloud app, then took another photo - still didn't get detected for upload.
Update to update:
- I tried installing the app from F-Droid - same version, 3.2.1.
- This worked perfectly first time
- There were no settings in the app when I ran it, i.e. no auto upload settings and no history of previous uploads
- I therefore wonder if the issue is in some way related to bad / corrupt settings information, coupled with this data being persisted even through a complete uninstall/reinstall of the app via Google Play
- I haven't had this issue yet with my F-Droid installed app.. but will update if/when that happens in the future :)
@jmhunter
Edit: Glad it eventually worked out!
Per your mention about data-setting persisting after reinstalling, YES! I forgot to include this step:
Oh, I'm stupid. I forgot to include this one critical step, because like you said, data-persists after reinstalling NC app.
To ensure that 100% erased NC app, cache, certificates, serving settings, I did the following:
"Settings" > "Device Maintenance" (to get to storage) > "Storage" > "Apps" > "NextCloud" > "Storage" (should say like 45mb/64GB used or something) > "Manage Storage" > "CLEAR DATA". (Optional: You can also click "Clear Cache" option, I just did Clear data, which is prob the same.
This ensure that all the "Settings, Database, Server certificates from NextCloud's data will be deleted permanently, Downloaded Files will be kept untouched".
THEN you can go delete account from NC, then delete NC app, then reinstall from Google Play or Fdroid. :)
I'm super happy you got it running!! I'm definitely 100% sure it's about data-settings persistent after reinstall and corrupt settings. That's why a "Clear Data" before deleting app/reinstall helped me, and that's why when you installed a brand new version of NC, you got fresh clean settings, and it worked :)
Well I was using the nc-dev version which was not working, then installed the nc release from scratch from fdroid still did not work. These are 2 different apps and they do not share the same accounts, or data etc.
@gerroon After you cleared data (steps above), delete NC app, reinstall it, did you did you add NC app to list of "Unmonitored apps to prevent sleep" ?