notes-android icon indicating copy to clipboard operation
notes-android copied to clipboard

Synchronisation Error

Open rusty-genius opened this issue 2 years ago • 9 comments

Please use GitHub reactions 👍 to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug The APP does not sync new notes and even destroys notes that try to sync

To Reproduce Happens the entire time when you create a note and it tries to sync

Expected behavior Normal syncing

Screenshots

Example destroyed note with error message

Screenshot_20220711-192915

Smartphone (please complete the following information): Error Log:

App Version: 3.5.00
App Version Code: 3005000
App Flavor: fdroid

Files App Version Code: 30200390

---

OS Version: 4.14.261-ab22307000(22307002)
OS API Level: 32
Device: sunfish
Manufacturer: Google
Model (and Product): Pixel 4a (sunfish)

---

java.lang.RuntimeException: com.nextcloud.android.sso.exceptions.UnknownErrorException: Read timed out
	at io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:46)
	at io.reactivex.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:93)
	at io.reactivex.Maybe.blockingGet(Maybe.java:2321)
	at io.reactivex.Observable.blockingSingle(Observable.java:5381)
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pullRemoteChanges(NotesServerSyncTask.java:219)
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:96)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:920)
Caused by: com.nextcloud.android.sso.exceptions.UnknownErrorException: Read timed out
	at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:188)
	at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:199)
	at com.nextcloud.android.sso.api.NextcloudAPI.lambda$performRequestObservableV2$1$com-nextcloud-android-sso-api-NextcloudAPI(NextcloudAPI.java:129)
	at com.nextcloud.android.sso.api.NextcloudAPI$$ExternalSyntheticLambda2.subscribe(Unknown Source:6)
	at io.reactivex.internal.operators.observable.ObservableFromPublisher.subscribeActual(ObservableFromPublisher.java:31)
	at io.reactivex.Observable.subscribe(Observable.java:12284)
	at io.reactivex.internal.operators.observable.ObservableSingleMaybe.subscribeActual(ObservableSingleMaybe.java:31)
	at io.reactivex.Maybe.subscribe(Maybe.java:4290)
	at io.reactivex.Maybe.blockingGet(Maybe.java:2320)
	... 8 more

Server

  • Nextcloud version: 22.2.8 enterprise
  • Nextcloud Notes version (server app): 4.4.0

Stacktrace

rusty-genius avatar Jul 11 '22 17:07 rusty-genius

Having the same issue here but with different error log information:


App Version: 3.4.16
App Version Code: 3004016
App Flavor: fdroid

Files App Version Code: 30210051

---

OS Version: 4.9.186-perf-g10af704(V12.0.3.0.QDGMIXM)
OS API Level: 29
Device: polaris
Manufacturer: Xiaomi
Model (and Product): Mi MIX 2S (polaris)

---

java.lang.Exception: com.nextcloud.android.sso.exceptions.TokenMismatchException: El token de autenticación proporcionado no coincide o no se permite para realizar esta acción el nombre del paquete
 at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pushLocalChanges(NotesServerSyncTask.java:174)
 at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:94)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
 at java.lang.Thread.run(Thread.java:919)


java.lang.Exception: com.nextcloud.android.sso.exceptions.TokenMismatchException: El token de autenticación proporcionado no coincide o no se permite para realizar esta acción el nombre del paquete
 at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pushLocalChanges(NotesServerSyncTask.java:145)
 at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:94)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
 at java.lang.Thread.run(Thread.java:919)


java.lang.Exception: com.nextcloud.android.sso.exceptions.TokenMismatchException: El token de autenticación proporcionado no coincide o no se permite para realizar esta acción el nombre del paquete
 at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pushLocalChanges(NotesServerSyncTask.java:158)
 at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:94)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
 at java.lang.Thread.run(Thread.java:919)

I didn't really notice until now but seems to be present at least from march 2022.

Manuel5cc avatar Aug 08 '22 17:08 Manuel5cc

@Manuel5cc please read our FAQ regarding this issue which is not related in any way to this one. Please also subscribe to https://github.com/stefan-niedermann/nextcloud-notes/issues/1513 which is for the error message, you got 😉

stefan-niedermann avatar Aug 08 '22 17:08 stefan-niedermann

