Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Waiting for api #196

Closed
Closed

Description

@vedranf

Hello,

Unfortunately I don't have many details, but as soon as I configure a directory and add few devices I get endless "waiting for api" popup. Restarting phone or reinstalling syncthing doesn't help. Phone is Samsung S4 mini with android 4.4.2 reset to factory defaults. I didn't see anything relevant in logs.

Thanks,
Vedran

Activity

  1. Nutomic commented on Dec 16, 2014

    @Nutomic
    Contributor

    Could you still post a log? Otherwise there's just guessing ;)

  2. vedranf commented on Dec 16, 2014

    @vedranf
    Author

    What logs do you need? How can I see syncthing log (is it saved to some file)? I don't have root, so there really isn't much to see.

    Thanks,
    Vedran

  3. Agathodemonas commented on Dec 25, 2014

    @Agathodemonas

    i also have the same problem on Samsung GT-I9192 S4 mini DUOS It's stack forever saying Waiting for API, Android Version 4.4.2

  4. vedranf commented on Dec 29, 2014

    @vedranf
    Author

    Hello,

    Sorry for not replying earlier, but unfortunately there's nothing much to add. I've checked the logs and there's nothing there. I tried stopping and starting syncthing while watching logs, there were only 2 debug log entries, one mentioning Adreno-EGL and one just dumping dalvikvm GC status. Btw., even though UI is unusable because of "waiting for API" popup, syncthing appears to be working in the background and connecting to other nodes.

  5. jibe-b commented on Jan 7, 2015

    @jibe-b

    Hi, I get the same on a samsung galaxy note 10.1 2014 edition (SM-P600). Android has version4.4.2.
    Syncthing keeps spinning indicating En attenqe de l'API, i.e. waiting for api in French.

    Best regards

  6. LarfAndAHarf commented on Jan 9, 2015

    @LarfAndAHarf

    On a galaxy note II running 4.1.1 and syncthing 0.5.12. I'm new to adb/logcat and couldn't figure out what incantation would give me what is needed. I can run whatever requested if you hold my hand and use little words, heh. Perusing it on my own I saw errors and warnings pouring out of a couple different things. I rebooted, ran syncthing, after starting this command:
    adb logcat PollWebGuiAvailableTask:V SyncthingService:V PostTask:V *:S > syncthingandroid.log
    which yielded this (hopefully related?) output. Same symptom; "Waiting for API"

  7. Nutomic commented on Jan 12, 2015

    @Nutomic
    Contributor

    Does the syncthing UI show when you open 127.0.0.1:8080 in the browser on your phone?

  8. vedranf commented on Jan 12, 2015

    @vedranf
    Author

    Yes, it does. Except saying "creating symlink: operation not permitted" for 2 symlinks, it appears to be working as expected from browser.

  9. vedranf commented on Jan 12, 2015

    @vedranf
    Author

    Ah, I've just read what exitcode1 pasted. I guess it's due to some Samsung protection (knox?).?

  10. Nutomic commented on Jan 14, 2015

    @Nutomic
    Contributor

    I really don't see why there could be a problem. Syncthing is running with the right port, and the app is properly polling on the same port.

    Did you let the app run for at least a few minutes? Maybe there is something else in the log?

  11. svrnwnsch commented on Feb 16, 2015

    @svrnwnsch

    I am having the same Problem on a Fairphone 1.
    My guess is that the error is caused by setting the webinterface to https via the webinterface. Maybe the App tries to connect without https to the client and fails into a loop without any timeout?

  12. svrnwnsch commented on Feb 16, 2015

    @svrnwnsch

    This worked for me:

    1. Connect via webinterface https://127.0.0.1:8080
    2. Go to settings and disable https for webinterface
    3. Restart Syncthing via the webinterface
    4. Force Syncthing app to stop via Android Settings
    5. Start Syncthing app, which should now work.
  13. Nutomic commented on Feb 17, 2015

    @Nutomic
    Contributor

    Ah, that would be #19.

    The problem is that the web GUI uses a self-signed certificate, and we'd need to do cert pinning for Android to accept that. But the certificate is in a different format than what Android wants, and I didn't manage to convert it.

  14. LarfAndAHarf commented on Feb 17, 2015

    @LarfAndAHarf

    Not a dupe; same "Waiting for API" symptom with HTTPS off.

  15. LarfAndAHarf commented on Feb 17, 2015

    @LarfAndAHarf

    In my case, http loads and populates fine. Syncing itself and https still work (after getting past the cert warning). App still only ever says Waiting for API.

  16. Nutomic commented on Feb 18, 2015

    @Nutomic
    Contributor

    @exitCode1: Do you properly restart the app after changing the HTTPS setting? Maybe try to restart the device?

    Anyway, I can't do anything without a log.

  17. rdiaz02 commented on Mar 31, 2015

    @rdiaz02

    I am having the exact same problem: I get the eternal "Waiting for API" whenever I make any changes to folders. No, I am not using HTTPS.

  18. Zillode commented on Mar 31, 2015

    @Zillode
    Contributor

    @rdiaz02 we are in the process of fixing this, I know where it goes wrong

  19. StefanCodes commented on Apr 3, 2015

    @StefanCodes

    I ran into this as well and the problem was Adblock Plus. When I got to my home wifi (when the Adblock Plus proxy settings kick in), Syncthing started hanging on the Waiting for API dialog. I let it sit there for more than 20 minutes twice, restarting the phone between tests. Disabling the proxy for my wifi connection in Settings and restarting Syncthing fixed the problem immediately.

    This isn't Syncthing's fault, I don't think, but if other people can reproduce this it might be good to put on the FAQ.

  20. Nutomic commented on Apr 3, 2015

    @Nutomic
    Contributor

    I think you can edit the wiki yourself, would you mind to write it down? :)

  21. StefanCodes commented on Apr 3, 2015

    @StefanCodes

    Created https://github.com/syncthing/syncthing-android/wiki/Troubleshooting.

    I don't do Android dev but I'm good at documentation - let me know if you need help anywhere else on the project!

  22. Nutomic commented on Apr 5, 2015

    @Nutomic
    Contributor

    Great, thanks 👍

    I don't know anything we need in particular, but feel free to write down anything you deem useful. (maybe a general faq?)

    Also, don't hesitate to ask if you need any clarifications ;)

  23. rdiaz02 commented on Apr 11, 2015

    @rdiaz02

    I am not sure this is really completely fixed. I still get the long (over hours) "Waiting for API" in devices that go to sleep and wake up. It is random, and I can not always trigger it.

    Update: I often also see it still when changing options and having it restart. Often after waiting > 3 minutes I am still waiting for API. Killing it and starting again often works.

  24. Sendery commented on May 12, 2015

    @Sendery

    I did fix this "temporaly" by turning on the Wif and then off when the "api is enable"/loadedi. I think the 3g/LTE/HSPA or whatever you have dont work on startup.

  25. locked and limited conversation to collaborators on Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions