You are not logged in.

#1 2017-11-05 19:54:31

caligo
Member
From: Stockholm
Registered: 2010-01-10
Posts: 79

[Solved, kind of] ADB not working, "ADB server didn't ACK"

ADB has stopped working. It's been a while since I last used it, so I really have no idea what update broke it. Here's what happens when I try running it:

$ adb start-server
* daemon not running. starting it now at tcp:5037 *
* daemon started successfully *
$ adb devices
List of devices attached
* daemon not running. starting it now at tcp:5037 *
error: could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
$ adb kill-server
* server not running *
$ adb devices
List of devices attached
* daemon not running. starting it now at tcp:5037 *
error: could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon

And so on. So far, I've tried reinstallning it and that's about it. I did try finding and killing the process using that port, but that didn't seem to have any effect:

$ ps aux | grep 5037
caligo    2442  0.0  0.0 318596  4604 ?        Ssl  20:16   0:00 adb -L tcp:5037 fork-server server --reply-fd 4
caligo   16618  0.0  0.0  10884  2308 pts/0    S+   20:46   0:00 grep 5037

I kill that PID and try running ADB again, but it still does not work. Ideas, anyone?

Last edited by caligo (2017-11-06 14:02:56)

Offline

#2 2017-11-06 10:06:46

caligo
Member
From: Stockholm
Registered: 2010-01-10
Posts: 79

Re: [Solved, kind of] ADB not working, "ADB server didn't ACK"

Also tried adding this to my bashrc:

export PATH=$PATH:/usr/bin/adb

Still no dice.

And all I can find when googling the problem is tons of vaguely related stuff, but it's all in a Windows context and much of it is several years old. There are also a lot of search results in Chinese for some reason, but 我的汉语不好.

Last edited by caligo (2017-11-06 10:09:54)

Offline

#3 2017-11-06 13:42:37

desaparecido
Member
From: Liège, Belgium
Registered: 2010-03-14
Posts: 155

Re: [Solved, kind of] ADB not working, "ADB server didn't ACK"

hi ... my adb is working well but i have that in my bashrc:

export ANDROID_HOME=/opt/android-sdk/

and I have adb from this package (from blackarch repo):

android-sdk-platform-tools r26.0.0-1

in AUR there is the r26.0.2-1 version

my adb is not in /usr/bin path, your adb is right ?

Last edited by desaparecido (2017-11-06 13:45:02)


KF5 & Plasma5 (git versions) - Awesome WM
ASUS Sabertooth 990FX - AMD FX8350 - ATI Radeon HD 7970
[testing] repo

Offline

#4 2017-11-06 14:02:26

caligo
Member
From: Stockholm
Registered: 2010-01-10
Posts: 79

Re: [Solved, kind of] ADB not working, "ADB server didn't ACK"

Yes, that was indeed where my ADB was located. However, I gave that AUR package a shot, and voilà – after uninstalling android-tools, installing android-sdk-platform-tools, and changing the path i bashrc it seems to work again. Thanks!

I guess it's more of a workaround than a solution, but at least I have ADB up and running again. Tentatively marking topic as solved.

Offline

Board footer

Powered by FluxBB