AOSP 8 build - Jack internal unknown error 415

295 views
Skip to first unread message

YoMero

unread,
Oct 9, 2017, 10:24:13 AM10/9/17
to Android Building
I'm building AOSP 8 in a Mac and Jack is failing with an unknown internal error

Internal unknown error (415), try 'jack-diagnose' or see Jack server log

jack-diagnose shows this:

ps: illegal argument: -o
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
          [-g grp[,grp...]] [-u [uid,uid...]]
          [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
       ps [-L]
Port 8073 is used by another process (pid=), please ensure to free the port or change port configuration in '/Users/grenyaz/.jack-settings' and '/Users/user/.jack-server/config.properties'
ps: illegal argument: -o
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
          [-g grp[,grp...]] [-u [uid,uid...]]
          [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
       ps [-L]
Port 8072 is used by another process (pid=), please ensure to free the port or change port configuration in '/Users/user/.jack-settings' and '/Users/user/.jack-server/config.properties'

I looked at the ports and nothing seems out of the ordinary

$ lsof -n -i:8073 | grep LISTEN
java    70963 user   13u  IPv6 0xd32bb4a6a5b6116b      0t0  TCP 127.0.0.1:8073 (LISTEN)

$ lsof -n -i:8072 | grep LISTEN
java    70963 user   11u  IPv6 0xd32bb4a6a5b616ab      0t0  TCP 127.0.0.1:8072 (LISTEN)

The Jack logs show this:

16:14:44.181: WARNING: com.android.jack.server.router.ErrorContainer: Unknown request: 'POST /jack HTTP/1.1
Host: localhost:8072
User-Agent: curl/7.56.0
Accept: application/vnd.jack.command-out;version=1;charset=UTF-8
Content-Length: 800
Content-Type: multipart/form-data; boundary=------------------------9507228002c18ced

'

I tried manually stopping and starting the jack server and even changing the ports, but nothing seems to fix the problem.
I though this could be related to my CURL version, but I believe I'm using the correct one

curl 7.56.0 (x86_64-apple-darwin16.7.0) libcurl/7.56.0 OpenSSL/1.0.2l zlib/1.2.11
Release-Date: 2017-10-04
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy 

Any help to find our what's wrong with my set up will be really appreciated.

Cheers!
 

Rob Thompson

unread,
Oct 11, 2017, 2:12:13 PM10/11/17
to Android Building
Hi 
The problem is the version of Curl you are using 7.56, have the same issue when building on Arch linux.  Had to downgrade Curl to 7.55 to over come that error,

YoMero

unread,
Oct 12, 2017, 4:40:16 PM10/12/17
to Android Building
Thanks Rob. Downgrading to 7.55 fixed my problem . I wish we could know who's at fault. Jack or Curl?
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Vasishath Kaushal

unread,
Nov 7, 2017, 10:57:48 AM11/7/17
to Android Building
The error is because of curl. Downgrade it to 7.55.1 and it will be fixed. It fixed for me on arch linux.

On Thursday, 2 November 2017 08:09:52 UTC+5:30, ezio84 wrote:
EDIT: after a make clean, i'm getting the error again...

killer...@gmail.com

unread,
Nov 7, 2017, 3:06:54 PM11/7/17
to Android Building
How do I downgrade? When I tried it gave me: 
error: failed to commit transaction (conflicting files)
curl
: /usr/lib/libcurl.so.4.4.0 exists in filesystem
Errors occurred, no packages were upgraded.

Jefferson

unread,
Nov 8, 2017, 10:41:54 AM11/8/17
to Android Building
# pacman -U /var/cache/pacman/pkg/curl-7.55.1-2-x86_64.pkg.tar.xz /var/cache/pacman/pkg/lib32-curl-7.54.1-2-x86_64.pkg.tar.xz /var/cache/pacman/pkg/libcurl-compat-7.54.1-1-x86_64.pkg.tar.xz

The above fixed it for me. You might want to add them to the pacman.conf as detailed at the Arch Wiki, until whatever issue is causing it is resolved.

Reply all
Reply to author
Forward
0 new messages