Android: Auto upload doesn't work

Created on 18 Jul 2018  ·  91Comments  ·  Source: nextcloud/android

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

  1. 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

bug AutoUpload stale

Most helpful comment

Agree, FolderSync works well.
Nextcloud GmbH clearly doesn't care about the core feature (file sharing and sync), they spend all their time on add-on features that are only useful when the product actually works.

All 91 comments

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" ?

I did not need to delete the NC app, I was installing it the first time, that was my point.

I have both NC dev version (which was th one I was uising originally) and the release version (installed to see if the Dev version was broken with the uploads) side by side. They do not share the same data/account space as far as I can tell.

Yeah I disabled the battery optimisation stuff too,

Hi guys,
I have followed your guide @rwat1. For now it is working indeed.But I wonder for how long ;-(I have added a step which is to reboot after having deleted everything. Actually even after deleting everything, some settings remained such as the fingerprint lock.I have also deactived the fingerprint authentication. 

Envoyé depuis mon smartphone Samsung Galaxy.
-------- Message d'origine --------De : gerroon notifications@github.com Date : 17/08/2018 18:08 (GMT+01:00) À : nextcloud/android android@noreply.github.com Cc : moulip julien@technoaddict.fr, Mention mention@noreply.github.com Objet : Re: [nextcloud/android] Auto upload doesn't work (#2834)
I did not need to delete the NC app, I was installing it the first time, that was my point.
I have both NC dev version (which was th one I was uising originally) and the release version (installed to see if the Dev version was broken with the uploads) side by side. They do not share the same data space as far as I can tell.
Yeah I disabled the battery optimisation stuff too,


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/nextcloud/android","title":"nextcloud/android","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/nextcloud/android"}},"updates":{"snippets":[{"icon":"PERSON","message":"@gerroon in #2834: I did not need to delete the NC app, I was installing it the first time, that was my point. \r\n\r\nI have both NC dev version (which was th one I was uising originally) and the release version (installed to see if the Dev version was broken with the uploads) side by side. They do not share the same data space as far as I can tell.\r\n\r\nYeah I disabled the battery optimisation stuff too,"}],"action":{"name":"View Issue","url":"https://github.com/nextcloud/android/issues/2834#issuecomment-413913697"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/nextcloud/android/issues/2834#issuecomment-413913697",
"url": "https://github.com/nextcloud/android/issues/2834#issuecomment-413913697",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [nextcloud/android] Auto upload doesn't work (#2834)",
"sections": [
{
"text": "",
"activityTitle": "gerroon",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@gerroon",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"nextcloud/android\",\n\"issueId\": 2834,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"nextcloud/android\",\n\"issueId\": 2834\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/nextcloud/android/issues/2834#issuecomment-413913697"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 357906755\n}"
}
],
"themeColor": "26292E"
}
]

@rwat1 , thank you.

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".

I have to say, I have _never_ had any success using the Clear Data option. I haven't really looked into it much - but I am certain it has never worked for me.

I had never seen an app-specific 'Clear Data' option in an Android app, before Nextcloud - so I don't know if there is an alternative way of clearing application data - but I do know that uninstalling the app, or choosing 'Clear Data', hasn't been successful for me in the past, and the configuration data still persists. I don't know if anyone knows of another mechanism to clear the Nextcloud application's data?

A new instance of the application (installed via F-Droid, rather than Google Play) is working fine for me at the moment, for what it's worth.

My working theory is that something in the configuration data for the application is causing the auto upload detection function to fail - and since this configuration data persists after a clear data / uninstall / reinstall cycle, it continues to fail to work.

@jmhunter, Like I said in my last comment, you can use the NC clear data settings, uninstall it and then reboot.
That way I was successful in getting rid of all the remaining settings.

I'm glad it works for you guys 👍

@gerroon You can follow these instructions to Clear NC Data settings as moulip and I did and try reinstalling (with "unmonitored app no sleep")

_"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._ Then Moulip said to: "REBOOT" then reinstall app.

@rwat1

