android icon indicating copy to clipboard operation
android copied to clipboard

Persistent "connection failed" on only SOME autoupload files, retry does not hit the server

Open ohthehugemanatee opened this issue 2 years ago • 4 comments

⚠️ Before posting ⚠️

  • [X] This is a bug, not a question or an enhancement.
  • [X] I've searched for similar issues and didn't find a duplicate.
  • [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • [X] I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Enable autoupload for photos
  2. Take some photos
  3. Observe "connection failed" for approx 1/8 of photos.

Expected behaviour

All photos should either upload or fail. Retry should make a visible HTTP request to the server.

Actual behaviour

One photo will get stuck with "connection failed". Others taken before or after will upload successfully. Retrying the failed photo will always get the same "connection failed", but leaves no trace in nginx access.log or error.log.

Android version

12

Device brand and model

samsung galaxy s21

Stock or custom OS?

Stock

Nextcloud android app version

30.20.3

Nextcloud server version

24.0.2

Using a reverse proxy?

Yes

Android logs

No response

Server error logs

No response

Additional information

If I manually "share" the photo to the camera uploads directory, it works fine. Autoupload yhen correctly raises the conflict dialog. So it must be getting SOME information.

Sorry no logcat for now but i'll attach one the next time the issue appears.

ohthehugemanatee avatar Jul 28 '22 15:07 ohthehugemanatee

I can confirm this happening to me as well. And I can confirm the workaround works too - removing the "failing" file from the autoupload list, then sharing it again to upload resolves the problem.

Nowaker avatar Aug 17 '22 22:08 Nowaker

Anything in common for the pictures that do fail, in contrast to the other ones? i.e. do they all have a name that starts in the same way, or something like that?

AlvaroBrey avatar Aug 18 '22 07:08 AlvaroBrey

No, just regular pictures from the camera, therefore following the standard auto-generated name based on date. 99.5% of such pictures just go through, while a couple bad sheep simply fail and won't upload unless I "Clear failed uploads" and then share them manually from my gallery into Nextcloud.

Nowaker avatar Aug 18 '22 21:08 Nowaker

If I share one file from outside the app (such as from the Photos app) and choose Nextcloud as the destination (any folder), it always succeeds. If I share multiple files from the photos app, only the first one succeeds and each of the others have the error. I can't seem to find any permission for allowing it and I'm not sure whether it is a permission issue. If I go to the Nextcloud app and tap each of the failed ones, they always succeed (unless I try it many days later...then they all fail). The workaround is to immediately open the Nextcloud app and go to Uploads watch them upload, and retry ones that already failed. I have to do it every time. This has happened to me for years across several updates of Android and the Nextcloud app. Is my issue the same or different, and is there an issue number for that (Maybe re-open issue #2592)?

Poikilos avatar Sep 04 '22 14:09 Poikilos

I have this issue with my note files (.md files from Obsidian). Most are auto uploaded, some constantly fail and cause the app to crash

Cause of error

Exception in thread "FinalizerWatchdogDaemon" java.util.concurrent.TimeoutException: com.android.internal.os.BinderInternal$GcWatcher.finalize() timed out after 10 seconds
    at com.android.internal.os.BinderInternal$GcWatcher.finalize(BinderInternal.java:62)
    at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:250)
    at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:237)
    at java.lang.Daemons$Daemon.run(Daemons.java:103)
    at java.lang.Thread.run(Thread.java:764)

App information

  • ID: com.nextcloud.client
  • Version: 30210290
  • Build flavor: generic

Device information

  • Brand: Hisense
  • Device: HLTE202N
  • Model: HLTE202N
  • Id: PKQ1.190504.001
  • Product: HLTE202N

Firmware

  • SDK: 28
  • Release: 9
  • Incremental: L1657.6.01.02

juliuspopp avatar Nov 29 '22 09:11 juliuspopp