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

Add workaround for known issue in FAQ.md #660

Closed
HelplessFool opened this issue Aug 21, 2020 · 26 comments
Closed

Add workaround for known issue in FAQ.md #660

HelplessFool opened this issue Aug 21, 2020 · 26 comments
Labels
🔐 single-sign-on Bugs or enhancements which depend on the single-sign-on

Comments

@HelplessFool
Copy link

HelplessFool commented Aug 21, 2020

On selecting account and allowing access the following error is received:

App Version: 1.9.7
App Version Code: 1009007
App Flavor: fdroid

Deck Server Version: 0.6.4

Files App Version Code: 30120190

---

OS Version: 3.18.120-perf-gd60e12b6-dirty(TB-X705F_USR_S210120_191029_Q00332_ROW)
OS API Level: 28
Device: X705F
Manufacturer: LENOVO
Model (and Product): Lenovo TB-X705F (LenovoTB-X705F)

---

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:168)
        at com.nextcloud.android.sso.api.NextcloudAPI.lambda$performRequestObservableV2$1$NextcloudAPI(NextcloudAPI.java:110)
        at com.nextcloud.android.sso.api.-$$Lambda$NextcloudAPI$HPzOdi9LOc_f-wA9GNnhc9LKQSM.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.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
        at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
        at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
        at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
        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)

Deck works with two other devices running the same version of the app. I can see files on the cloud using the nextcloud app. No errors occur there.

What further information would help you debug this?

@desperateCoder
Copy link
Collaborator

Hi @HelplessFool thanks for your report, great nick btw! 😆

What version of the nextcloud files app have you running on the failing device? Maybe all you need to do is update it?

@desperateCoder
Copy link
Collaborator

Oh wait! It's THAT exception?!?! I summon the experts @stefan-niedermann, @David-Development and @tobiasKaminsky! Do your thing!

@desperateCoder
Copy link
Collaborator

Ok, @stefan-niedermann told me, that clearing the storage of both apps would help: https://github.com/stefan-niedermann/nextcloud-deck/blob/master/FAQ.md#i-have-experienced-an-error

Please try to follow the steps described there. If even that won't help, please try to deactivate the battery saving options for the files app.

Note: you will need to re-login to your account in the files app first after that.

Hope this helps!

@HelplessFool
Copy link
Author

Tried all that before reporting the problem.

Also, tried creating a test account. Login, fine, try and use deck, fails with the same error.

@stefan-niedermann
Copy link
Owner

Did you get the files app from F-Droid, too or is it self-built?

@HelplessFool
Copy link
Author

Everything is from F-Droid. As far as I can tell, everything is up to date as far as F-Droid is concerned.
Nextcloud app is claiming version: 3.12.1
Deck app version you have above.
Not sure why server version gets reported as 0.6.4 as the server is telling me it's 1.0.5

Hope that helps, as least to eliminate some problems.

@desperateCoder
Copy link
Collaborator

desperateCoder commented Aug 22, 2020

Yesterday another user had a problem with his F-Droid setup, see here: #662 (comment)

Maybe there is something similar going on with your Files-app?
I'd suggest the following steps:

  • uninstall both apps completely
  • reinstall them both, but don't open any of them yet
  • in the Android settings deactivate the battery saving option for both apps
  • just to be safe, reboot the device
  • open the Files-app and login to your server just as always
  • open the Deck-app and try to connect to your account
  • hope, maybe profit.

Sorry that we can't provide an exact solution for this, it's one of the weirdest and most random errors we face within our app. It only happens sometimes and no one can tell what is the root cause for this. Due to fragmentation in Android we have quite a hard time to resolve this issue once and for all, sorry for the inconveniences!

EDIT:

Not sure why server version gets reported as 0.6.4 as the server is telling me it's 1.0.5

We try to request the server version, but the exception above happens, so we display the minimum supported version as a fallback instead, no need to wonder. Your server version is fine here, no worries. We don't even get to the point, where the server version matters, because the requests to the server can't be sent at this point in cause of the error, anyways.

