Hi, Sprout is listening on the loopback address – it needs to listen on its private address instead (10.120.34.82).
What command are you using to start Sprout? Do you have the ‘–c’ option specified for the scscf_uri? You don’t need to have the ‘–l ’ option specified, as this defaults to the private address already. It’s important to note that these are the minimum parameters needed to successfully start Sprout. Depending on what functionality you want the Sprout to have, and whether it’s running on an all-in-one node, then there are different values you’ll want to pass in as well (e.g. if your Sprout is not on an all-in-one node then you will also have to pass in the home_domain parameter to allow calls to be routed correctly). Ellie From: Sushant Hiray [mailto:[email protected]] Sent: 12 November 2014 12:35 To: Eleanor Merry Cc: Sanchit Garg; [email protected] Subject: Re: [Clearwater] SegFault while running sprout from source code Hi Ellie, We tried the updated command and it starts perfectly fine. However while sending request from Bono, we are still getting errors: 12-11-2014 12:04:45.916 UTC Debug connection_pool.cpp:181: Successfully resolved sprout.ims.hom to IPv4 address 12-11-2014 12:04:45.916 UTC Verbose pjsip: tcpc0x7fbfcc15 TCP client transport created 12-11-2014 12:04:45.917 UTC Verbose pjsip: tcpc0x7fbfcc15 TCP transport 10.129.34.51:45528<http://10.129.34.51:45528> is connecting to 10.129.34.82:5054... 12-11-2014 12:04:45.917 UTC Debug connection_pool.cpp:251: Created transport tcpc0x7fbfcc15a578 in slot 46 (10.129.34.51:45528<http://10.129.34.51:45528> to 10.129.34.82:5054<http://10.129.34.82:5054>) 12-11-2014 12:04:45.937 UTC Error pjsip: tcpc0x7fbfcc14 TCP connect() error: Connection refused [code=120111] 12-11-2014 12:04:45.937 UTC Debug connection_pool.cpp:363: Transport tcpc0x7fbfcc1450a8 in slot 0 has failed 12-11-2014 12:04:45.937 UTC Debug baseresolver.cpp:471: Add 10.129.34.82:5054<http://10.129.34.82:5054> transport 6 to blacklist for 30 seconds 12-11-2014 12:04:45.937 UTC Error pjsip: tcpc0x7fbfcc14 TCP connect() error: Connection refused [code=120111] 12-11-2014 12:04:45.937 UTC Debug connection_pool.cpp:363: Transport tcpc0x7fbfcc14f8a8 in slot 1 has failed 12-11-2014 12:04:45.937 UTC Debug baseresolver.cpp:471: Add 10.129.34.82:5054<http://10.129.34.82:5054> transport 6 to blacklist for 30 seconds 12-11-2014 12:04:45.937 UTC Error pjsip: tcpc0x7fbfcc13 TCP connect() error: Connection refused [code=120111] 12-11-2014 12:04:45.937 UTC Debug connection_pool.cpp:363: Transport tcpc0x7fbfcc1358b8 in slot 2 has failed So essentially Bono is not able to connect to Sprout via TCP. We did not receive any updates in log of Sprout. However sprout does seem to listen on 5054. Here is the output of netstat: synerg@ubuntu-precise:~$ sudo netstat -anp | grep 5054 tcp 0 0 127.0.1.1:5054<http://127.0.1.1:5054> 0.0.0.0:* LISTEN 2034/sprout udp 0 0 127.0.1.1:5054<http://127.0.1.1:5054> 0.0.0.0:* 2034/sprout Can you suggest what could be the plausible issue? Regards, Sushant Sushant Hiray, Senior Undergrad CSE, IIT Bombay On Wed, Nov 12, 2014 at 1:07 AM, Eleanor Merry <[email protected]<mailto:[email protected]>> wrote: Hi Sanchit, Sorry, I told you the wrong thing before. The HTTP bind address should be the IP address of the Sprout, not the Homestead. Can you change this and retry? You will also need to add the scscf_uri option – you can do this by adding ‘–c sip:<sprout<sip:%3csprout<sip:%3csprout%3csip:%3csprout>> domain>:5054’ Ellie From: Sanchit Garg [mailto:[email protected]<mailto:[email protected]>] Sent: 10 November 2014 09:23 To: Eleanor Merry Cc: [email protected]<mailto:[email protected]> Subject: Re: [Clearwater] SegFault while running sprout from source code Hi Ellie Thank you for the reply. I tried what you suggested. It doesn't give SIGSEV signal. But a new problem arose. It now catches HttpStack::Exception . Following is the log output: 10-11-2014 09:02:18.378 UTC Error httpstack.cpp:197: evhtp_bind_socket failed with address 10.129.34.87 and port 9888 10-11-2014 09:02:18.378 UTC Error main.cpp:1523: Caught HttpStack::Exception - evhtp_bind_socket - -1 We ran the following command: sudo LD_LIBRARY_PATH=usr/lib:$LD_LIBRARY_PATH build/bin/sprout -t -s 5054 -l localhost -H 10.129.34.87:8888<http://10.129.34.87:8888><http://10.129.34.87:8888> -K 10.120.34.82:7253<http://10.120.34.82:7253><http://10.120.34.82:7253> -T 10.129.34.87 -F /var/log/sprout Where: 10.129.34.87 is the IP of Homestead and 10.129.34.82 is of sprout. HttpStack::start(®_httpthread_with_pjsip) called in main.cpp calls evhtp_bind_socket which returns -1 and then it throws HttpStack::Exception. Also we checked the output of netstat -a |egrep '9888' command in Homestead which outputs: unix 3 [ ] STREAM CONNECTED 9888 We think that homestead is listening on port 9888 but sprout is unable to bind http socket to homestead. Can you please suggest how to fix this issue Thank You Sanchit Garg On Thu, Nov 6, 2014 at 11:35 PM, Eleanor Merry <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>> wrote: Hi Sanchit, Thanks for raising this. Sprout is hitting a segfault as the scscf_uri parameter hasn't been defined. This defaults to sip:<localhost>:<scscf<sip:%3clocalhost%3e:%3cscscf<sip:%3clocalhost%3e:%3cscscf%3csip:%3clocalhost%3e:%3cscscf>> port>;transport=TCP if you run Sprout as a daemon, but it isn't currently defaulted when running Sprout interactively. I've raised an issue to fix the documentation and defaults (please see https://github.com/Metaswitch/sprout/issues/851) - in the meantime can you please add these extra parameters? You will also need to pass in the HTTP bind address (e.g. -T 10.129.34.87). You can see what other parameters are available by running with -h Ellie -----Original Message----- From: [email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>> [mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>] On Behalf Of Sanchit Garg Sent: 06 November 2014 08:57 To: [email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>> Subject: [Clearwater] SegFault while running sprout from source code Hi All, We are trying to install Sprout from source code on a server Ubuntu 12.04. We have successfully built the source code. While running the command <sudo LD_LIBRARY_PATH=usr/lib:$LD_LIBRARY_PATH build/bin/sprout -t -s 5054 -H 10.129.34.87:8888<http://10.129.34.87:8888><http://10.129.34.87:8888> -K 10.120.34.82:7253<http://10.120.34.82:7253><http://10.120.34.82:7253> -F /var/log/sprout> a SIGSEGV signal is raised. We have figured out that 'init_registrar(...)' in the main.cpp and in particular 'pjsip_parse_uri(...)' in 'init_registrar(...)' has raised the signal. The function 'pjsip_parse_uri(...)' is returning NULL to be specific. Please suggest how to resolve the issue. Thank You Sanchit Garg Senior Undergrad CSE IIT Bombay _______________________________________________ Clearwater mailing list [email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>> http://lists.projectclearwater.org/listinfo/clearwater _______________________________________________ Clearwater mailing list [email protected]<mailto:[email protected]> http://lists.projectclearwater.org/listinfo/clearwater _______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/listinfo/clearwater