What I am saying is that I should not even have a clear data problem, because this was a fresh new copy of the Nc app release. All that stuff is a concern if you already installed it before.

I can give this a try for sure.

Hi guys,
It did not last for long. Like I was fearing. Auto-upload does not work anymore. I just can't stand such a random behavior. This is unacceptable. I think I will rely on another technology and get rid of NC client and server.That's really getting on my nerves now.

Thanks @moulip for the nudge, I have to say that I am seeing the same behaviour on my S9 now.. at least, NC client has stopped detecting new photos on my device. When I manually 'Share' the photos to Nextcloud, then the upload part works fine.

This is my new installation of the client from F-Droid.

It's obviously a hard problem to solve, especially on a moving target such as Android where each manufacturer and new Android version seems to do things differently. But, I share your frustration entirely (even if I lack the tuits myself to find another technology to replace NC at the moment). I am totally happy to help debug this as best I can, though, as I'd much rather get it working than give up on it.

Same problem again!! me too.... Same time as you guys too!! @moulip @jmhunter I'm have the same problem again as you guys on my S9+. (Btw, I noticed everytime Android updates, it breaks other apps, not just NC. a moving target indeed)

My solutions:
1) inside the NC app, turn off default autouploads folder, and create new autoupload custom folders to the same folders (tedious)
OR
2) Do the "Clear all data" method I described above, Reinstall the NC app.

I did both methods, both works. I think #2 is easier though.

NC Devs - Is there any way of achieving the following debugging option? I'm not an Android dev myself so only have a high level view of what I think the Android security model is like, and what internal data structures there might be in the NC app .. but is there a way to add an advanced debugging option that would dump all the NC client's data structures to disk, or to the clipboard, or to a 'Share...' intent so that the resultant file could be emailed to self or uploaded to NC..?
I am still working on the theory that some setting or data structure in the NC client gets corrupted somehow, and that's why it stops working... but without being able to see them myself (my phone isn't rooted or anything) it's hard to know for sure.

I just ran into the same issue and instead of clearing cache, and installing everything I just turned off SDcard encryption ;) and it started working again even for most of the pictures it missed out because it was recognizing them.
Could that be something to look at?

I do not have encryption

damnit, would have been too easy.

I do not have a solution for NC app but if you still want to be able sync your photos until this is resolved I recommend you to use Syncronize Ultimate (free and it does not spy as far as I can tell) which is what I do here since NC app broke this functrionality. SU works, you can add, camera button pressed, intervals etc to sync trigger.

Same here on my Samsung Galaxy S8 on Oreo (latest firmware). Auto-Update recognized all doses but only syncs "camera" and "screenshots". If a new folder is created the nextcloud app instantly recognized it - but when enabling the folder to be synced nothing happens. Not working. Habe the latest nextcloud 14.0 on my Synology DS918+ with latest OS DSM6.2 and newest nextcloud app (just signed up for the beta program. But no newer update than the installed version). Is there any solution coming up? Thread is two month old.

@491810 have you tried clear NC app cache/data and perhaps reinstall NC app? (note: the file list is quickly restored after reinstall). It solved a lot of people's auto-upload problem.

Didn't help. Wiped memory and cache and reinstalled the app. Same behaviour. When when I allow all networks and not only uploads via wifi nothing happens. 

MfG

Dirk Endler

