Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get rid of file upload conflict notification #7905

Open
jdaviescoates opened this issue Jan 28, 2021 · 75 comments · Fixed by #9691
Open

Cannot get rid of file upload conflict notification #7905

jdaviescoates opened this issue Jan 28, 2021 · 75 comments · Fixed by #9691
Labels
approved bug feature: auto upload feature: sync and upload Syncing or uploading (that isn't auto upload specific) hotspot: sync conflicts Sync conflict management matters hotspot: uploads tab and transfer notifications The uploads tab and upload + download related notifications

Comments

@jdaviescoates
Copy link

jdaviescoates commented Jan 28, 2021

Steps to reproduce

  1. Get a notification like this

Screenshot_20210128-155456

  1. Click it and end up at a dialog like this:

Screenshot_20210128-120617

  1. Whatever I do (choose original file, choose the new file, or cancel) doesn't make any difference, within a minutes or so (or even less) I get the exact same notification about the exact same conflict again. Again, and again, and again

Expected behaviour

  • Choose which file to keep, then not get the notification again.

Actual behaviour

  • I keep getting the same notification about the same file conflict over and over and over again.

Environment data

Android version:

8.1.0

Device model:

Wileyfox Swift 2 Plus

Stock or customized system:

Stock

Nextcloud app version:

3.14.3

Nextcloud server version:

20.0.6

Reverse proxy:

?

@dremerb
Copy link

dremerb commented Feb 3, 2021

Can confirm this behavior. For me this happened after restoring a backup and re-syncing - I have set all folders to "Skip uploading" (not sure about the correct name, German system here) and the last conflict remains in the notifications.
Even after restarting the device, the sync starts again and the notification reappears.

@jdaviescoates
Copy link
Author

I finally managed to get rid of the incessant notifications but selecting both files.

@Klemens2
Copy link

Klemens2 commented Feb 9, 2021

I have the same problem very often too.

@tobiasKaminsky
Copy link
Member

What kind of file is this? Does it come via auto upload?

@tobiasKaminsky tobiasKaminsky added the needs info Waiting for info from user(s). Issues with this label will auto-stale. label Feb 25, 2021
@Klemens2
Copy link

Klemens2 commented Feb 25, 2021 via email

@dremerb
Copy link

dremerb commented Feb 25, 2021

When trying to get it working again, I encountered the following:
Deleted all of the existing files in Nextcloud. NC client on Android still had sync activated.
Uploaded images from Android to NC (auto upload does not do this automatically). Instant conflicts.

Also, often NC client on Android fails to build the conflict dialog (Message along those lines in a Toast).

@wknds
Copy link
Contributor

wknds commented Feb 26, 2021

I experience the same issue on an autoupload folder. I am working on Nextcloud android client 3.15.0
I thought this issue has been resolved in some older version of the client (#7082)

@tobiasKaminsky
Copy link
Member

I use the app for auto upload also on daily base for my own purposes, but I never managed to create such a conflict problem when using auto upload.
Even when I create manually a conflict, I can see conflict dialog just fine.

Do you have reliable steps how to reproduce this? Also on other devices?
Otherwise I am currently out of clue how to debug this :/

@wknds
Copy link
Contributor

wknds commented Mar 2, 2021

In my case, i am syncing the folder Screenshots with Nextcloud. Let say the folder is synced. Now i am using a file browser and upload an already synced file to the folder Screenshot on Nextcloud. The issue from above appears. (Nextcloud android client 3.15.0). Can anybody confirm this?

@Klemens2
Copy link

Klemens2 commented Mar 2, 2021 via email

@danielb7390
Copy link

I also get this problem with random files with the camera auto-upload feature.

@tobiasKaminsky
Copy link
Member

From other issues I read that the problem might be that very big files are not uploaded in time (assembly on server takes some time, but client does not wait that long and thus it is marked as failed), and then the same file is tried to be uploaded again.

--> Is this only happening on large files?

@Klemens2
Copy link

Klemens2 commented Mar 16, 2021 via email

@danielb7390
Copy link

The last conflict i got yesterday it was a JPG file ~2MB

@jdaviescoates
Copy link
Author

jdaviescoates commented Mar 16, 2021

As per screenshots of my original post when this happened me the file was just 55kb. But eventually I checked both check boxes to keep both versions and it resolved itself (but there is actually only one version of the file on the server). It's not happened to be again since

@dremerb
Copy link

dremerb commented Mar 16, 2021

Finally had some time, tried to replicate.
Android Client Version: 3.15.0
Server Version: 19.0.1

What has broken for me in the past:
Had automatic backups running to replicate data from my phone to cloud. Broke Android one day (custom ROMs ftw -.-), downloaded all data from NC to desktop computer, loaded it to Android via USB.
Then I rebuild the automatic upload structure, so all files that were copied manually to the phone should once again be synced to NC - to the locations I've just downloaded it from. This produced said error. Automatic upload was set to skip uploading, if a conflict occured, but this was ignored.
Fix was (in this exact order!) to disable automatic upload, wipe data from cloud, re-setup automatic upload. There was no possible way to keep data in cloud and just setup NC on Android to use that folders again, always threw conflict messages.

What I've tried now: Created folder in webinterface, created new, empty local folder on Android.
Loaded files into local folder on Android: synced as expected
Loaded file to cloud via webinterface: showed in app on phone as expected.
Loaded file to local folder on phone and immediately uploaded same file via webinterface: conflict in webinterface
Loaded file to cloud via webinterface and immediately moved the exact same file to local folder on Android: conflict notification in app.
Loaded file to cloud via webinterface and immediately moved the exact same file to local folder on Android with automatic backup set to skip files on conflict: no notification, seems to work as expected.

Conclusion: Can not replicate, although had the error earlier :/ Did no updates to NC server nor app since first occurence of the issue. All seems to be working as expected from my testing.

@StephanRichter
Copy link

StephanRichter commented Mar 23, 2021

Same problem here. Even files, for which I resolved the conflict months ago reappeared today. Now I have hundreds of conflicts.

@7RST1
Copy link

7RST1 commented Mar 31, 2021

I'm also having the same issue. I currently have 124 of these conflicts asking whether or not it should keep the identical file.

@jdaviescoates
Copy link
Author

Just to say again, what resolved this for me was to check both check boxes to say I want to keep both versions of the file (although in the end I actually only ended up with one version of the file). It's not happened to me again since.

@Klemens2
Copy link

Today, this worked for me too.

In the logs, i saw this entry (propably there is a connection to the problem)

Error no app in context Sabre\DAV\Exception\BadRequest: Expected filesize of 10240000 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 9306112 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

@Klemens2
Copy link

Unfortunatly, the upload conflict notifications are back an my mobile. Around 10-20 each day. No entry (at all) in log.

@github-actions
Copy link

This bug report 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!

@solarjoe
Copy link

I have an issue that might be related to this one: #8653

@Knusper
Copy link

Knusper commented Jul 25, 2021

I also run into this.. and the notifications won't stop. It's the same file both on my device and the cloud - I tried to upload the same file twice via the share dialog from a sound recording app.

Selecting both files (instead of cancel) disabled the dialogue.

@bnavigator
Copy link

@knuser, @djripcord I got the same for new files.

You can get rid of the repeated conflict messages by removing the failed upload task in the App: left menu "Uploads" and them remove the failed uploads. But what we actually want is a successful upload, eh?

Removing the 404 redirection as suggested in #10423 did fix it for me.

@Knusper
Copy link

Knusper commented Jun 26, 2022

OK - this fixed it for me.

@gjedeer
Copy link
Contributor

gjedeer commented Aug 9, 2022

Maybe the app could check if remote and local checksums match, before bothering user? More work for phone is better than more work for user.

I too get these notifications all the time and learned to live with them.

@joelbrock
Copy link

Same issue here.
Android 13
Nextcloud app 3.21.1
NextCloud Hub II 23.0.3

My twist is the conflicts seem to appear only for images that I've EDITED locally. Usually in Google Photos on the phone. These create upload conflicts which will return day after day.

@tinwasp
Copy link

tinwasp commented Jul 7, 2023

After changing my phone to a Pixel 7 Pro (running GrapheneOS) I have suddenly been getting pounded with upload conflicts as well over the last few months. Never been a problem before in this way. What I noticed, though, is that the checksums of the uploaded files are all off. They open and look ok, the size is the same as well, but the checksum is consistently different, affecting all, i.e. thousands of files. Wonder if something gets messed up here in the upload process.

Edit: Nevermind. Upon further inspection I realized, the only difference between the two files is the missing GPS info, as detailed in #6248, which has a workaround (#6248 (comment)). After fixing that, everything syncs fine again. Please excuse the noise.

@dodancs
Copy link

dodancs commented Sep 2, 2023

Nextcloud app 3.26.0 RC1 (beta)
Nextcloud server 26.0.3
Android 13
Oneplus 8 Pro (Oxygen OS 13.1)

I have the same issue on Nextcloud v3.26.0 RC1, Android 13, after I make some new photos and Nextcloud decides to upload them, after a while I get the conflicting file notifications. This also happens for photos I took many months ago, and then the notifications stack up as I make more and more photos and then the Instant upload is very slow to add new photos, because there is a backlog of thousands of notifications in the app to resolve conflicts (which are the exact same files on phone vs. server).
Screenshot_2023-09-02-22-56-39-07_06ea656a9ba653ff96746f477f32d0f9

Screenshot_2023-09-02-23-13-11-15_06ea656a9ba653ff96746f477f32d0f9

@Dante1349
Copy link

also with this issue right now, if anyone could help i'd be glad

@noyez
Copy link

noyez commented Sep 20, 2023

I have not seen this error for quite sometime, but the latest update to Android v3.26.0 today brought back this error. When i tap on the "File Upload conflict" notification, i get the "error creating conflict dialog".

@Dulanic
Copy link

Dulanic commented Sep 20, 2023

It happens quite often after updates etc... I finally gave up on this app and switched to something else because it was always problems. Try a webdav app instead.

@luisfcorreia
Copy link

This also happened to me recently, got a huge number of notifications that I can't fix.

Nextcloud Android - 3.26.0
Oneplus 8T - Android 13
Server - 27.1.0

@UllisHellfireeXperiments

Same issue here, coinciding with the update to Android App 3.26.0. As someone said above the conflict affects random pictures mostly taken months ago. The issue affects all users (various smartphone brands, various Android versions) who use the auto upload feature, mainly for pictures.

Server: Nextcloud 27.0, meanwhile updated to 27.1

@prechberger
Copy link

I also have the same problem, I disabled the auto upload function but the notification still appears. I also updated the Nextcloud server from 26 to 27.1, maybe there is a connection with the Nextcloud version and the logging?
I don't have this problem on the IOS system, only on the Android version of the Nextcloud client app.

@stratus-ss
Copy link

sadly this started to recur after going away for a while

@joshtrichards joshtrichards added feature: auto upload feature: activity and notification Server activity and notifications feature: sync and upload Syncing or uploading (that isn't auto upload specific) labels Oct 12, 2023
@T-Mike
Copy link

T-Mike commented Oct 20, 2023

I also have the same problem, I disabled the auto upload function but the notification still appears. I also updated the Nextcloud server from 26 to 27.1, maybe there is a connection with the Nextcloud version and the logging? I don't have this problem on the IOS system, only on the Android version of the Nextcloud client app.

Exactly the same thing happens to me, it is very annoying because I have to force quit the app to stop these notifications.

@Glasairmell
Copy link

Glasairmell commented Oct 27, 2023

I am getting the file the conflict error on my pixel 8pro. Smaller jpg files make it to the server with conflict, however larger RAW files do not. The server I want to use is located in Germany and is producing this issue. The one in Nederland is not and working perfectly. That tells me it is not my cell phone Nextcloud install.

One could say it is a server issue. I can only guess at that though. Perhaps packets are moving much slower on one then the other or some kind of timestamp issue.

Perhaps the problem is with server set up or speed.

Cheers!

@Glasairmell
Copy link

Well nix the separate server ideal. Now BOTH of my servers have the file conflict issue. At this point I can find no solution to resolve this. I do not want to go back to OneDrive to sync my photos.

@Fruchuxs
Copy link

Fruchuxs commented Nov 4, 2023

Same Problem, no possibility to kill all messages or to stop the uploads. Without a fix, the app is useless - sorry.

@hfr-hfr
Copy link

hfr-hfr commented Nov 5, 2023

...did you try the manual fix as described in #10423 or here or here? It seems to work for many.

@Apflkuacha
Copy link

I've got two phones here running on different NC accounts - both show hundreds of these conflicts where the server and phone files are equal and have to be clicked one by one..

please fix such (several year old) bugs before implementing new features - more people leave NC because of such annoyances than you get from new fancy (but not necessary) features

@joshtrichards joshtrichards added hotspot: sync conflicts Sync conflict management matters and removed feature: activity and notification Server activity and notifications labels Nov 16, 2023
@svenb1234
Copy link

Maybe related: #11974

@MafiaInc
Copy link

MafiaInc commented Dec 9, 2023

I got the same notification which is bothering me since there days now.
In my case I tried to upload a file from my Android phone via Nextcloud app from F-droid in directory where I forgot its read only for Nextcloud. Later I uploaded this file from a different place in the same directory, because my Nextcloud instance is configures to automatically scan the tree for new files in the file system it appears to find this file and shows it in the interface. Since then I can get rid of this notification. This was a temporary file anyway. I will try to remove it hoping this will remove that notification.

@MafiaInc
Copy link

MafiaInc commented Dec 9, 2023

After I deleted the file from the read only directory. I am now flooded with notifications of type :
"You are not permitted to upload to this
folder".
Attaching screenshot:
c462b41e-ef30-4cbf-b569-361459337a45

@joshtrichards
Copy link
Member

joshtrichards commented Dec 15, 2023

@MafiaInc Check your Uploads tab in the app for the problematic file. It sounds like it's still in the queue so the app keeps re-attempting. You can remove it from the queue there.

@joshtrichards joshtrichards added the hotspot: uploads tab and transfer notifications The uploads tab and upload + download related notifications label Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved bug feature: auto upload feature: sync and upload Syncing or uploading (that isn't auto upload specific) hotspot: sync conflicts Sync conflict management matters hotspot: uploads tab and transfer notifications The uploads tab and upload + download related notifications
Projects
None yet
Development

Successfully merging a pull request may close this issue.