Hi,<br><br> I'm using Centos 5.2 with sqlite3. I've successfully patched csync2 to support sqlite3 (<a href="http://tmp.askask.com/2008/01/csync2-sqlite3-wip.patch">http://tmp.askask.com/2008/01/csync2-sqlite3-wip.patch</a>). Now I have 3 nodes (one master and two slaves). The conf is:<br>
group asterisk #group name, we can have multiple groups<br>{<br> host <a href="http://berkut.mediafon.lt">berkut.mediafon.lt</a>; #master server<br> host (<a href="http://voip-gw-1.900.lt">voip-gw-1.900.lt</a>); #slave server<br>
host (<a href="http://voip-gw-2.900.lt">voip-gw-2.900.lt</a>); #slave server<br><br> key /etc/csync2_ssl_cert.key;<br><br> exclude *~ .* ok lock control;<br> <br> include %etcdir%/odbc.ini;<br> include %etcdir%/odbcinst.ini;<br>
include %etcdir%/asterisk;<br> exclude %etcdir%/asterisk/sip.conf;<br> include %vardir%/lib/asterisk;<br> <br> action<br> {<br> pattern %etcdir%/asterisk/extensions.ael;<br> exec "/usr/sbin/rasterisk -x 'ael reload'";<br>
logfile "/var/log/csync2/action.log";<br> }<br> action<br> {<br> pattern %etcdir%/asterisk/extensions.conf;<br> exec "/usr/sbin/rasterisk -x 'dialplan reload'";<br>
logfile "/var/log/csync2/action.log";<br> }<br><br> backup-directory /var/backups/csync2;<br> backup-generations 3;<br> auto none; #no automatic sync<br>}<br>prefix etcdir<br>{<br> on <a href="http://berkut.mediafon.lt">berkut.mediafon.lt</a>: /opt/asterisk/etc;<br>
on <a href="http://voip-gw-1.900.lt">voip-gw-1.900.lt</a>: /etc;<br> on <a href="http://voip-gw-2.900.lt">voip-gw-2.900.lt</a>: /etc;<br>}<br>prefix vardir<br>{<br> on <a href="http://berkut.mediafon.lt">berkut.mediafon.lt</a>: /opt/asterisk/var;<br>
on <a href="http://voip-gw-1.900.lt">voip-gw-1.900.lt</a>: /var;<br> on <a href="http://voip-gw-2.900.lt">voip-gw-2.900.lt</a>: /var;<br>}<br><br>But then I execute command from <a href="http://berkut.mediafon.lt">berkut.mediafon.lt</a> , I get:<br>
<br>csync2 -x -vvvvvvvvvvvvvvvvvvvvvvv<br>My hostname is <a href="http://berkut.mediafon.lt">berkut.mediafon.lt</a>.<br>Database-File: /var/lib/csync2/berkut.mediafon.lt.db3<br>Config-File: /etc/csync2.cfg<br>Prefix 'etcdir' is set to '/opt/asterisk/etc'.<br>
Prefix 'vardir' is set to '/opt/asterisk/var'.<br>Running recursive check for / ...<br>SQL: SELECT filename from file where filename = '/' or 1 ORDER BY filename<br>Trying to fetch a row from the database.<br>
Database Error: Checking for removed files [21].<br><br>Please help to solve this issue. Maybe better to use older sqlite version?<br>Thanks<br clear="all"><br>-- <br>Pagarbiai / Best Regards,<br>Giedrius Augys<br>