sent from on the road  ...
-------- Ursprüngliche Nachricht --------Von: rwat1 notifications@github.com Datum: 23.09.18 17:42 (GMT+01:00) An: nextcloud/android android@noreply.github.com Cc: 491810 491810@gmail.com, Mention mention@noreply.github.com Betreff: Re: [nextcloud/android] Auto upload doesn't work (#2834)
@491810 have you tried clear NC app cache/data and perhaps reinstall NC app? (note: the file list is quickly restored after reinstall)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/nextcloud/android","title":"nextcloud/android","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/nextcloud/android"}},"updates":{"snippets":[{"icon":"PERSON","message":"@rwat1 in #2834: @491810 have you tried clear NC app cache/data and perhaps reinstall NC app? (note: the file list is quickly restored after reinstall)"}],"action":{"name":"View Issue","url":"https://github.com/nextcloud/android/issues/2834#issuecomment-423825492"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/nextcloud/android/issues/2834#issuecomment-423825492",
"url": "https://github.com/nextcloud/android/issues/2834#issuecomment-423825492",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [nextcloud/android] Auto upload doesn't work (#2834)",
"sections": [
{
"text": "",
"activityTitle": "rwat1",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@rwat1",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"nextcloud/android\",\n\"issueId\": 2834,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"nextcloud/android\",\n\"issueId\": 2834\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/nextcloud/android/issues/2834#issuecomment-423825492"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 357906755\n}"
}
],
"themeColor": "26292E"
}
]

solves the problem. Nextcloud only recognizes folders when a new picture or video is added. When installing the app the existing folders aren't recognized by default. Maybe you can add a scan for that?

MfG

Dirk Endler

sent from on the road  ...
-------- Ursprüngliche Nachricht --------Von: rwat1 notifications@github.com Datum: 23.09.18 17:42 (GMT+01:00) An: nextcloud/android android@noreply.github.com Cc: 491810 491810@gmail.com, Mention mention@noreply.github.com Betreff: Re: [nextcloud/android] Auto upload doesn't work (#2834)
@491810 have you tried clear NC app cache/data and perhaps reinstall NC app? (note: the file list is quickly restored after reinstall)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/nextcloud/android","title":"nextcloud/android","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/nextcloud/android"}},"updates":{"snippets":[{"icon":"PERSON","message":"@rwat1 in #2834: @491810 have you tried clear NC app cache/data and perhaps reinstall NC app? (note: the file list is quickly restored after reinstall)"}],"action":{"name":"View Issue","url":"https://github.com/nextcloud/android/issues/2834#issuecomment-423825492"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/nextcloud/android/issues/2834#issuecomment-423825492",
"url": "https://github.com/nextcloud/android/issues/2834#issuecomment-423825492",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [nextcloud/android] Auto upload doesn't work (#2834)",
"sections": [
{
"text": "",
"activityTitle": "rwat1",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@rwat1",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"nextcloud/android\",\n\"issueId\": 2834,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"nextcloud/android\",\n\"issueId\": 2834\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/nextcloud/android/issues/2834#issuecomment-423825492"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 357906755\n}"
}
],
"themeColor": "26292E"
}
]

I'm having this same problem.

Using an Huawei Y5II and NC v3.4.

I have to force rescan every single time i want to upload a file.
Considering that we're evaluating NC for enterprise use this seems like a really bad thing!!!

5 months with this problem is a bad omen...

@tobiasKaminsky is there anyone looking into this specific bug?

For my Galaxy S7 Edge, it helped to disable energy saving mode. I had it on _middle_ settings. Note that adding an exception for Nextcloud isn't enough. I had this exception. However, when energy saving mode is enabled, the upload doesn't work. Also not with deleted caches.

Found an interesting thing with the Nextcloud InstantUpload app on my HTC 10 Android phone... It is recognizing new photos, but the Preferences were set for uploading only on Wifi. I changed them and saved it, but it kept coming back with the Preferences dialog all the time. It seems that the security permissions on the app are not allowing the Preferences to be saved so that the app can use them. I had previously set this to only upload on Wifi, and was wondering why my photos were not appearing in Nextcloud. Then I discovered that they were all queued up for uploading, but with the message "Waiting for Wifi" under it, even though I had changed the Preferences to tell it to not to wait for Wifi before uploading. It seems that either the Preferences are not being saved, or that the InstantUpload isn't refreshing it's upload queue when you change the Preferences. I went through the 50 or so photos that were stuck in the queue and removed them from the queue, but it didn't rescan them and put them into the queue for immediate upload - it basically doesn't want to see them at all. However if I take a new photo, now it uploads.

