Notes-App for Android does not sync; cannot read/create notes

as stated above, the notes-app for android cannot sync or create new notes anymore. Existing notes can be displayed, but it takes much longer than with the nextcloud-app itself. This might have started with the update to android 14 some weeks ago, but i’m not sure) When opened, it starts with an error-message “synchronisation not possible”
I’m quite sure it’s not a nextcloud (server)-problem, since all notes are displayed correctly and quickly inside the nextcloud-app.

Phone info:

App Version: 4.3.1
App Version Code: 40030190
App Flavor: fdroid
Files App Version Code: 30300890 (PROD)
OS Version: 4.9.337-perf+(1738889738)
OS API Level: 35
Device: FP3
Manufacturer: Fairphone
Model (and Product): FP3 (lineage_FP3)

Debug-info from the app:

java.lang.IllegalStateException: Duplicate key 1801910 (attempted merging values 57 and 59)
	at java.util.stream.Collectors.duplicateKeyException(Collectors.java:135)
	at java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:182)
	at java.util.stream.Collectors$$ExternalSyntheticLambda1.accept(D8$$SyntheticClass:0)
	at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1725)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:503)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:236)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:705)
	at it.niedermann.owncloud.notes.persistence.NotesRepository.getIdMap(NotesRepository.java:520)
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pullRemoteChanges(NotesServerSyncTask.java:214)
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:102)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1117)

I deleted the app-cache via the andoid-settings but this did not change anything.

Any ideas?
THX!

Just the cache or storage too?

See:

REF: notes-android Issue #1914

THX a lot, it works now!
It was (probably) the duplicate key issue; i deleted all app data and the error is gone.
I#m alway a little hesitant about deleting ALL app data on android but with nextcloud notes reconfiguration and (re-)authentication was really fast and easy.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.