Hi everyone,<div><br></div><div>This is my first post on the mailing list.</div><div><br></div><div>I'm currently walking through a new OpenSIPS 1.6.3 install on a ubuntu-server 10.04 (64-bit) box. I've purchased Flavio's book (OpenSIPS 1.6) from PacktPub which I was originally following, but it seemed to have some incomplete installation instructions, so I've been using a variety of sources (which I've cited at the end of this email).</div>
<div><br></div><div>My problem is: I can't get OpenSIPS to start at boot because some part of my MySQL configuration is messed up. Below are links to the appropriate error messages, as well as configuration files, so that you can get a sense of what I'm trying to do here. Also, just as additional information: I'm running MySQL on localhost (the same server that is running OpenSIPS), and I eventually plan to add in radius support for call accounting purposes.</div>
<div><br></div><div>My error messages from /var/log/syslog: <a href="http://pastie.org/1234861">http://pastie.org/1234861</a></div><div>My /etc/init.d/opensips file: <a href="http://pastie.org/1234862">http://pastie.org/1234862</a></div>
<div>My /etc/default/opensips file: <a href="http://pastie.org/1234863">http://pastie.org/1234863</a></div><div>My /etc/opensips/opensips.cfg file: <a href="http://pastie.org/1234864">http://pastie.org/1234864</a></div><div>
My /etc/opensips/opensipsctlrc file: <a href="http://pastie.org/1234869">http://pastie.org/1234869</a></div><div><br></div><div>The main error (if you don't want to look through the entire startup log) is:</div><div><br>
</div><div><div>Oct 20 07:55:09 OS01 /sbin/opensips[2372]: DBG:db_mysql:db_mysql_connect: opening connection: mysql://xxxx:xxxx@localhost/opensips</div><div>Oct 20 07:55:09 OS01 /sbin/opensips[2372]: ERROR:db_mysql:db_mysql_connect: driver error(2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)</div>
<div>Oct 20 07:55:09 OS01 /sbin/opensips[2372]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed</div><div>Oct 20 07:55:09 OS01 /sbin/opensips[2372]: ERROR:core:db_do_init: could not add connection to the pool</div>
<div>Oct 20 07:55:09 OS01 /sbin/opensips[2372]: ERROR:usrloc:register_udomain: failed to open database connection</div><div>Oct 20 07:55:09 OS01 /sbin/opensips[2372]: ERROR:registrar:domain_fixup: failed to register domain</div>
<div>Oct 20 07:55:09 OS01 /sbin/opensips[2372]: ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 330</div><div>Oct 20 07:55:09 OS01 /sbin/opensips[2372]: CRITICAL:core:fix_expr: fix_actions error</div><div>Oct 20 07:55:09 OS01 /sbin/opensips[2372]: ERROR:core:main: failed to fix configuration with err code -1</div>
</div><div><br></div><div>I've already created the appropriate database (opensips) using the command: 'opensipsdbctl create', which I'm assuming set the proper permissions and user passwords for the users 'opensips' and 'opensipsro'.</div>
<div><br></div><div>As another quick bit of debugging information, here is the following MySQL statement ran on my database:</div><div><br></div><div><div>mysql> SELECT user, host FROM mysql.user;</div><div>+------------------+-----------+</div>
<div>| user | host |</div><div>+------------------+-----------+</div><div>| root | 127.0.0.1 |</div><div>| debian-sys-maint | localhost |</div><div>| opensips | localhost |</div><div>| opensipsro | localhost |</div>
<div>| root | localhost |</div><div>+------------------+-----------+</div><div>5 rows in set (0.00 sec)</div></div><div><br></div><div>I'm at a loss of what to do to get OpenSIPS to connect to MySQL. I've read through both the official book by Flavio, as well as numerous guides on the websites, and on VoIP-info, but I've still had no luck.</div>
<div><br></div><div>If anyone can give me some advice or point out a mistake I've made, I'd be extremely grateful!</div><div><br></div><div>Here are some of the references I've used to help me configure my system so far:</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.amazon.com/Building-Telephony-Systems-OpenSIPS-1-6/dp/1849510741/ref=sr_1_1?ie=UTF8&qid=1287561923&sr=8-1">http://www.amazon.com/Building-Telephony-Systems-OpenSIPS-1-6/dp/1849510741/ref=sr_1_1?ie=UTF8&qid=1287561923&sr=8-1</a></div>
<div><a href="http://www.voip-info.org/wiki/view/Opensips+Installation,+How+to.">http://www.voip-info.org/wiki/view/Opensips+Installation,+How+to.</a></div><div><a href="http://www.mail-archive.com/users@lists.opensips.org/">http://www.mail-archive.com/users@lists.opensips.org/</a></div>
<div><br></div><div>Thanks SO much for your time.</div><div><br></div><div>-Randall</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<br>-- <br>Randall Degges<div><i><a href="http://rdegges.com/" target="_blank">http://rdegges.com/</a></i></div><br>
</div>