So the preference changes are not being saved and then the queues being refreshed to reflect the changes in the Preferences, but for new content it seems to be seeing the changes ok.

I think it is a missing forced refresh when preferences are changed for me. Otherwise it does seem to upload the photos and movies correctly. I'm running NC 15 btw.

Preference are saved, but apply only for new queued items.
This is a separate bug, can you open up another ticket using the bug template?

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!

It's working too randomly. It gets too much on my nerves and I can't rely on that to have a solid and reliable backup.I will now switch to another solution based on my own NAS.Envoyé depuis mon smartphone Samsung Galaxy.
-------- Message d'origine --------De : "stale[bot]" notifications@github.com Date : 10/05/2019 00:56 (GMT+01:00) À : nextcloud/android android@noreply.github.com Cc : moulip julien@technoaddict.fr, Mention mention@noreply.github.com Objet : Re: [nextcloud/android] Auto upload doesn't work (#2834) 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!

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/nextcloud/android/issues/2834#issuecomment-491096249",
"url": "https://github.com/nextcloud/android/issues/2834#issuecomment-491096249",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]

We use to have a "force upload" option.

But it's gone now...

It would be good to have an "upload on change" option... And not in a "specific time"...

@maverick74 there has never been a "force upload" option, the app only had a "force rescan" option within the auto upload dialog. That feature is still there and gets triggered if you pull-down on the list (kind of like a pull-down to refresh.
As for "on change" it'll always be a "in defined, timed cycles" because that is kind of enforced in actual Android OS versions (hi Android Doze...)

@AndyScherzinger Oh, I didn't know you guys replaced the 'force rescan' with a pull-down on list. I thought it just disappeared. Could make it a bit more obvious :)

Yes, discoverability is an issue here while we haven't found a way to improve that yet :(

@AndyScherzinger yes, you're right it was called "force rescan". Sorry, my mistake. Anyway (what ever the name was) it got the job done! :)

I wasn't aware about the "pull down to rescan" change. That will do! Thanks for the tip :)

@maverick74 no worries, all good. If the force to rescan solves/solved you issue then this is still there :)

Can reproduce. App Version 3.6.1

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!

Keep alive: I am still experiencing this issue. The proposed workarounds do not work for me on LG G6.

Reproduced with 3.7.0.
New photos uploads. However, photos created before enabling auto-upload won't be uploaded.

Workaround might be moving photos to another directory, and then move back.

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!

Galaxy S10+. If I create a new folder it will be detected by the nextcloud app. I go in and setup the auto upload, ensuring that battery optimisation is turned off. Nothing then happens. If I move pictures to that folder after setup then they are seen in the app but don't auto upload.

+1 Auto upload feature not working
It is on my fresh NC-Android app install. I don't see, why I should "clear cache" on a new install. That does not make sense. I am using NC server 16.0.4

I have a similar failure with the NC Android App 3.8.0 on a Samsung Note 8 connecting to a NC 16.0.4 server on shared Host Account. Any larger file upload (like 8mb or more) of any type fails consistently with "Not Acceptable". Smaller files pass over WiFi or Cellular without failure. Also the same file that fails with the Android App works with the Windows client or through the Browser interface so the server can accept the larger files. I have tried setting the battery optimization without any change to the failure symptom. I did fix a similar failure with the NC Windows Client by increasing the "Chunk Size". Does anyone know how to modify this in the NC Android App?

I installed "FolderSync" and synced large and small files to my NC 16.0.4 without any issues. So that is a workaround... but, what can be done with the NC AndroidApp?

I have been using FolderSync without issue for 2 years. I am still hoping to get rid of it. Sync is something fundamental that the NC App should be able to manage.

Agree, FolderSync works well.
Nextcloud GmbH clearly doesn't care about the core feature (file sharing and sync), they spend all their time on add-on features that are only useful when the product actually works.

Yes, FolderSync is working correctly and is managing well as a workaround. I like new features to be developed for NextCloud... so I encourage that... but, what bothers me is that originally the NC AndroidApp worked. Clearly something changed and it no longer can mange anything bigger then 8mb. Which is not really that big of a file. Using the Windows NC client I sync 250mb easily and often. Again, loving NextCloud generally.

