Shiva, Clearwater is very oriented around DNS.
· DNS is used for load-balancing when you have more than 1 node in a cluster - in particular, following RFC 3263 for SIP. · DNS is used (following the rules in RFC 6733) for resolving Diameter realms to IP addresses. It is possible to get Clearwater running without a DNS server, but I would strongly recommend that you deploy a DNS server - in particular, if you event intend to scale up to a fault-tolerant or higher-capacity deployment, it is mandatory. The instructions for configuring DNS (and installing a DNS server if you don't already have one) are at http://clearwater.readthedocs.org/en/latest/Clearwater_DNS_Usage/index.html. Please let me know if you do definitely need to run without DNS, and we can look at how to set this up - but note the restrictions above on scalability and fault-tolerance. On the issues you're seeing below, I think the problem is that there is still configuration entries such as "sprout_hostname" below that contain both a hostname prefix and then an IP address - moving to DNS is one way to resolve all this. Thanks, Matt -- Matt Williams Lead Architect, Project Clearwater +44 (0) 20 8366 1177 From: Shiva Charan [mailto:[email protected]] Sent: 22 January 2016 06:02 To: Matt Williams <[email protected]> Cc: [email protected] Subject: Re: [Clearwater] Homestead conf file missing. Hi Matt, An update, ive changed the share_config file as follows and also I dont have a dns server in my environment( I assume its not mandatory). Also find the logs below. shared_config # Deployment definitions home_domain=10.222.5.159 sprout_hostname=sprout.10.222.5.172 hs_hostname=10.222.5.173:8888<http://10.222.5.173:8888> hs_provisioning_hostname=10.222.5.173:8889<http://10.222.5.173:8889> ralf_hostname=10.222.5.163:10888<http://10.222.5.163:10888> xdms_hostname=0.222.5.179:7888<http://0.222.5.179:7888> # Email server configuration smtp_smarthost=example.com<http://example.com> smtp_username=username smtp_password=password [email protected]<mailto:[email protected]> # Keys signup_key=secret turn_workaround=secret ellis_api_key=secret ellis_cookie_key=secret ellis error log 22-01-2016 05:51:32.515 UTC INFO homestead.py:62: Pinged Homestead OK 22-01-2016 05:52:03.235 UTC INFO main.py:115: Process 3 starting up 22-01-2016 05:52:03.278 UTC WARNING homestead.py:309: Passing SIP password in the clear over http 22-01-2016 05:52:03.295 UTC INFO homestead.py:62: Pinged Homestead OK 22-01-2016 05:52:34.010 UTC INFO main.py:115: Process 3 starting up 22-01-2016 05:52:34.055 UTC WARNING homestead.py:309: Passing SIP password in the clear over http 22-01-2016 05:52:34.064 UTC INFO homestead.py:62: Pinged Homestead OK homestead log: 22-01-2016 05:53:45.109 UTC Warning (Net-SNMP): Warning: Failed to connect to the agentx master agent ([NIL]): 22-01-2016 05:54:00.121 UTC Warning (Net-SNMP): Warning: Failed to connect to the agentx master agent ([NIL]): 22-01-2016 05:54:15.128 UTC Warning (Net-SNMP): Warning: Failed to connect to the agentx master agent ([NIL]): 22-01-2016 05:54:30.134 UTC Warning (Net-SNMP): Warning: Failed to connect to the agentx master agent ([NIL]): 22-01-2016 05:54:45.147 UTC Warning (Net-SNMP): Warning: Failed to connect to the agentx master agent ([NIL]): 22-01-2016 05:55:00.161 UTC Warning (Net-SNMP): Warning: Failed to connect to the agentx master agent ([NIL]): 22-01-2016 05:55:15.176 UTC Warning (Net-SNMP): Warning: Failed to connect to the agentx master agent ([NIL]): 22-01-2016 05:55:30.190 UTC Warning (Net-SNMP): Warning: Failed to connect to the agentx master agent ([NIL]): 22-01-2016 05:55:45.204 UTC Warning (Net-SNMP): Warning: Failed to connect to the agentx master agent ([NIL]): homer log: 2-01-2016 03:18:56.908 UTC INFO main.py:74: Going to listen for HTTP on UNIX socket /tmp/.homer-sock-0 sprout log: 22-01-2016 05:57:49.979 UTC Status load_monitor.cpp:260: Maximum incoming request rate/second unchanged - only handled 20 requests in last 142284ms, minimum threshold for a change is 35571.000000 22-01-2016 05:58:08.533 UTC Error dnscachedresolver.cpp:567: Failed to retrieve record for hs.10.222.5.173: Could not contact DNS servers 22-01-2016 05:58:08.533 UTC Error httpconnection.cpp:771: cURL failure with cURL error code 6 (see man 3 libcurl-errors) and HTTP error code 404 22-01-2016 05:58:08.533 UTC Error hssconnection.cpp:615: Could not get subscriber data from HSS 22-01-2016 05:58:38.720 UTC Error httpconnection.cpp:771: cURL failure with cURL error code 6 (see man 3 libcurl-errors) and HTTP error code 404 22-01-2016 05:58:38.720 UTC Error hssconnection.cpp:615: Could not get subscriber data from HSS 22-01-2016 05:58:48.752 UTC Error dnscachedresolver.cpp:567: Failed to retrieve record for hs.10.222.5.173: Could not contact DNS servers 22-01-2016 05:58:48.752 UTC Error httpconnection.cpp:771: cURL failure with cURL error code 6 (see man 3 libcurl-errors) and HTTP error code 404 22-01-2016 05:58:48.752 UTC Error hssconnection.cpp:615: Could not get subscriber data from HSS 22-01-2016 05:59:08.926 UTC Error httpconnection.cpp:771: cURL failure with cURL error code 6 (see man 3 libcurl-errors) and HTTP error code 404 22-01-2016 05:59:08.926 UTC Error hssconnection.cpp:615: Could not get subscriber data from HSS bono and ralf log files are attached to the mail On Fri, Jan 22, 2016 at 8:55 AM, Shiva Charan <[email protected]<mailto:[email protected]>> wrote: Hi Matt, Seems the shared config file wasn't applied properly to the home stead node, i copied the config file to /etc/clearwater/ and ran "sudo service clearwater-infrastructure restart" now almost all the services are running on all nodes are running, except for Program 'poll_bono' Status failed Program 'poll_memento_https' Status failed And Ellis UI still show the nginx welcome page. Please find the shared_config file below. [homestead]ubuntu@homestead:/etc/clearwater$ cat shared_config # Deployment definitions home_domain=10.222.5.159 sprout_hostname=sprout.10.222.5.172 hs_hostname=hs.10.222.5.173:8888 hs_provisioning_hostname=hs.10.222.5.173:8889 ralf_hostname=ralf.10.222.5.163:10888 xdms_hostname=homer.10.222.5.179:7888 # Email server configuration smtp_smarthost=example.com<http://example.com> smtp_username=username smtp_password=password [email protected]<mailto:[email protected]> # Keys signup_key=secret turn_workaround=secret ellis_api_key=secret ellis_cookie_key=secret Shiva On Fri, Jan 22, 2016 at 12:45 AM, Matt Williams <[email protected]<mailto:[email protected]>> wrote: Shiva, Thanks for this. I notice that the URL that Ellis is trying to ping is "http://hs.10.222.5.173:8889/ping". Please can you check/share your /etc/clearwater/shared_config file? Matt -- Matt Williams Lead Architect, Project Clearwater +44 (0) 20 8366 1177 From: Shiva Charan [mailto:[email protected]<mailto:[email protected]>] Sent: 21 January 2016 17:44 To: Matt Williams <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]> Subject: Re: [Clearwater] Homestead conf file missing. Hi Matt, Thank you for the reply. About homestead, yes I tried running "sudo service clearwater-infrastructure restart" did not return any error [homestead]ubuntu@homestead:/var/log/homestead$ sudo service clearwater-infrastructure restart * Restarting clearwater-infrastructure clearwater-infrastructure Configuring monit for only localhost access [ OK ] [homestead]ubuntu@homestead:/var/log/homestead$ On Ellis node the process seems to run, but its not stable process restarts after a while. [ellis]ubuntu@ellis:/etc/clearwater$ sudo monit summary The Monit daemon 5.8.1 uptime: 9h 50m Process 'ntp_process' Running System 'node-ellis' Running Process 'nginx_process' Running Process 'mysql_process' Running Process 'ellis_process' Running Program 'poll_ellis' Status ok Program 'poll_ellis_https' Status ok Process 'clearwater_queue_manager' Running Process 'etcd_process' Running Program 'poll_etcd_cluster' Waiting Program 'poll_etcd' Status ok Process 'clearwater_diags_monitor_process' Running Process 'clearwater_config_manager' Running Process 'clearwater_cluster_manager' Running And the ellis error log file says it failed to ping homestead. "UTC ERROR homestead.py:68: Failed to ping Homestead at http://hs.10.222.5.173:8889/ping. Have you configured your HOMESTEAD_URL?" netstat on homestead shows no processon 8889 port. Shiva On Thu, Jan 21, 2016 at 6:59 PM, Matt Williams <[email protected]<mailto:[email protected]>> wrote: Shiva, It's good to hear from you. /var/lib/homestead/homestead.conf should be built by the clearwater-infrastructure script that is run on package installation and boot. You can rerun it by typing "sudo service clearwater-infrastructure restart". Do you get any errors out when you do so? You mention that ellis is displaying the nginx page. Is the ellis process running? Run "sudo monit summary" on the ellis node to find out. If it isn't running, please check /var/log/ellis/ for details and, if that doesn't help, let me know what you see. Incidentally, please can you subscribe to the clearwater mailing list, so that your posts are automatically approved and you can see other people's questions and comments - see http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org for details. Thanks, Matt -- Matt Williams Lead Architect, Project Clearwater +44 (0) 20 8366 1177 From: Clearwater [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Shiva Charan Sent: 21 January 2016 12:38 To: [email protected]<mailto:[email protected]> Subject: [Clearwater] Homestead conf file missing. Hi, I have a new clearwater manual install setup, homestead process has a "Execution failed" status. Also when i open the ellis UI with the ellis IP it goes to nginx page, how do i get the clearwater UI? /etc/log/homestead/homestead_current.txt says the /var/lib/homestead.conf file is missing. How do I get this file? 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in NET-SNMP-EXTEND-MIB: nsExtendResult ::= { nsExtendOutput1Entry 4 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in NET-SNMP-EXTEND-MIB: nsExtendOutNumLines ::= { nsExtendOutput1Entry 3 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in NET-SNMP-EXTEND-MIB: nsExtendOutputFull ::= { nsExtendOutput1Entry 2 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in NET-SNMP-EXTEND-MIB: nsExtendOutput1Line ::= { nsExtendOutput1Entry 1 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in NET-SNMP-EXTEND-MIB: nsExtendOutLine ::= { nsExtendOutput2Entry 2 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in NET-SNMP-EXTEND-MIB: nsExtendLineIndex ::= { nsExtendOutput2Entry 1 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyStart ::= { netSnmpNotifications 1 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyShutdown ::= { netSnmpNotifications 2 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyRestart ::= { netSnmpNotifications 3 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in UCD-SNMP-MIB: laErrMessage ::= { laEntry 101 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in UCD-SNMP-MIB: laErrorFlag ::= { laEntry 100 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in UCD-SNMP-MIB: laLoadFloat ::= { laEntry 6 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in UCD-SNMP-MIB: laLoadInt ::= { laEntry 5 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in UCD-SNMP-MIB: laConfig ::= { laEntry 4 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in UCD-SNMP-MIB: laLoad ::= { laEntry 3 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in UCD-SNMP-MIB: laNames ::= { laEntry 2 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Cannot adopt OID in UCD-SNMP-MIB: laIndex ::= { laEntry 1 } 21-01-2016 12:33:09.196 UTC Warning (Net-SNMP): Warning: Failed to connect to the agentx master agent ([NIL]): 21-01-2016 12:33:09.197 UTC Status load_monitor.cpp:105: Constructing LoadMonitor 21-01-2016 12:33:09.197 UTC Status load_monitor.cpp:106: Target latency (usecs) : 100000 21-01-2016 12:33:09.197 UTC Status load_monitor.cpp:107: Max bucket size : 20 21-01-2016 12:33:09.197 UTC Status load_monitor.cpp:108: Initial token fill rate/s: 100.000000 21-01-2016 12:33:09.197 UTC Status load_monitor.cpp:109: Min token fill rate/s : 10.000000 21-01-2016 12:33:09.197 UTC Status dnscachedresolver.cpp:142: Creating Cached Resolver using servers: 21-01-2016 12:33:09.197 UTC Status dnscachedresolver.cpp:152: 127.0.0.1 21-01-2016 12:33:09.197 UTC Status httpresolver.cpp:51: Created HTTP resolver 21-01-2016 12:33:09.197 UTC Status cassandra_store.cpp:154: Configuring store connection 21-01-2016 12:33:09.197 UTC Status cassandra_store.cpp:155: Hostname: localhost 21-01-2016 12:33:09.197 UTC Status cassandra_store.cpp:156: Port: 9160 21-01-2016 12:33:09.197 UTC Status cassandra_store.cpp:206: Configuring store worker pool 21-01-2016 12:33:09.197 UTC Status cassandra_store.cpp:207: Threads: 10 21-01-2016 12:33:09.197 UTC Status cassandra_store.cpp:208: Max Queue: 0 21-01-2016 12:33:09.198 UTC Status cassandra_store.cpp:223: Starting store 21-01-2016 12:33:09.200 UTC Status httpconnection.cpp:146: Configuring HTTP Connection 21-01-2016 12:33:09.200 UTC Status httpconnection.cpp:147: Connection created for server :9888 21-01-2016 12:33:09.200 UTC Status httpconnection.cpp:148: Connection will use a response timeout of 500ms 21-01-2016 12:33:09.200 UTC Status diameterstack.cpp:78: Initializing Diameter stack 21-01-2016 12:33:09.202 UTC Status diameterstack.cpp:415: Configuring Diameter stack from file /var/lib/homestead/homestead.conf 21-01-2016 12:33:09.202 UTC Error freeDiameter: Unable to open configuration file for reading; tried the following locations: /var/lib/homestead/homestead.conf; Error: No such file or directory 21-01-2016 12:33:09.202 UTC Error freeDiameter: ERROR: in '((fd_conf_parse()))' : No such file or directory 21-01-2016 12:33:09.202 UTC Error main.cpp:756: Failed to initialize Diameter stack - function fd_core_parseconf, rc 2 21-01-2016 12:33:09.202 UTC Status main.cpp:757: Homestead is shutting down 21-01-2016 12:33:09.202 UTC Status cassandra_store.cpp:245: Stopping store 21-01-2016 12:33:09.202 UTC Status cassandra_store.cpp:255: Waiting for store to stop Thanks, Shiva
_______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org
