nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.29k stars 1.77k forks source link

Auto upload doesn't work #2834

Closed ghost closed 4 years ago

ghost commented 6 years ago

Actual behaviour

Expected behaviour

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

jirikeller commented 6 years ago

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

ghost commented 6 years ago

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

jirikeller commented 6 years ago

@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 ;-)

moulip commented 6 years ago

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.

jmhunter commented 6 years ago

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.

AndyScherzinger commented 6 years ago

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

gerroon commented 6 years ago

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.

AndyScherzinger commented 6 years ago

@mario @tobiasKaminsky are you aware of any general issues regarding Samsung Galaxy S issues regarding auto upload issues?

gerroon commented 6 years ago

@AndyScherzinger

I have another device with LineageOS 14.1 and auto uploads works perfectly fine.

AndyScherzinger commented 6 years ago

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... :/

gerroon commented 6 years ago

It actually used work to on that S7 until couple months ago, it probably broke after the damn system updates couple months ago

jmhunter commented 6 years 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").

AndyScherzinger commented 6 years ago

@mario any debugging hints for @jmhunter ? :)

klm46 commented 6 years ago

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!

moulip commented 6 years ago

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.

rwat1 commented 6 years ago

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.

jmhunter commented 6 years ago

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.

Update to update:

rwat1 commented 6 years ago

@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 :)

gerroon commented 6 years ago

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.

rwat1 commented 6 years ago

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

gerroon commented 6 years ago

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,

moulip commented 6 years ago

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" } ]

jmhunter commented 6 years ago

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

moulip commented 6 years ago

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

rwat1 commented 6 years ago

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.

gerroon commented 6 years ago

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

moulip commented 6 years ago

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.

jmhunter commented 6 years ago

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.

rwat1 commented 6 years ago

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.

jmhunter commented 6 years ago

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.

feutl commented 6 years ago

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?

gerroon commented 6 years ago

I do not have encryption

feutl commented 6 years ago

damnit, would have been too easy.

gerroon commented 6 years ago

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.

491810 commented 6 years ago

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.

rwat1 commented 6 years ago

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

491810 commented 6 years ago

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" } ]

491810 commented 6 years ago

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" } ]

maverick74 commented 5 years ago

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

maverick74 commented 5 years ago

@tobiasKaminsky is there anyone looking into this specific bug?

DMW007 commented 5 years ago

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.

k0d3g3ar commented 5 years ago

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.

tobiasKaminsky commented 5 years ago

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?

stale[bot] commented 5 years ago

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!

moulip commented 5 years ago

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" } } ]

maverick74 commented 5 years ago

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

AndyScherzinger commented 5 years ago

@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...)

rwat1 commented 5 years ago

@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 :)

AndyScherzinger commented 5 years ago

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

maverick74 commented 5 years ago

@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 :)