@HelplessFool
Copy link
Author

Nice idea. Tried all that. Same error.

Is there anything I can check on the server? Logs etc? I've got full access to it.

@desperateCoder
Copy link
Collaborator

Wow, that's pretty frustrating...

Is there anything I can check on the server? Logs etc?

The server is fine, you won't see any logs there, because the requests made by the app never reach the server... this is an all Android-problem. At this point I'm out, no idea what to do.

But our friends @tobiasKaminsky and @David-Development still might have some hints? They wrote the SSO-library which is throwing this error, maybe they know some things you could look up...

@David-Development
Copy link
Collaborator

@HelplessFool As you have tried all of our "failsave" solutions I'm a little clueless as well. Were you able to get the setup working on this particular device before? Or has the problem been there from the beginning? And you said your other two devices are running just fine, right? Can you give us some more information about the device? It's a Lenovo Tablet, right? Are you using a custom ROM? Or are you on the stock Android Version?

@HelplessFool
Copy link
Author

Brief answers:

  • It's never been working on this device.
  • It is a Lenovo Tablet, rooted (as is one of the other devices).
  • It's not a stock Android Version; it's the standard Lenovo custom ROM for this device.

I'm just wondering what debugging I could do, either on the server or on the device. Would trying the combination of Nextcloud-dev with Deck help or is that a blind alley? I'm currently using the standard version of Nextcloud from F-droid.

Other information: I basically don't use Play Store, have a firewall (with both Nextcloud and Deck allowed) but it doesn't work with it turned off either. Only wifi on the device.

@stefan-niedermann stefan-niedermann added the 🔐 single-sign-on Bugs or enhancements which depend on the single-sign-on label Aug 26, 2020
@stefan-niedermann
Copy link
Owner

stefan-niedermann commented Aug 26, 2020

@HelplessFool can you please install the "Nextcloud Notes" app on your server and on your phone and try to connect? This way we might able to detect whether the problem is in the Deck app itself or in the lib (or files app).

@HelplessFool
Copy link
Author

Nice idea.

I've installed notes on the server and on my phone (Deck works) and tablet (Deck doesn't work).

  • Notes worked straight away on the phone, no issues.
  • Notes doesn't work on the tablet. Looks like a very similar error message to the one at the top of this thread.
    • Only difference I can see by eye-balling is that the line about Deck version is missing.

So, I'm guessing the issue is not directly with the Deck app, but somewhere nearer the main Nextcloud app or communication between them.

@David-Development
Copy link
Collaborator

It does indeed look like an issue with the communication between the single sign on library and the nextcloud app. If you have disabled all power saving features (if available) I'm kinda running out of ideas as well. It is really difficult to debug this problem deeper as you would need to build the app yourself (including the single-sign-on library) and try to debug it. However I'm not sure if this will bring any new insights since I guess the service that we connect to is just not binding correctly. I'm wondering if this is somehow connected to the custom rom that you are running.. 🤔

@HelplessFool Do you have more logcat output for us? (not just error output)
@stefan-niedermann do you know if debug and info logs are suppressed in your production builds? We should be able to see some debugging logs from the nextcloud sso library (Ref)

@HelplessFool
Copy link
Author

@David-Development How would I find more logcat output? What I provided initially was the error message that you can copy from the app. I'm happy to provide if I know how to get at it.

@stefan-niedermann
Copy link
Owner

do you know if debug and info logs are suppressed in your production builds? We should be able to see some debugging logs from the nextcloud sso library (Ref)

@David-Development According to this medium article not 🤷‍♂️

@David-Development
Copy link
Collaborator

@HelplessFool you should be able to find the logs by using an app (for example https://play.google.com/store/apps/details?id=com.nolanlawson.logcat&hl=de_CH) or by connecting your tablet to your computer and by running the adb logcat command (however if you don't have adb yet the app I mentioned before might be the easiest option - otherwise you can find a tutorial on how to install adb here: https://www.xda-developers.com/install-adb-windows-macos-linux/).

@stefan-niedermann that's good! 😅

@HelplessFool
Copy link
Author

@David-Development I've got adb working so will have a look. Is the best thing to do to try the app, have it fail and then plug in and use adb? Anything particular that I should look for to know whether I'm looking at useful stuff or just random goings on on the device?

@David-Development
Copy link
Collaborator

@HelplessFool Would be good if you close both apps (nextcloud files app and deck app) and then start "recording" the log. Then start the deck app and try to login. Make sure that no sensitive data is in the log before sending it to us 🙂 Thank you!

@HelplessFool
Copy link
Author

I think this is it: Tell me if you need more context.
I've cut out a bit in the middle that looks like it's another app trying to do stuff.

08-26 21:22:31.121 14102 14168 D com.nextcloud.android.sso.api.NextcloudRetrofitServiceMethod: NextcloudRetrofitServiceMethod() called with: apiEndpoint = [/ocs/v2.php/], method = [public abstract io.reactivex.Observable it.niedermann.nextcloud.deck.api.NextcloudServerAPI.getCapabilities(java.lang.String)]
08-26 21:22:31.121 14102 14168 D com.nextcloud.android.sso.api.NextcloudRetrofitServiceMethod: WARNING: Header not set - key or value missing! Key: If-None-Match | Value: null
08-26 21:22:31.121 14102 14168 D com.nextcloud.android.sso.api.NextcloudRetrofitServiceMethod: invoke call to api using observable com.nextcloud.android.sso.api.ParsedResponse<it.niedermann.nextcloud.deck.model.ocs.Capabilities>
08-26 21:22:31.124 14102 14169 D com.nextcloud.android.sso.api.NetworkRequest: [connectApiWithBackoff] connectApiWithBackoff() called from Thread: [Thread-7]
08-26 21:22:31.125 14102 14102 D com.nextcloud.android.sso.api.NetworkRequest: [connectApiWithBackoff] trying to connect..
08-26 21:22:31.125 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Binding to AccountManagerService for type [nextcloud]
08-26 21:22:31.125 14102 14102 D com.nextcloud.android.sso.api.NetworkRequest: [connect] connect() called [main] Account-Type: [nextcloud]
08-26 21:22:31.125 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Component name is: [com.nextcloud.client]
08-26 21:22:31.127   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:31.131  1008  4039 D ActivityManager: TabletMaster Service: not allowed start service : Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } callingUid 10179 callingPackage it.niedermann.nextcloud.deck
08-26 21:22:31.131  1008  4039 W ActivityManager: Unable to start service Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } U=0: not found
08-26 21:22:31.128   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:31.131 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Binding to AccountManagerService returned false
08-26 21:22:31.131 14102 14102 D com.nextcloud.android.sso.helper.ExponentialBackoff: [notifyFailed] Error: [Binding to AccountManagerService returned false]
08-26 21:22:31.131 14102 14102 D com.nextcloud.android.sso.helper.ExponentialBackoff: [notifyFailed] retrying in: [1742ms]
08-26 21:22:31.133 14102 14172 V com.nextcloud.android.sso.api.AidlNetworkRequest: [waitForApi] - api not ready yet.. waiting [RxNewThreadScheduler-1]
08-26 21:22:31.143   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:31.143   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:31.155  1388  1388 D NavigationBar: sjj ---- onTaskStackChanged
08-26 21:22:31.160   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:31.262   562   562 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 12 lines
08-26 21:22:31.263   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:31.279   562   649 W SurfaceFlinger: Attempting to set client state on removed layer: com.nextcloud.client/com.owncloud.android.ui.activity.SsoGrantPermissionActivity#0
08-26 21:22:31.280   562   649 W SurfaceFlinger: Attempting to set client state on removed layer: Dim Layer for - Task=2211#0
08-26 21:22:31.280   562   649 W SurfaceFlinger: Attempting to destroy on removed layer: com.nextcloud.client/com.owncloud.android.ui.activity.SsoGrantPermissionActivity#0
08-26 21:22:31.280   562   649 W SurfaceFlinger: Attempting to destroy on removed layer: Dim Layer for - Task=2211#0
08-26 21:22:31.351  8619  8785 D ClClient: Not sending keepalive.  Current connection state=STOPPED
08-26 21:22:32.874 14102 14102 D com.nextcloud.android.sso.api.NetworkRequest: [connectApiWithBackoff] trying to connect..
08-26 21:22:32.874 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Binding to AccountManagerService for type [nextcloud]
08-26 21:22:32.874 14102 14102 D com.nextcloud.android.sso.api.NetworkRequest: [connect] connect() called [main] Account-Type: [nextcloud]
08-26 21:22:32.874 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Component name is: [com.nextcloud.client]
08-26 21:22:32.878  1008  4039 D ActivityManager: TabletMaster Service: not allowed start service : Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } callingUid 10179 callingPackage it.niedermann.nextcloud.deck
08-26 21:22:32.878  1008  4039 W ActivityManager: Unable to start service Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } U=0: not found
08-26 21:22:32.878 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Binding to AccountManagerService returned false
08-26 21:22:32.879 14102 14102 D com.nextcloud.android.sso.helper.ExponentialBackoff: [notifyFailed] Error: [Binding to AccountManagerService returned false]
08-26 21:22:32.879 14102 14102 D com.nextcloud.android.sso.helper.ExponentialBackoff: [notifyFailed] retrying in: [2881ms]
08-26 21:22:35.761 14102 14102 D com.nextcloud.android.sso.api.NetworkRequest: [connectApiWithBackoff] trying to connect..
08-26 21:22:35.761 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Binding to AccountManagerService for type [nextcloud]
08-26 21:22:35.761 14102 14102 D com.nextcloud.android.sso.api.NetworkRequest: [connect] connect() called [main] Account-Type: [nextcloud]
08-26 21:22:35.761 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Component name is: [com.nextcloud.client]
08-26 21:22:35.764  1008  4039 D ActivityManager: TabletMaster Service: not allowed start service : Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } callingUid 10179 callingPackage it.niedermann.nextcloud.deck
08-26 21:22:35.764  1008  4039 W ActivityManager: Unable to start service Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } U=0: not found
08-26 21:22:35.765 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Binding to AccountManagerService returned false
08-26 21:22:35.765 14102 14102 D com.nextcloud.android.sso.helper.ExponentialBackoff: [notifyFailed] Error: [Binding to AccountManagerService returned false]
08-26 21:22:35.765 14102 14102 D com.nextcloud.android.sso.helper.ExponentialBackoff: [notifyFailed] retrying in: [3048ms]
08-26 21:22:38.816 14102 14102 D com.nextcloud.android.sso.api.NetworkRequest: [connectApiWithBackoff] trying to connect..
08-26 21:22:38.817 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Binding to AccountManagerService for type [nextcloud]
08-26 21:22:38.817 14102 14102 D com.nextcloud.android.sso.api.NetworkRequest: [connect] connect() called [main] Account-Type: [nextcloud]
08-26 21:22:38.817 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Component name is: [com.nextcloud.client]
08-26 21:22:38.820  1008  1525 D ActivityManager: TabletMaster Service: not allowed start service : Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } callingUid 10179 callingPackage it.niedermann.nextcloud.deck
08-26 21:22:38.820  1008  1525 W ActivityManager: Unable to start service Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } U=0: not found
08-26 21:22:38.820 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Binding to AccountManagerService returned false
08-26 21:22:38.820 14102 14102 D com.nextcloud.android.sso.helper.ExponentialBackoff: [notifyFailed] Error: [Binding to AccountManagerService returned false]
08-26 21:22:38.820 14102 14102 D com.nextcloud.android.sso.helper.ExponentialBackoff: [notifyFailed] retrying in: [2979ms]
08-26 21:22:41.137 14102 14172 E DeckLog : onError() (IResponseCallback.java:24) -> com.nextcloud.android.sso.exceptions.NextcloudApiNotRespondingException: Nextcloud files app api is not responding. Please report this issue.
08-26 21:22:41.137 14102 14172 E DeckLog : 	at com.nextcloud.android.sso.api.AidlNetworkRequest.waitForApi(AidlNetworkRequest.java:147)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at com.nextcloud.android.sso.api.AidlNetworkRequest.performAidlNetworkRequestV2(AidlNetworkRequest.java:278)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:165)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:168)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at com.nextcloud.android.sso.api.NextcloudAPI.lambda$performRequestObservableV2$1$NextcloudAPI(NextcloudAPI.java:110)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at com.nextcloud.android.sso.api.-$$Lambda$NextcloudAPI$HPzOdi9LOc_f-wA9GNnhc9LKQSM.subscribe(Unknown Source:6)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at io.reactivex.internal.operators.observable.ObservableFromPublisher.subscribeActual(ObservableFromPublisher.java:31)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at io.reactivex.Observable.subscribe(Observable.java:12284)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
08-26 21:22:41.137 14102 14172 E DeckLog : 	at java.lang.Thread.run(Thread.java:764)
08-26 21:22:41.138 14102 14172 D DeckLog : Rolling back account creation for 4
08-26 21:22:41.139 14102 14172 D DeckLog : --- Remove: shared_preference_last_account | 4
08-26 21:22:41.157 14102 14172 I DeckLog : --- Restoring sync on wifi only setting
08-26 21:22:41.181 14102 14102 E VersionCheckHelper: Version Code: 30130090
08-26 21:22:41.183 14102 14102 E DeckLog : onCreateDialog() (ExceptionDialogFragment.java:60) -> com.nextcloud.android.sso.exceptions.NextcloudApiNotRespondingException: Nextcloud files app api is not responding. Please report this issue.
08-26 21:22:41.183 14102 14102 E DeckLog : 	at com.nextcloud.android.sso.api.AidlNetworkRequest.waitForApi(AidlNetworkRequest.java:147)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at com.nextcloud.android.sso.api.AidlNetworkRequest.performAidlNetworkRequestV2(AidlNetworkRequest.java:278)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:165)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:168)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at com.nextcloud.android.sso.api.NextcloudAPI.lambda$performRequestObservableV2$1$NextcloudAPI(NextcloudAPI.java:110)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at com.nextcloud.android.sso.api.-$$Lambda$NextcloudAPI$HPzOdi9LOc_f-wA9GNnhc9LKQSM.subscribe(Unknown Source:6)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at io.reactivex.internal.operators.observable.ObservableFromPublisher.subscribeActual(ObservableFromPublisher.java:31)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at io.reactivex.Observable.subscribe(Observable.java:12284)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
08-26 21:22:41.183 14102 14102 E DeckLog : 	at java.lang.Thread.run(Thread.java:764)
08-26 21:22:41.310   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:41.310   562  1037 D SurfaceFlinger: duplicate layer name: changing it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity to it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity#1
08-26 21:22:41.310   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:41.311   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:41.351  8619  8785 D ClClient: Not sending keepalive.  Current connection state=STOPPED
08-26 21:22:41.430   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:41.529   562   562 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 12 lines
08-26 21:22:41.529   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:41.544   562  1036 W SurfaceFlinger: Attempting to set client state on removed layer: Surface(name=8529a87 it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity)/@0x1ab1db4 - animation-leash#0
08-26 21:22:41.545   562  1036 W SurfaceFlinger: Attempting to set client state on removed layer: Surface(name=Dim Layer for - Task=2211)/@0x6d18d52 - animation-leash#0
08-26 21:22:41.545   562  1036 W SurfaceFlinger: Attempting to destroy on removed layer: Surface(name=8529a87 it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity)/@0x1ab1db4 - animation-leash#0
08-26 21:22:41.545   562  1036 W SurfaceFlinger: Attempting to destroy on removed layer: Surface(name=Dim Layer for - Task=2211)/@0x6d18d52 - animation-leash#0
08-26 21:22:41.545   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:41.680   562   562 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 10 lines
08-26 21:22:41.681   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
08-26 21:22:41.801 14102 14102 D com.nextcloud.android.sso.api.NetworkRequest: [connectApiWithBackoff] trying to connect..
08-26 21:22:41.801 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Binding to AccountManagerService for type [nextcloud]
08-26 21:22:41.801 14102 14102 D com.nextcloud.android.sso.api.NetworkRequest: [connect] connect() called [main] Account-Type: [nextcloud]
08-26 21:22:41.801 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Component name is: [com.nextcloud.client]
08-26 21:22:41.806  1008  1525 D ActivityManager: TabletMaster Service: not allowed start service : Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } callingUid 10179 callingPackage it.niedermann.nextcloud.deck
08-26 21:22:41.806  1008  1525 W ActivityManager: Unable to start service Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } U=0: not found
08-26 21:22:41.807 14102 14102 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Binding to AccountManagerService returned false
08-26 21:22:41.807 14102 14102 D com.nextcloud.android.sso.helper.ExponentialBackoff: [notifyFailed] Error: [Binding to AccountManagerService returned false]
08-26 21:22:41.807 14102 14102 D com.nextcloud.android.sso.helper.ExponentialBackoff: [notifyFailed] retrying in: [3282ms]
08-26 21:22:42.862   562   562 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0

@desperateCoder
Copy link
Collaborator

08-26 21:22:38.820 1008 1525 D ActivityManager: TabletMaster Service: not allowed start service : Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } callingUid 10179 callingPackage it.niedermann.nextcloud.deck
08-26 21:22:38.820 1008 1525 W ActivityManager: Unable to start service Intent { cmp=com.nextcloud.client/com.owncloud.android.services.AccountManagerService } U=0: not found

I guess that's what we're looking for. Who or what the hell is TabletMasterService?

@desperateCoder
Copy link
Collaborator

desperateCoder commented Aug 27, 2020

See this, below the post there is a guide you could try regarding "memory usage"

Edit: yeah... Link: https://forums.lenovo.com/t5/Lenovo-Android-based-Tablets-and/Tab-M10-background-apps-getting-killed-right-away/m-p/4554370

@HelplessFool
Copy link
Author

That sorts it!!!!!

Thank you. I've been struggling with the memory usage stuff.

I've done some further debugging so that the exact issue can be identified. The results are as follows:

  • Memory usage isn't the issue.
  • Auto-start apps restrictions is.
    • Auto-start apps doesn't need to be permitted for Nextcloud.
    • Linked start-up apps does need to be permitted for Nextcloud (and appears to be blocked by default).

Right. So, it wasn't anything to do with the app directly, but was that the Nextcloud app was being blocked.

Is that enough info to update the FAQ?

@stefan-niedermann
Copy link
Owner

Absolutely! Thank you very much for the great research! Let's keep this issue open until i found some time to update our README.md and maybe @David-Development wants to add some kind of "known issues" section in the SSO README.md?

@stefan-niedermann stefan-niedermann changed the title Failure of app to connect to deck? files? Add workaround for known issue in FAQ.md Aug 27, 2020
@desperateCoder

This comment has been minimized.

@stefan-niedermann
Copy link
Owner

Pull Request for updating the README.md of SSO: nextcloud/Android-SingleSignOn#258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔐 single-sign-on Bugs or enhancements which depend on the single-sign-on
Projects
None yet
Development

No branches or pull requests

4 participants