Hi Folks,
I updated both my install and my local arcanist repo's to the head of stable today and am now seeing cURL/47 errors on any arcanist commands, I wonder if anyone can help?
Running the standard connection check works fine, note I have phabricator setup to run over port 2222 with user git, which has been working flawlessly:
$ echo {} | ssh -p 2222 git@phabricator.local conduit user.whoami {"result":{"phid":"PHID-USER-blahblah","userName":"Sam","realName":"Sam","image":"http:\/\/phabricator.local\/file\/data\/g57z5iku5s2x4rpi7k6r\/PHID-FILE-xhdrpuvh5lbu7tmkfso5\/profile","uri":"http:\/\/phabricator.local\/p\/Sam\/","roles":["admin","verified","approved","activated"],"primaryEmail":"Sam@blahblah"},"error_code":null,"error_info":null}
However running the arc equivalent fails:
$ arc call-conduit user.whoami Exception [cURL/47] (http://phabricator.local/api/user.whoami) <CURLE_TOO_MANY_REDIRECTS> The cURL library raised an error while making a request. You may be able to find more information about this error (error code: 47) on the cURL site: http://curl.haxx.se/libcurl/c/libcurl-errors.html#CURLETOOMANYREDIRECTS (Run with `--trace` for a full exception trace.)
Is there some expected behavior change associated with one of the last cuts to stable? I believe I pulled in the last two weeks changes today. My Arc Version:
$ arc version arcanist 9e82ef979e8148c43b9b8439025d505b1219e213 (25 Aug 2016) libphutil c8b76485ef845a40af96c132c16e0f28f145bdd2 (2 Sep 2016) Phabricator Version: Version Information phabricator ca30df847e4e99aec46dd97c7bd9b4f7d8542cab (Sat, Sep 3) arcanist 10e5194752901959507223c01e0878e6b8312cc5 (Sat, Aug 27) phutil f748cdbc8d08175375f4c4c87fc679de3145c620 (Sat, Sep 3) sprint 569b469197f988d8d577610dfd6f7d37b87bf19b (Jul 10 2016)
Looking in the apache access log I see a lot of these when I run the above arc calls:
"POST /api/user.whoami HTTP/1.1" 302 587 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 655 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 723 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 791 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 859 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 927 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 995 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1063 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1131 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1199 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1267 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1335 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1403 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1471 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1539 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1607 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1675 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1743 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1811 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1880 "-" "-" "POST /api/user.whoami?__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami&__path__=%2fapi%2fuser%2ewhoami HTTP/1.1" 302 1948 "-" "-"
Note that I see a similar error pattern using any other arc command like arc which, arc diff etc. which was working fine last week, prior to upgrade...
Interestingly I noticed my local arcanist was tracking master not local, adjusting and the error persists, arc version now reads:
arc version arcanist 10e5194752901959507223c01e0878e6b8312cc5 (27 Aug 2016) libphutil f748cdbc8d08175375f4c4c87fc679de3145c620 (3 Sep 2016)
Curl Version in case thats useful:
curl --version curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets