You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
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.
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.
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.
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"
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?
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.
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.
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.
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.
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.
Activity
Nutomic commentedon Dec 16, 2014
Could you still post a log? Otherwise there's just guessing ;)
vedranf commentedon Dec 16, 2014
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
Nutomic commentedon Dec 18, 2014
https://github.com/syncthing/syncthing-android/blob/master/CONTRIBUTING.md#bug-reports
Agathodemonas commentedon Dec 25, 2014
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
vedranf commentedon Dec 29, 2014
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.
jibe-b commentedon Jan 7, 2015
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
LarfAndAHarf commentedon Jan 9, 2015
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.logwhich yielded this (hopefully related?) output. Same symptom; "Waiting for API"
Nutomic commentedon Jan 12, 2015
Does the syncthing UI show when you open
127.0.0.1:8080in the browser on your phone?vedranf commentedon Jan 12, 2015
Yes, it does. Except saying "creating symlink: operation not permitted" for 2 symlinks, it appears to be working as expected from browser.
vedranf commentedon Jan 12, 2015
Ah, I've just read what exitcode1 pasted. I guess it's due to some Samsung protection (knox?).?
Nutomic commentedon Jan 14, 2015
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?
svrnwnsch commentedon Feb 16, 2015
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?
svrnwnsch commentedon Feb 16, 2015
This worked for me:
https://127.0.0.1:8080Nutomic commentedon Feb 17, 2015
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.
LarfAndAHarf commentedon Feb 17, 2015
Not a dupe; same "Waiting for API" symptom with HTTPS off.
svrnwnsch commentedon Feb 17, 2015
can you acess http://127.0.0.1:8080 or does this redirect you to https?
LarfAndAHarf commentedon Feb 17, 2015
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.
Nutomic commentedon Feb 18, 2015
@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.
rdiaz02 commentedon Mar 31, 2015
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.
Zillode commentedon Mar 31, 2015
@rdiaz02 we are in the process of fixing this, I know where it goes wrong
StefanCodes commentedon Apr 3, 2015
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.
Nutomic commentedon Apr 3, 2015
I think you can edit the wiki yourself, would you mind to write it down? :)
StefanCodes commentedon Apr 3, 2015
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!
Nutomic commentedon Apr 5, 2015
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 ;)
rdiaz02 commentedon Apr 11, 2015
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.
Sendery commentedon May 12, 2015
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.