Also, yes, I agree, the ability to upload and generally manage files of any size is a core feature of NextCloud. I don't know who else to ask or how to change the code to make this work. Otherwise, loving NextCloud and use it daily. All other client are now working for me... just the Android Client App.

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!

Please keep open as the problem is not resolved and I'm attempting to continue using the Android NextCloud app. I hope someone may have an answer... the current workaround for me is FolderSync

I switched from Samsung A5 phone to a relatively recent Google Pixel phone - and magic: now it works fine. The new phone uses Android 10 (not 100% sure).

Thx for the info re Pixel phone... I'm still on the Samsung SM-N950U with Verizon as the carrier. I wonder if Samsung has some throttle control within the phone? The NextCloud upload failure with larger files is not unique to the connection; i.e. failure occurs with WiFi or Cellular. What is different about the Goggle Pixel Phone? The only difference I see on my phone is Android V9 vs your v10. Interesting. The app "FolderSync" continues to work perfectly.

What a thread! Foldersync eh?

Yes. Foldersync seems to manage the file size... (chuck size?); no problems. I don't understand where NextCloud android client manages the protocol. Very sad... mostly loving NextCloud.

Still not works on S9

I know, not very helpful but my S9+ works for quite some time now. Also the other phones I am using Nextcloud with, some other Samsung and Xperia Phones

It broke on my Xiaomi 9T running Android 10.

So I fixed it by clearing cache, clearing data, removing account from NC app, uninstalling NC app, and re-installing, setting up.

YAY!

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!

Still not working.

Yeah... still doesn't work for me either. FolderSync working.

The issue has never been fixed or addressed, why is stalebot attempting to close this thread?

Well, don't blame the bot. Still, yes, I wish someone would give me the code to change. The solution must be a simple code change. I just don't know where to look. I'm not a programmer but interested in technology. I also admire NextCloud and love the solution as a document management tool. I use the "Next" app on my Android. Everything works for me except the upload limit. So sad.

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!

FolderSy

According to Google Play, Foldersync doesn't support Nextcloud. How did you get it to sync with Nextcloud?

Correct. FolderSync is standalone from NextCloud. I use it to upload then let NextCloud sync naturally. My problem is withe in initial upload which consistently fails on my Samsung Note8. Otherwise NextCloud is great!

I think I've found the solution. In Android go to Settings -> Accounts & Sync -> Nextcloud -> Sync.

Nextcloud synced all files after I enabled this option.

Hey thx for the info peterp772000... I checked my Android and the sync was turned "OFF". However, even after turning "ON" there is no change. I still receive "Not Acceptable" when attempting files over about 8mb. I'll play more and try clearing cache and reset/repower to see if I can effect a change. If there is a change you'll be the second person to know! Thank you again.

thanks peterp772000 givign it a go, was that always there, or at least since this thread started?

Hi,

The toggle is off for me too, but the auto upload works flawlessly nevertheless.

--

Julien Patriarca

http://www.wallix.com

250 bis Rue du Faubourg St-Honoré 75008 Paris

Tel: ‪+33.1.70.36.37.53 / Mob: ‪+33.6.64.37.13.18

email: [email protected]

« Long is the Road but FREE is the Way »

On Tue, Mar 10, 2020 at 7:34 AM +0100, "meika" notifications@github.com wrote:

thanks peterp772000 givign it a go, was that always there, or at least since this thread started?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

I started a discussion about the "sync" feature some time ago in the forum
https://help.nextcloud.com/t/what-is-settings-accounts-nextcloud-sync-for/36548/7

Perhaps we can - once again - try to clarify this, but as far as I have understood. The Sync Feature just helps to keep a background sync working, instead of the App put as a foreground process or have some special battery optimizations turned off.
It is like gmail and others which sync in the background without having the app in foreground or optimized, but they need to register their sync behavior internally.

I realized that this is also draining quite some battery, but perhaps this has already changed.

Anyhow, the forum discussion is open and should be restarted

Hi Meika, I'm using Android 9 which has been out since mid 2018 so I'm guessing that feature has been there since this thread started.

There are dozens of these threads, many of which are over 2 years old. How can such a core feature remain broken for this long?

I have the same issue. Fresh install of the app (3.11) on a Samsung S9, fresh install of Nextcloud on Ubuntu.

Nothing gets queued up for upload. There are no errors. It just doesn't do anything. It worked for about an hour, until I tried to change the upload destination.

There are dozens of these threads, many of which are over 2 years old. How can such a core feature remain broken for this long?

I have the same issue. Fresh install of the app (3.11) on a Samsung S9, fresh install of Nextcloud on Ubuntu.

Nothing gets queued up for upload. There are no errors. It just doesn't do anything. It worked for about an hour, until I tried to change the upload destination.

I do have a Samsung S9 as well, for more then a year now (or even longer) and for this time period, after fixing the Battery Optimization dilemma of Android, it just works flawless.
I do ask myself, what they could do, that people like you, having those issues could overcome them.

Even the phones of my parents, sister, wife and others using my NC instance do work without issues (about 15 devices from different brands), as soon as you have the battery optimization thing handled on the different phones and after updating the OS.

The only issue I have, some times, is a app which stops working in the background or pictures not moved to the internal app folder after the upload.
I do also have different settings, upload in WIFI, upload in WIFI with power plugged in etc.

So any ideas, except complaining in quite a harsh form? Giving some more insights on what and how?
I assume that most people have the feature just working, and what you see here are quite some people, you are right, but I assume also a minority. So try to help instead.

I started a discussion about the "sync" feature some time ago in the forum
https://help.nextcloud.com/t/what-is-settings-accounts-nextcloud-sync-for/36548/7

Perhaps we can - once again - try to clarify this, but as far as I have understood. The Sync Feature just helps to keep a background sync working, instead of the App put as a foreground process or have some special battery optimizations turned off.
It is like gmail and others which sync in the background without having the app in foreground or optimized, but they need to register their sync behavior internally.

I realized that this is also draining quite some battery, but perhaps this has already changed.

Anyhow, the forum discussion is open and should be restarted

This are the 2 posts answering the question about the sync option in the android account settings, it makes sense for me

I have been hammering at this problem for a bit longer. Here is a recap of what happened, what I did and what worked.

I turned on auto upload for a few directories, _then_ changed the destination directory. The uploads kept going to the old directory, so I pressed the 'X' button in the uploads tab. It seems as if it completely removed these files from the upload queue, forever. Toggling the auto-upload settings, changing the destination folder, restarting the phone, restarting the app and clearing the app cache had no effect.

_New_ photos would still get uploaded, but old ones would not.

The solution was to reinstall the app, and reconfigure everything. It definitely was not a battery issue.

After a reinstall, I encountered the battery saving issues you have mentioned. This separate problem was solved by changing the phone settings. This is something I'm happy to live with, as long as all the files make it to the server eventually.

I apologise for my harsh tone. It was issue in a troublesome 10 hour Nextcloud setup marathon. I was promised the moon, but couldn't get the only feature I cared about to work. Still, lashing out at the maintainers definitely was uncalled for.

@nicbou
Would also not say that communication is always perfect from the NC team, even would I say that NC is perfect (or clients or apps) but sometimes it is just hard / impossible to reproduce an issue.

As for me, I am nor sure why sometimes (rarely) some pics which do get uploaded are not moved to the apps directory. I have now way to debug this behavior nor reproduce it consistently. Makes it hard for everyone to fix it - sadly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

markbryanduncan picture markbryanduncan  ·  3Comments

AndyScherzinger picture AndyScherzinger  ·  3Comments

toobie83 picture toobie83  ·  3Comments

tobiasKaminsky picture tobiasKaminsky  ·  3Comments

tobiasKaminsky picture tobiasKaminsky  ·  3Comments