Describe the bug
Notes app synchronizes, but stops syncing after some amount of time. Only after deleting and re-adding account does sync work, but all new notes created locally are deleted (as expected).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It would always be about to sync
Server
Smartphone (please complete the following information):
Stacktrace:
App Version: 2.9.0
App Version Code: 77
Files App Version Code: 30100090
---
OS Version: 4.4.153-perf+(1912311102)
OS API Level: 28
Device: OnePlus5T
Model (and Product): ONEPLUS A5010 (OnePlus5T)
---
com.nextcloud.android.sso.exceptions.NextcloudApiNotRespondingException: Nextcloud files app api is not responding. Please report this issue.
at com.nextcloud.android.sso.api.AidlNetworkRequest.waitForApi(AidlNetworkRequest.java:128)
at com.nextcloud.android.sso.api.AidlNetworkRequest.performAidlNetworkRequestV2(AidlNetworkRequest.java:267)
at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:148)
at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:148)
at it.niedermann.owncloud.notes.persistence.NotesClient.requestServer(NotesClient.java:194)
at it.niedermann.owncloud.notes.persistence.NotesClient.getNotes(NotesClient.java:125)
at it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.pullRemoteChanges(NoteServerSyncHelper.java:363)
at it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.doInBackground(NoteServerSyncHelper.java:291)
at it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.doInBackground(NoteServerSyncHelper.java:262)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
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:764)
Thank you for reporting this bug.
Regards
In terms of pin/device credentials, what do you mean? Do you mean SSO or encryption?
No, i meant if your files app is protected (go to settings in your files app and check "App-PIN" (First entry in "Details" section). What is selected there?
Thank you for the clarification! No I don't have either of those checked.
On Fri, Jan 31, 2020, 3:04 AM Niedermann IT-Dienstleistungen <
[email protected]> wrote:
No, i meant if your files app is protected (go to settings in your files
app and check "App-PIN" (First entry in "Details" section). What is
selected there?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/stefan-niedermann/nextcloud-notes/issues/710?email_source=notifications&email_token=ABQVPBEXRFTIKEFCGFK23ITRAQAVXA5CNFSM4KOCTIQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKOKAQA#issuecomment-580689984,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQVPBCH46PTS5LIIESO473RAQAVXANCNFSM4KOCTIQQ
.
Regarding "Step 3": "Wait a week":
I guess this bug is from Single-Sign-On (see https://github.com/nextcloud/Android-SingleSignOn/issues/162).
Thank you for your information
Hi,
Notes or Files did not receive an update. This has been a recurring problem for a few weeks now.
I did not open the apps for a while in between sessions. I think I open them every 3 or four days.
I am using the news app and I recently had the same problem there as well, although not recently (after also doing the same procedure where I re-add my account).
So should I disable SSO and see if that changes anything?
After having this happen again, I've found that sync works after opening the files app, force closing Notes and then re-opening. Is this intended behavior?
So should I disable SSO and see if that changes anything?
SSO can't be disabled in the Notes app.
Is this intended behavior?
No, of course not. This is a known issue of the SSO which is tracked here: https://github.com/nextcloud/Android-SingleSignOn/issues/162
There are some ideas to retry the connection a few times, but nothing concrete yet unfortunately.
Please reopen if this issue still occurs with v2.10.3.
How long will it take for it to appear on f-droid?
Don't know, depends on F-Droid's build servers.
I guess a few days or max. a week 🤷🏻♂️
Hello
I have still a problem with the new version :
App Version: 2.10.3
App Version Code: 81
Files App Version Code: 30100190
---
OS Version: 4.9.148(9.1.0.155C432)
OS API Level: 28
Device: HWLLD-H
Model (and Product): LLD-L31 (LLD-L31)
---
com.nextcloud.android.sso.exceptions.NextcloudApiNotRespondingException: L'application Nexcloud Files ne répond pas. Veuillez signaler ce problème.
at com.nextcloud.android.sso.api.AidlNetworkRequest.waitForApi(AidlNetworkRequest.java:147)
at com.nextcloud.android.sso.api.AidlNetworkRequest.performAidlNetworkRequestV2(AidlNetworkRequest.java:278)
at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:165)
at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:148)
at it.niedermann.owncloud.notes.persistence.NotesClient.requestServer(NotesClient.java:163)
at it.niedermann.owncloud.notes.persistence.NotesClient.putNote(NotesClient.java:107)
at it.niedermann.owncloud.notes.persistence.NotesClient.editNote(NotesClient.java:122)
at it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.pushLocalChanges(NoteServerSyncHelper.java:347)
at it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.doInBackground(NoteServerSyncHelper.java:318)
at it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.doInBackground(NoteServerSyncHelper.java:284)
at android.os.AsyncTask$2.call(AsyncTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:246)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
com.nextcloud.android.sso.exceptions.NextcloudApiNotRespondingException: L'application Nexcloud Files ne répond pas. Veuillez signaler ce problème.
at com.nextcloud.android.sso.api.AidlNetworkRequest.waitForApi(AidlNetworkRequest.java:147)
at com.nextcloud.android.sso.api.AidlNetworkRequest.performAidlNetworkRequestV2(AidlNetworkRequest.java:278)
at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:165)
at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:148)
at it.niedermann.owncloud.notes.persistence.NotesClient.requestServer(NotesClient.java:163)
at it.niedermann.owncloud.notes.persistence.NotesClient.getNotes(NotesClient.java:98)
at it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.pullRemoteChanges(NoteServerSyncHelper.java:413)
at it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.doInBackground(NoteServerSyncHelper.java:320)
at it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.doInBackground(NoteServerSyncHelper.java:284)
at android.os.AsyncTask$2.call(AsyncTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:246)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
Yes, noticed it, unfortunately. 😓
We are taking care about it in https://github.com/stefan-niedermann/nextcloud-notes/issues/752
@stefan-niedermann might be fixed since 2.10.3. Thanx!
I have the same issue, how can I fix it? I've tried reinstalling both apps.
App Version: 2.16.3
App Version Code: 2016003
App Flavor: fdroid
Files App Version Code: 30120090
---
OS Version: 3.10.72+(1521441980)
OS API Level: 22
Device: NX541J
Manufacturer: nubia
Model (and Product): NX541J (NX541J)
---
com.nextcloud.android.sso.exceptions.NextcloudApiNotRespondingException: Nextcloud files app api is not responding. Please report this issue.
at com.nextcloud.android.sso.api.AidlNetworkRequest.waitForApi(AidlNetworkRequest.java:147)
at com.nextcloud.android.sso.api.AidlNetworkRequest.performAidlNetworkRequestV2(AidlNetworkRequest.java:278)
at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:165)
at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:148)
at it.niedermann.owncloud.notes.persistence.SSOClient.requestFilesApp(SSOClient.java:27)
at it.niedermann.owncloud.notes.persistence.CapabilitiesClient.getCapabilities(CapabilitiesClient.java:64)
at it.niedermann.owncloud.notes.main.MainActivity.lambda$null$20$MainActivity(MainActivity.java:791)
at it.niedermann.owncloud.notes.main.-$$Lambda$MainActivity$4HeEjJCK6xYZ8GdVmxdXI3hCjBw.run(lambda)
at java.lang.Thread.run(Thread.java:818)
Unfortunately i can't do anything but redirecting you to https://github.com/nextcloud/Android-SingleSignOn/issues/162
Have you disabled all battery optimizations for both apps?
Have you disabled all battery optimizations for both apps?
Yes, I tried it and it worked. Thanks!
@HiperFall we are trying to hunt down this nasty bug. Since battery optimization solved this issue:
Have you disabled it for
Thank you in advance :slightly_smiling_face:
¹ In this case: Would you mind to try disabling it only for one of the two apps and report us if the issue appears again? (Though it might take some time for the optimization system to react again and drop the connection)
@stefan-niedermann
It can work if I disable optimizations for the main NextCloud and not for Notes. It's important if the battery optimizatons are disabled for the main app.
Most helpful comment
@stefan-niedermann
It can work if I disable optimizations for the main NextCloud and not for Notes. It's important if the battery optimizatons are disabled for the main app.