Hi Raminder, It looks like you're using the wrong authentication name - this should be [email protected]<mailto:[email protected]>, not 6505550138.
This means that Homestead can't find the subscriber, so it can't return an authentication vector to sprout, so Sprout rejects the registrations. Ellie From: [email protected] [mailto:[email protected]] On Behalf Of Raminder Saluja Sent: 04 April 2014 02:34 To: [email protected] Subject: [Clearwater] AIO Clearwater installation:Attempt SIP Registration: Sprout gets 'HTTP/1.1 502 Bad Gateway' Hi, I just installed AIO clearwater ovf image and having issue with SIP registration. I don't have external HSS. Listing some of the debugging steps so far: Step 1: Sprout Log shows 'Failed to get authentication Vector' 04-04-2014 00:53:50.734 Error httpconnection.cpp:407: http://192.168.10.100:8888/impi/6505550138/av?impu=sip%3A6505550138%40example.com failed at server 192.168.10.100 : HTTP response code said error (22 502) : fatal 04-04-2014 00:53:50.734 Error httpconnection.cpp:445: cURL failure with cURL error code 22 (see man 3 libcurl-errors) and HTTP error code 502 04-04-2014 00:53:50.734 Error hssconnection.cpp:160: Failed to get Authentication Vector for 6505550138<tel:6505550138> 04-04-2014 00:53:50.740 Error httpconnection.cpp:407: http://192.168.10.100:8888/impi/6505550138/av?impu=sip%3A6505550138%40example.com failed at server 192.168.10.100 : HTTP response code said error (22 502) : fatal 04-04-2014 00:53:50.740 Error httpconnection.cpp:445: cURL failure with cURL error code 22 (see man 3 libcurl-errors) and HTTP error code 502 04-04-2014 00:53:50.740 Error hssconnection.cpp:160: Failed to get Authentication Vector for 6505550138<tel:6505550138> Step 2: Tried to isolate further with curl, but one gets '502 Bad Gateway' [cw-aio]ubuntu@cw-aio:/var/log/sprout$ curl -v http://192.168.10.100:8888/impi/6505550138/av?impu=sip%3A6505550138%40192.168.10.100 * About to connect() to 192.168.10.100 port 8888 (#0) * Trying 192.168.10.100... connected > GET > /impi/6505550138<tel:6505550138>/av?impu=sip%3A6505550138%40192.168.10.100 > HTTP/1.1 > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 > zlib/1.2.3.4<http://1.2.3.4> libidn/1.23 librtmp/2.3 > Host: 192.168.10.100:8888<http://192.168.10.100:8888> > Accept: */* > < HTTP/1.1 502 Bad Gateway < Content-Length: 0 < * Connection #0 to host 192.168.10.100 left intact * Closing connection #0 [cw-aio]ubuntu@cw-aio:/var/log/sprout$ curl -v http://192.168.10.100:8888/impi/6505550138/av?impu=sip%3A6505550138%40example.com * About to connect() to 192.168.10.100 port 8888 (#0) * Trying 192.168.10.100... connected > GET > /impi/6505550138<tel:6505550138>/av?impu=sip%3A6505550138%40example.com<http://40example.com> > HTTP/1.1 > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 > zlib/1.2.3.4<http://1.2.3.4> libidn/1.23 librtmp/2.3 > Host: 192.168.10.100:8888<http://192.168.10.100:8888> > Accept: */* > < HTTP/1.1 502 Bad Gateway < Content-Length: 0 < * Connection #0 to host 192.168.10.100 left intact * Closing connection #0 Step 4: Homestead logs shows that cache request is failing. 04-04-2014 01:17:07.065 Error cache.cpp:367: Cache request failed: rc=2, Row 6505550138<tel:6505550138> not present in column_family impi Step 3: The database seems to have been populated appropriately with user 6505550138<tel:6505550138>. Here is: cqlsh:homestead_cache> select * from impi; private_id | digest_ha1 | digest_qop | digest_realm | known_preferred ------------------------+----------------------------------+------------+--------------+----------------- [email protected]<mailto:[email protected]> | a926895d192e25f981e7a5cd9214041b | auth | example.com<http://example.com> | True [email protected]<mailto:[email protected]> | 8e4460526e8c55118a93af8c538c7a04 | auth | example.com<http://example.com> | True [email protected]<mailto:[email protected]> | 2d05260f460706c0e89116fbe569cc28 | auth | example.com<http://example.com> | True [email protected]<mailto:[email protected]> | 30895e7acfccf108b399b8ef61b75ba8 | auth | example.com<http://example.com> | True [email protected]<mailto:[email protected]> | a9e1295baa5a30904c798053e94c50a6 | auth | example.com<http://example.com> | True [email protected]<mailto:[email protected]> | 49e50759a6e43820a7bb68d5ea3a8536 | auth | example.com<http://example.com> | True Step 4: Homestead seems to be running fine. [cw-aio]ubuntu@cw-aio:/etc/ clearwater$ sudo netstat -anp | grep 8888 [sudo] password for ubuntu: tcp 0 0 192.168.10.100:8888<http://192.168.10.100:8888> 0.0.0.0:* LISTEN 1753/homestead tcp 0 0 192.168.10.100:8888<http://192.168.10.100:8888> 192.168.10.100:36149<http://192.168.10.100:36149> ESTABLISHED 1753/homestead tcp 0 0 192.168.10.100:39411<http://192.168.10.100:39411> 192.168.10.100:8888<http://192.168.10.100:8888> TIME_WAIT - tcp 0 0 192.168.10.100:36143<http://192.168.10.100:36143> 192.168.10.100:8888<http://192.168.10.100:8888> ESTABLISHED 1591/sprout tcp 0 0 192.168.10.100:39429<http://192.168.10.100:39429> 192.168.10.100:8888<http://192.168.10.100:8888> TIME_WAIT - tcp 0 0 192.168.10.100:39420<http://192.168.10.100:39420> 192.168.10.100:8888<http://192.168.10.100:8888> TIME_WAIT - tcp 0 0 192.168.10.100:39440<http://192.168.10.100:39440> 192.168.10.100:8888<http://192.168.10.100:8888> TIME_WAIT - tcp 0 0 192.168.10.100:8888<http://192.168.10.100:8888> 192.168.10.100:36143<http://192.168.10.100:36143> ESTABLISHED 1753/homestead tcp 0 0 192.168.10.100:39395<http://192.168.10.100:39395> 192.168.10.100:8888<http://192.168.10.100:8888> TIME_WAIT - tcp 0 0 192.168.10.100:39403<http://192.168.10.100:39403> 192.168.10.100:8888<http://192.168.10.100:8888> TIME_WAIT - tcp 0 0 192.168.10.100:36149<http://192.168.10.100:36149> 192.168.10.100:8888<http://192.168.10.100:8888> ESTABLISHED 1591/sprout Can you suitable guide on how to isolate / resolve this further? Version details: [cw-aio]ubuntu@cw-aio:/var/log/homestead$ uname -a Linux cw-aio 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux thanks! Raminder
_______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/listinfo/clearwater
