android icon indicating copy to clipboard operation
android copied to clipboard

upgrade to 3.20.x breaks auto upload

Open mepreston opened this issue 3 years ago • 64 comments

Steps to reproduce

  1. have version 3.19.1 installed
  2. upgrade to 3.20.0 or 3.20.1
  3. auto upload no longer works

Expected behaviour

  • this is a regression. autoupload should continue to work

Actual behaviour

  • it no longer auto uploads any new pics

Can you reproduce this problem on https://try.nextcloud.com?

not uploading server logs as it doesn't even attempt to contact the server to upload.

Environment data

Android version: 10

Device model: moto g7 power

Stock or customized system:

Nextcloud app version: 3.20.x

Nextcloud server version: 23.0.4

Reverse proxy: no

workaround: downgraded to 3.19.1 and it is working fine again

mepreston avatar May 07 '22 17:05 mepreston

I am also experiencing this on my Xiaomi Redmi Note, as is my partner.

Foritus avatar May 08 '22 00:05 Foritus

Same here. Took a lot of photos recently, but I've noticed that none of them reached the server.

manvis avatar May 08 '22 06:05 manvis

Same here since last app update.

Android version: 10 Device model: Cubot X30 Nextcloud app version: 3.20.1 Nextcloud server version: 23.0.4

crycode-de avatar May 08 '22 08:05 crycode-de

Same here: Android version: 10 Device model: Honor 10 View Nextcloud app version: 3.20.1 Nextcloud server version: 23.0.3

dtrouillet avatar May 08 '22 10:05 dtrouillet

Same issue (last time it did work according to the logs was the 17/04/2022): Android version: 10 Device Model: Samsung Galaxy S9 (Exynos variant) Nexcloud app version: 3.20.1 (excluded from power management) Nexcloud server version: 23.0.0

Mindstan avatar May 08 '22 13:05 Mindstan

I'll try to reproduce this. Has anyone verified if it happens in a fresh install of 3.20.0? (not upgrade)

AlvaroBrey avatar May 09 '22 07:05 AlvaroBrey

I wasn't able to reproduce this. Can anyone upload a logcat?

AlvaroBrey avatar May 09 '22 10:05 AlvaroBrey

Same here too. Since 3.20.x my auto-upload folders are not backing up new files to my server. At first I thought it was related to MIUI saving settings, but after checking everything, not even with the app opened works.

xaavro avatar May 09 '22 19:05 xaavro

if there was an existing logfile on the client i'd be happy to upload it but i'm not doing the adb thing to get you a log. i complained years ago when you first did away with logs on the client and was ignored.

mepreston avatar May 09 '22 19:05 mepreston

I wasn't able to reproduce this. Can anyone upload a logcat?

See logcatOutput.txt (with redacted username/host/port/user-folders)

originalsouth avatar May 10 '22 11:05 originalsouth

I wasn't able to reproduce this. Can anyone upload a logcat?

See logcatOutput.txt (with redacted username/host/port/user-folders)

Thanks! From this and another log that was shared with me privately, unfortunately I see no obvious cause of the problem; it seems like the media scan is triggered but the upload is never even queued. We'll have to try harder to reproduce this.

AlvaroBrey avatar May 10 '22 12:05 AlvaroBrey

Same issue here.

  • Server Nextcloud Nextcloud Hub II (23.0.4)
  • Android App 3.20.1
  • Android 10
  • HUAWEI P smart 2019

Wikinaut avatar May 10 '22 20:05 Wikinaut

Having this problem as well, but I was using an older version (tried upgrading to the 3.20.1 though, same problem). Upload was working perfectly fine. I think it may have stopped working after deleting all the pictures and videos I had on my phone (that's the only think related to the folders I have on auto-upload I've been doing recently). Now nothing of my auto-upload configured folders get uploaded. The settings are fine (auto-upload enabled and all the desired folders enabled and well configured, as always).

Edit: I uninstalled the app (which also removed all synced files and configuration from my device) and reinstalled again (latest version): auto upload working fine now again.

David-Lor avatar May 10 '22 21:05 David-Lor

Hi, i had the same problem too...i tried to upgrade the server, make update of all android market, but without success. I can see the photo's folder, but auto upload doesn't work.

Some days ago, i received update of play store (i saw android web view and other android things) and now auto upload works again ! I don't know what happened !

MarcoMas6 avatar May 11 '22 19:05 MarcoMas6

