nextcloud / android

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

Autoupload doesn't (autoupload) #8285

Open InfamousUser opened 3 years ago

InfamousUser commented 3 years ago

Steps to reproduce

  1. Install fresh Nextcloud app on Android
  2. Add one or two autoupload folders (custom) with the following: only "also upload existing files" checked, original file kept in original folder, if file exists -> rename new version.
  3. Make sure it is turned on.
  4. Wait

Expected behaviour

App should automatically upload the selected data.

Actual behaviour

App does not automatically upload the selected data, manual upload, on the other hand, works. Upload menu is empty, nothing is attempting to be uploaded. I do get notifications about other media folders being detected, but no feedback regarding the selected autoupload.

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

Environment data

Android version: 14

Device model: Google Pixel 7 Pro

Stock or customized system: stock

Nextcloud app version: 3.27.0

Nextcloud server version: 28.0.2

Reverse proxy:

Logs

Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate

mxsrm commented 1 year ago

Still not fixed...

Pravi21 commented 1 year ago

Auto upload permanently stopped working! Please consider this issue and fix it.

InfamousUser commented 1 year ago

Nobody's at the helm of this app...

prasannjeet commented 1 year ago

Facing the same issue. Latest samsung and android version.

prasannjeet commented 1 year ago

Anyone facing this issue, please look at this thread for some plausible solutions: https://github.com/nextcloud/android/issues/9320

elementum commented 1 year ago

Geez, this is ridicuolous the feature that is the main driver of installing this app does not work. Changing permissions didn't make it work either.

elementum commented 1 year ago

I did my own investigation. It all started at 3.11 when sync existing files feature was introduced, however it had a bug. If you enabled syncing for a folder with a lot of files it would hang the app. Sometimes you wouldn't be able to open the app again, only reinstallation would help. The problem was that it proccessed (insert a record into db, so it seems) files in foreground thread which caused the app to hang.

So they decided to move it to background PR. But it doesn't seem to fix the issue, but rather hide it from user, and it seemingly fails in background. Since then syncronization stops working, enabling/disabling, syncing existing or new, nothing works anymore. The only way to make it work again is to reinstall the app.

So I suggest avoiding syncing folders with a lot of files, but rather copy existing files over the wire and enable only new files syncing.

regs01 commented 1 year ago

For me autoupload in stable doesn't work at all. Nextcloud dev does. And I started off dev because I couldn't find stable, as it doesn't have an icon in F-Droid. So when I found it, I deleted dev, then installed stable. And nothing. All autoupload settings are setup. Added an exception to battery settings. Rebooted the phone. Still nothing. Autoupload does not react on any folder, whatever there are large number of files or just a few of files.

regs01 commented 1 year ago

After turning off autoupload for a folder with 7000 photos autoupload is working for other folders. So looks like it was fixed in dev, but yet not in stable?

regs01 commented 1 year ago

Reinstalled back dev version. Autoupload is working, but it hogs the battery permanently at a very high rate.

metinc commented 1 year ago

After turning off autoupload for a folder with 7000 photos autoupload is working for other folders. So looks like it was fixed in dev, but yet not in stable?

I can confirm this. I have a folder with 8000 photos. Nothing is being uploaded. When I disable auto upload for that folder other folders start uploading.

InfamousUser commented 1 year ago

Will someome fix this already? Why is development effort being wasted on this app if people cannot use it?

OfficialMuffin commented 1 year ago

Having similar issues here even without autoupload on Android 13 and NC app version 3.24.1. I queued a list of 80 video files to upload, when device goes to sleep, shortly after it stops. I have to manually swipe away (close app) and reopen it for the NC app to start the uploads again

afluegel9 commented 1 year ago

I have 3.24.2 on Android 6.0.1. Photo upload works, but i have the impression i have to run the app regularly and open the upload menu to trigger it, otherwise it ceases to function. Video upload never starts. It was working about 2 years ago the last time. I have a 29 MB video, what i do not consider really big. I even copied the file to give it a newer timestamp. Does not get uploaded. Switching the videos section in the configuration on and off or slightly modifying it does not help. Battery optimization is switched off. For me it is really a pity, that this stopped to work.

NicolasGoeddel commented 1 year ago

Since 17.05.2023 my Autoupload settings in Android were restored to default! Why did that happen? The remote folder is completely different now and set to /SofortUpload/Camera instead of what I had before. And also the settings are wrong now.