@rusty-genius besides the fact that this error message should of course not replace the notes content (I'll look for the cause why this could happen): Your Nextcloud server responden with a ServerNotAvailableException. Please check your server logs for more details and print them here.

stefan-niedermann avatar Aug 08 '22 17:08 stefan-niedermann

@rusty-genius besides the fact that this error message should of course not replace the notes content (I'll look for the cause why this could happen): Your Nextcloud server responden with a ServerNotAvailableException. Please check your server logs for more details and print them here.

I had noticed that part but my server is working perfectly for itself and other third party apps so I assumed that was an error.

Manuel5cc avatar Aug 08 '22 17:08 Manuel5cc

@Manuel5cc this response was for the original issue poster, nor for you. I hid your messages because they are Off-Topic (check out the above collapsed answers).

stefan-niedermann avatar Aug 08 '22 17:08 stefan-niedermann

It looks like I'm having the same kind of problem, but it's on a Motorola phone. I don't have a whole lot of notes.

App Version: 3.7.1
App Version Code: 3007001
App Flavor: fdroid

Files App Version Code: 30240190

---

OS Version: 4.19.191-g75132c3f3a36(2e26e)
OS API Level: 31
Device: tonga
Manufacturer: motorola
Model (and Product): moto g power (2022) (tonga_g)

---

java.lang.Exception: com.nextcloud.android.sso.exceptions.TokenMismatchException: Provided authentication token does not match or package name is not permitted to perform this action
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pushLocalChanges(NotesServerSyncTask.java:145)
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:94)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:463)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)


java.lang.Exception: com.nextcloud.android.sso.exceptions.TokenMismatchException: Provided authentication token does not match or package name is not permitted to perform this action
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pushLocalChanges(NotesServerSyncTask.java:158)
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:94)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:463)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)


java.lang.RuntimeException: com.nextcloud.android.sso.exceptions.TokenMismatchException: Provided authentication token does not match or package name is not permitted to perform this action
	at io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:46)
	at io.reactivex.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:93)
	at io.reactivex.Maybe.blockingGet(Maybe.java:2321)
	at io.reactivex.Observable.blockingSingle(Observable.java:5381)
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pullRemoteChanges(NotesServerSyncTask.java:219)
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:96)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:463)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)
Caused by: com.nextcloud.android.sso.exceptions.TokenMismatchException: Provided authentication token does not match or package name is not permitted to perform this action
	at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:188)
	at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:199)
	at com.nextcloud.android.sso.api.NextcloudAPI.lambda$performRequestObservableV2$1$com-nextcloud-android-sso-api-NextcloudAPI(NextcloudAPI.java:129)
	at com.nextcloud.android.sso.api.NextcloudAPI$$ExternalSyntheticLambda0.subscribe(Unknown Source:6)
	at io.reactivex.internal.operators.observable.ObservableFromPublisher.subscribeActual(ObservableFromPublisher.java:31)
	at io.reactivex.Observable.subscribe(Observable.java:12284)
	at io.reactivex.internal.operators.observable.ObservableSingleMaybe.subscribeActual(ObservableSingleMaybe.java:31)
	at io.reactivex.Maybe.subscribe(Maybe.java:4290)
	at io.reactivex.Maybe.blockingGet(Maybe.java:2320)
	... 8 more

randynose avatar Mar 20 '23 09:03 randynose

@randynose your issue is unrelated, please see FAQ

stefan-niedermann avatar Mar 20 '23 09:03 stefan-niedermann

👍 Great, thank you so much. I cleared the cash and storage on my phone and everything looks like it's working now.

On Mon, Mar 20, 2023, 5:41 AM Niedermann IT-Dienstleistungen < @.***> wrote:

@randynose https://github.com/randynose your issue is unrelated, please see FAQ https://github.com/nextcloud/notes-android/blob/main/FAQ.md#tokenmismatchexception

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/notes-android/issues/1548#issuecomment-1475906818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEJ5ZPJQTZ6YERTRAYN2GO3W5AQ6NANCNFSM53IIQU6Q . You are receiving this because you were mentioned.Message ID: @.***>

randynose avatar Mar 20 '23 20:03 randynose

I met the error. After upgraded to the latest version of nextcloud app, the note app works.

highfly22 avatar Sep 28 '23 14:09 highfly22