Installed 3.20.1 tonight to try and fix the auto upload not working on 3.20. 3.20.1 does not find any media folders on my device! I can set up a custom folder linked to my camera save location and this uploads pictures taken automatically however I cannot differentiate between pictures and videos therefore they all end up in the same backup location. Perhaps this is 'new' intended behaviour? Anyway, I have reinstalled version 3.19.1 for now to see if the auto discovery of media folders will be reinstated? It was much more satisfactory as a modus operandi. James

jkpirie avatar May 11 '22 21:05 jkpirie

Having this issue as well. As a workaround creating a custom rule for that folder like @jkpirie suggested works but I can't differentiate between images and videos that way like the default rules. Before I was sending videos to a different directory in Nextcloud but they were in the same one on the mobile device.

The default auto upload rules seem to just do nothing after the to 3.20.x . I have not yet tried reinstalling the application but I think that shouldn't be necessary, especially considering that removes any app configuration and local data as well.

kevenwyld avatar May 13 '22 18:05 kevenwyld

same here, stopped working right after the upgrade to 3.20.0 on two of my devices

kadrim avatar May 14 '22 05:05 kadrim

Lucky you people, it hasn't worked for years for me.

InfamousUser avatar May 14 '22 17:05 InfamousUser

I got mine to work again. After granting the app permissions for accessing contacts and calendar it started uploading all the pending files. Berore that I had permissions enabled for camera and storage only.

xaavro avatar May 14 '22 20:05 xaavro

Same problem for me on two devices, v 3.20.1. Enabling the contact and calendar permissions (which were disabled) as @xaavro suggested hasn't worked.

Note that in Settings -> Auto Upload, if I disable and re-enable a folder by hitting the cloud button, it prompts: "Your device may have battery optimisation enabled ...." . However this is false. I can confirm in the Android Battery Optimisation screen that the Nextcloud app is "Not optimised".

naudster avatar May 15 '22 04:05 naudster

Note that in Settings -> Auto Upload, if I disable and re-enable a folder by hitting the cloud button, it prompts: "Your device may have battery optimisation enabled ...." . However this is false. I can confirm in the Android Battery Optimisation screen that the Nextcloud app is "Not optimised".

"Your device may have battery optimisation enabled ...."

originalsouth avatar May 15 '22 08:05 originalsouth

Little update on the issue. Disabling again camera and contact permissions didn't break the auto-upload. Maybe changing them the first time somehow "refreshed" all permissions and made the app to work again?

xaavro avatar May 15 '22 09:05 xaavro

Same here: Android version: 10 Device model: Poco F1 Nextcloud app version: 3.20.1 Nextcloud server version: 24.0.0 Granted all permissions to the app, and turned off battery saver last automatic upload 03/05

ennyjr avatar May 16 '22 10:05 ennyjr

same problem

I found some directory not appear in 'setting' - 'auto upload' page.

solve the problem 1: stop app, kill process. 2: disable 'storage' permission and enable again for nextcloud app in system permission setting page. 3: launch app, it start auto upload.

redsignx avatar May 16 '22 12:05 redsignx

same problem

I found some directory not appear in 'setting' - 'auto upload' page.

solve the problem 1: stop app, kill process. 2: disable 'storage' permission and enable again for nextcloud app in system permission setting page. 3: launch app, it start auto upload.

Here it worked, thank you

ennyjr avatar May 16 '22 12:05 ennyjr

Worked for me too, thanks!

Mindstan avatar May 16 '22 12:05 Mindstan

same problem

I found some directory not appear in 'setting' - 'auto upload' page.

solve the problem 1: stop app, kill process. 2: disable 'storage' permission and enable again for nextcloud app in system permission setting page. 3: launch app, it start auto upload.

worked for me!

but i had to do it this way:

  1. kill/force-stop app
  2. disable storage permission
  3. launch app
  4. add permission via bottom-bar within the nextcloud app

kadrim avatar May 16 '22 14:05 kadrim

Worked for me as well. Looks like that completely stopping the app before attempting is a very important part of this fix because I'm almost sure I tried disabling and enabling permissions a few days ago and nothing happened. Thanks, @OrangeGeeker.

manvis avatar May 16 '22 20:05 manvis

I can confirm this worked for me as well. I did as @kadrim suggested and let the app request the permissions again after removing them.

kevenwyld avatar May 16 '22 20:05 kevenwyld

So the solution proposed by @OrangeGeeker also works for me. The files that were not uploaded since the app broke, however, remain unuploaded -- new files are uploaded. Is there a way to have the app upload these files?

originalsouth avatar May 18 '22 13:05 originalsouth