Hi Vijay,

Thank you for letting us know. I haven’t seen this error before.

Let’s focus on the exception – Sprout isn’t going to be able to bind to port 
9888 if it is crashed.

I’ve had a quick look at the code, and it looks like Sprout is failing to set 
up its HTTP server. It looks like this can happen for a range of reasons:

·         Not enough memory.

·         Hitting the user limit on the number of open files.

·         Trying to set up the HTTP stack with 0 threads.

I think the most likely of these is that Sprout is trying to set up the HTTP 
stack with 0 threads. Sprout decides how many threads to use based on the 
number of CPUs on your system – it used 50 threads per CPU. We can confirm 
whether this is the problem by trying out a workaround. Create a file called 
/etc/clearwater/user_settings, and add the line:

num_http_threads=50

Save the file, then restart the Sprout process by running

sudo service sprout stop

If you have monit installed, Sprout will restart shortly. If not, you will need 
to run sudo service sprout start.

Please let me know if that doesn’t fix the issue.

Yours,

Chris

From: Clearwater [mailto:[email protected]] On 
Behalf Of Vijay
Sent: 29 July 2016 22:04
To: [email protected]
Subject: [Project Clearwater] sprout docker - sprout failing to start

Hello,
I built sprout images 3 weeks ago. Sprout is failing to start. There is 
httpstack exception that is causing it to go down.. Here is the log...

29-07-2016 18:37:54.083 UTC Status httpstack.cpp:136: Configuring HTTP stack
29-07-2016 18:37:54.083 UTC Status httpstack.cpp:137:   Bind address: 
172.16.64.6
29-07-2016 18:37:54.083 UTC Status httpstack.cpp:138:   Bind port:    9888
29-07-2016 18:37:54.083 UTC Status httpstack.cpp:139:   Num threads:  600
29-07-2016 18:37:54.083 UTC Status main.cpp:1982: Initialise S-CSCF 
authentication module
29-07-2016 18:37:54.083 UTC Status pluginloader.cpp:63: Loading plug-ins from 
/usr/share/clearwater/sprout/plugins
29-07-2016 18:37:54.083 UTC Status pluginloader.cpp:93: Attempt to load plug-in 
/usr/share/clearwater/sprout/plugins/sprout_bgcf.so
29-07-2016 18:37:54.085 UTC Status bgcfservice.cpp:68: No BGCF configuration 
(file ./bgcf.json does not exist)
29-07-2016 18:37:54.085 UTC Status pluginloader.cpp:127: Loaded sproutlet bgcf 
using API version 1
29-07-2016 18:37:54.085 UTC Status pluginloader.cpp:93: Attempt to load plug-in 
/usr/share/clearwater/sprout/plugins/sprout_scscf.so
29-07-2016 18:37:54.087 UTC Status pluginloader.cpp:127: Loaded sproutlet scscf 
using API version 1
29-07-2016 18:37:54.087 UTC Status pluginloader.cpp:93: Attempt to load plug-in 
/usr/share/clearwater/sprout/plugins/sprout_mmtel_as.so
29-07-2016 18:37:54.089 UTC Status mmtelasplugin.cpp:95: Creating connection to 
XDMS homer:7888
29-07-2016 18:37:54.089 UTC Status httpconnection.cpp:114: Configuring HTTP 
Connection
29-07-2016 18:37:54.089 UTC Status httpconnection.cpp:115:   Connection created 
for server homer:7888
29-07-2016 18:37:54.089 UTC Status httpconnection.cpp:116:   Connection will 
use a response timeout of 500ms
29-07-2016 18:37:54.089 UTC Status pluginloader.cpp:127: Loaded sproutlet mmtel 
using API version 1
29-07-2016 18:37:54.089 UTC Status pluginloader.cpp:93: Attempt to load plug-in 
/usr/share/clearwater/sprout/plugins/sprout_icscf.so
29-07-2016 18:37:54.091 UTC Status scscfselector.cpp:72: No S-CSCF 
configuration data (file ./s-cscf.json does not exist)
29-07-2016 18:37:54.091 UTC Warning scscfselector.cpp:166: The S-CSCF json file 
is empty/invalid. Using default values
29-07-2016 18:37:54.091 UTC Status pluginloader.cpp:127: Loaded sproutlet icscf 
using API version 1
29-07-2016 18:37:54.091 UTC Status pluginloader.cpp:157: Finished loading 
plug-ins
29-07-2016 18:37:54.151 UTC Error main.cpp:2137: Caught HttpStack::Exception - 
evhtp_use_threads - -1

netstat -ntlup does not show anything bound to port 9888. Is any configuration 
missing?


Thanks!
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org

Reply via email to