That is really annoying now because that means I have to set all that stuff up again... 🤬

I did not touch the Nextcloud app since months and it just works. But now that bullshit again...

Edit: And now it tries to upload thousands of Pictures again although they to already exist on the remote side 🙄

Whyyyyyyyyyyyyyyyyy?

NicolasGoeddel commented 1 year ago

I created a dedicated issue for that: https://github.com/nextcloud/android/issues/11641

CaixaNegraPT commented 1 year ago

Same on my side... worse is that I have literally thousands of photos as I us Nextcloud auto-upload as a way of backing up every since image/video I send/received in any app on my Android phone. Plus, I have other Android phones for other accounts doing the same...

Worse is that I enable all the uploads again but nothing starts uploading, I use "uploading existing files" with "skip uploading" if file exists... looks like the Android client is slowly parsing every single file, one by one... maybe in 2-3 days it will finish and start uploading...

NicolasGoeddel commented 1 year ago

@CaixaNegraPT wrote:

Same on my side... worse is that I have literally thousands of photos as I us Nextcloud auto-upload as a way of backing up every since image/video I send/received in any app on my Android phone. Plus, I have other Android phones for other accounts doing the same...

Worse is that I enable all the uploads again but nothing starts uploading, I use "uploading existing files" with "skip uploading" if file exists... looks like the Android client is slowly parsing every single file, one by one... maybe in 2-3 days it will finish and start uploading...

That's exactly how I use it too.

regs01 commented 1 year ago

Some of Nextcloud dev version explicitly switched off auto upload for all folders. Now renabling doesn't do anything again. So stable version doesn't work and dev version doesn't work.

This is Top 1 feature for entire Nextcloud Hub solution. Why not to completely suspend all other developments and concentrate on this bug?

InfamousUser commented 1 year ago

Precisely... the exact thing I am wondering.

NicolasGoeddel commented 1 year ago

They seem to have solved it for RC2 and the final version: https://github.com/nextcloud/android/issues/11641#issuecomment-1564137142

InfamousUser commented 1 year ago

Unlikely, as they have "solved" it several times already, but it hasn't been working for multiple years; but I will still install the update.

InfamousUser commented 1 year ago

And, also, it is not in the changelog.

joshtrichards commented 9 months ago

@InfamousUser

05-14 18:45:55.764 4102 4152 E WM-WorkerWrapper: Work [ id=bbc41e32-4d61-44a2-a615-356a5955e499, tags={ com.nextcloud.client.jobs.FilesSyncWork, *, timestamp:1652546693037, name:immediate_files_sync } ] failed because it threw an exception/error

05-14 18:45:55.764 4102 4152 E WM-WorkerWrapper: at com.nextcloud.client.jobs.FilesSyncWork.doWork(FilesSyncWork.kt:98)

05-14 18:45:55.766 4102 4152 I WM-WorkerWrapper: Worker result FAILURE for Work [ id=bbc41e32-4d61-44a2-a615-356a5955e499, tags={ com.nextcloud.client.jobs.FilesSyncWork, *, timestamp:1652546693037, name:immediate_files_sync } ]

  1. Is there more to the stack trace? (that second line). i.e. I would expect it to look more like the one in #11342
  2. Can you post your actual auto-upload settings? (I don't see them in your reproduction steps)
  3. Are you using a custom folder or an auto-detected folder? (ditto)
  4. Do all of your auto-upload tests have a space (" ") in the remote folder name?
InfamousUser commented 9 months ago

I will retest this but I will need to update the server and dependencies first as they are outdated and configure them. A bit busy at the moment, will report back once I've managed to retest. This has been going on for years so I've stopped expecting solutions.

InfamousUser commented 6 months ago

Updated the server finally. Updated the OP with your points 2, 3. AFAIR all autoupload remote folders have a space since my phone name has a space.

Don't have that original error any longer I don't think. It just started uploading stuff after about a day now. I set it up yesterday night and it only started uploading now while I was checking logs. Weird. If it takes a day to start working, it might as well not be working, ain't nobody got time for that... Now if readd autoupload to make a change, I can't wait until tomorrow to see if it works. I already removed one autoupload because it wasn't working, it uploaded a couple of files and then stopped. Is there a reason there would be such huge delays for everything? Server is reasonably fast and phone is top end...

regs01 commented 6 months ago

Was ist das?

Updated to 3.28 and this has been up for many hours now. And not moving.

firefox_2024-02-25_19-36-18