<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Thanks a lot , it seems to be working now . but i'm getting the<b>
permission denied</b> error while syncing the files/ dirs. However the
key file is same, permission for key and certificate are 777 . <br>
I even posted same certificates but its not working.<br>
kindly look below , any suggestion would be a great help .<br>
<br>
<u>MACHINE 1</u><br>
<br>
<b>[root@av csync2-1.22]# csync2 -x -v -v<br>
My hostname is av.com.<br>
Database-File: /var/lib/csync2/av.com.db<br>
Config-File: /etc/csync2.cfg<br>
Running recursive check for / ...<br>
SQL: SELECT filename from file where filename = '/' or 1 ORDER BY
filename<br>
SQL Query finished.<br>
Checking /* ..<br>
Don't check at all: /var<br>
Don't check at all: /usr<br>
Don't check at all: /tmp<br>
Don't check at all: /sbin<br>
Don't check at all: /root<br>
Don't check at all: /proc<br>
Don't check at all: /opt<br>
Don't check at all: /mnt<br>
Don't check at all: /misc<br>
Don't check at all: /lost+found<br>
Don't check at all: /lib<br>
Don't check at all: /initrd<br>
Don't check at all: /home<br>
Don't check at all: /hardware.wci<br>
Don't check at all: /guestbook<br>
Don't check at all: /grey<br>
Don't check at all: /etc<br>
Don't check at all: /dev<br>
Don't check at all: /dailycount<br>
Don't check at all: /boot<br>
Don't check at all: /bin<br>
Match (+): /av on /av<br>
Checking /av.<br>
SQL: SELECT checktxt FROM file WHERE filename = '/av'<br>
SQL Query finished.<br>
Checking /av/* ..<br>
Match (+): /av on /av/moose<br>
Checking /av/moose.<br>
SQL: SELECT checktxt FROM file WHERE filename = '/av/moose'<br>
SQL Query finished.<br>
Match (+): /av on /av/avsubdir1<br>
Checking /av/avsubdir1.<br>
SQL: SELECT checktxt FROM file WHERE filename = '/av/avsubdir1'<br>
SQL Query finished.<br>
Checking /av/avsubdir1/* ..<br>
Match (+): /av on /av/avsubdir1/avsubdir2<br>
Checking /av/avsubdir1/avsubdir2.<br>
SQL: SELECT checktxt FROM file WHERE filename =
'/av/avsubdir1/avsubdir2'<br>
SQL Query finished.<br>
Checking /av/avsubdir1/avsubdir2/* ..<br>
Match (+): /av on /av/avsubdir1/avsubdir2/avsubdir3<br>
Checking /av/avsubdir1/avsubdir2/avsubdir3.<br>
SQL: SELECT checktxt FROM file WHERE filename =
'/av/avsubdir1/avsubdir2/avsubdir3'<br>
SQL Query finished.<br>
Checking /av/avsubdir1/avsubdir2/avsubdir3/* ..<br>
Match (+): /av on /av/av.txt<br>
Checking /av/av.txt.<br>
SQL: SELECT checktxt FROM file WHERE filename = '/av/av.txt'<br>
SQL Query finished.<br>
Don't check at all: /.fonts.cache-1<br>
Don't check at all: /.automount<br>
Don't check at all: /.autofsck<br>
SQL: SELECT peername FROM dirty GROUP BY peername ORDER BY random()<br>
SQL Query finished.<br>
SQL: SELECT filename, myname, force FROM dirty WHERE peername =
'test1.com' ORDER by filename ASC<br>
SQL Query finished.<br>
Connecting to host test1.com (SSL) ...<br>
Match (+): /av on /av<br>
Updating /av on test1.com ...<br>
While syncing file /av:<br>
ERROR from peer test1.com: Permission denied!<br>
File stays in dirty state. Try again later...<br>
Match (+): /av on /av/av.txt<br>
Updating /av/av.txt on test1.com ...<br>
While syncing file /av/av.txt:<br>
ERROR from peer test1.com: Permission denied!<br>
File stays in dirty state. Try again later...<br>
Match (+): /av on /av/avsubdir1<br>
Updating /av/avsubdir1 on test1.com ...<br>
While syncing file /av/avsubdir1:<br>
ERROR from peer test1.com: Permission denied!<br>
File stays in dirty state. Try again later...<br>
Match (+): /av on /av/avsubdir1/avsubdir2<br>
Updating /av/avsubdir1/avsubdir2 on test1.com ...<br>
While syncing file /av/avsubdir1/avsubdir2:<br>
ERROR from peer test1.com: Permission denied!<br>
File stays in dirty state. Try again later...<br>
Match (+): /av on /av/avsubdir1/avsubdir2/avsubdir3<br>
Updating /av/avsubdir1/avsubdir2/avsubdir3 on test1.com ...<br>
While syncing file /av/avsubdir1/avsubdir2/avsubdir3:<br>
ERROR from peer test1.com: Permission denied!<br>
File stays in dirty state. Try again later...<br>
Match (+): /av on /av/moose<br>
Updating /av/moose on test1.com ...<br>
While syncing file /av/moose:<br>
ERROR from peer test1.com: Permission denied!<br>
File stays in dirty state. Try again later...<br>
SQL: SELECT command, logfile FROM action GROUP BY command, logfile<br>
SQL Query finished.<br>
Finished with 6 errors.</b><br>
<br>
<u>MACHINE 2</u><br>
<br>
<b>Csync2 daemon running. Waiting for connections.<br>
<14549> New connection from 192.168.197.121:33136.<br>
<14549> Connection closed.</b><br>
<br>
<br>
Regards,<br>
Nitin Kataria<br>
<br>
<br>
<br>
Michael Milkovich wrote:
<blockquote cite="mid43737B54.2010506@warecorp.com" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
In the log, I see that /test is not being checked. In your config
file, change<br>
<br>
include /test/;<br>
<br>
to<br>
<br>
include /test;<br>
<br>
then, as Miguel suggested, touch a file in /test -- e.g. touch
/test/moose. then rerun csync (with the -vv so you can see that it is
checking this new file). I think this should help.<br>
<pre class="moz-signature" cols="72">--
Mike Milkovich
Partner, Warecorp
<a class="moz-txt-link-abbreviated" href="http://www.warecorp.com">www.warecorp.com</a></pre>
<br>
<br>
Nitin Kataria wrote:
<blockquote cite="mid43736609.2090106@dataarmor.net" type="cite">
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
<br>
Helo Micahel, <br>
<br>
Thanks a lot for suggestipon first. Here is my config file . These two
machines are running over different network with VPN connectivity. {
Machines are very much reachable }<br>
<br>
<br>
<b>[root@av root]# cat /etc/csync2.cfg<br>
group mygroup<br>
{<br>
host 192.168.198.128 192.168.197.121 ;<br>
# host (host4@host4-eth2);<br>
<br>
key /etc/csync2.key_mygroup;<br>
<br>
# include /etc/apache;<br>
# include %homedir%/bob;<br>
# exclude %homedir%/bob/temp;<br>
<br>
include /test/;<br>
#exclude *~ .*;<br>
<br>
action {<br>
pattern /etc/httpd/conf/httpd.conf;<br>
pattern /var/www/html/*;<br>
exec "/usr/sbin/apache2ctl graceful";<br>
exec " echo "This is done"";<br>
logfile "/var/log/csync2_action.log";<br>
do-local;<br>
}<br>
<br>
auto none;<br>
}<br>
<br>
#prefix homedir<br>
#{<br>
# on host[12]:<br>
# /users;<br>
# on *:<br>
# /home;<br>
#}<br>
<br>
#nossl host2 host3;<br>
#nossl host3 host2;<br>
<br>
#config /etc/csync2.cfg_anotherone;<br>
#config /etc/csync2.cfg_foo /etc/csync2.cfg_bar;<br>
<br>
</b>and my output for "csync2 -c -r -v -v" [ Its kind of similar
to
"csync2 -x -vv" ]<b><br>
<br>
[root@av root]# csync2 -c -r -v -v /<br>
My hostname is av.com.<br>
Database-File: /var/lib/csync2/av.com.db<br>
Config-File: /etc/csync2.cfg<br>
Running recursive check for / ...<br>
SQL: SELECT filename from file where filename = '/' or 1 ORDER BY
filename<br>
SQL Query finished.<br>
Checking /* ..<br>
Don't check at all: /var<br>
Don't check at all: /usr<br>
Don't check at all: /tmp<br>
Don't check at all: /test<br>
Don't check at all: /sbin<br>
Don't check at all: /root<br>
Don't check at all: /proc<br>
Don't check at all: /opt<br>
Don't check at all: /mnt<br>
Don't check at all: /misc<br>
Don't check at all: /lost+found<br>
Don't check at all: /lib<br>
Don't check at all: /initrd<br>
Don't check at all: /home<br>
Don't check at all: /hardware.wci<br>
Don't check at all: /guestbook<br>
Don't check at all: /grey<br>
Don't check at all: /etc<br>
Don't check at all: /dev<br>
Don't check at all: /dailycount<br>
Don't check at all: /boot<br>
Don't check at all: /bin<br>
Don't check at all: /.fonts.cache-1<br>
Don't check at all: /.automount<br>
Don't check at all: /.autofsck<br>
SQL: SELECT command, logfile FROM action GROUP BY command, logfile<br>
SQL Query finished.<br>
Finished with 0 errors.<br>
<br>
</b>I'm still stuck , feeling lost at the moment . Please give some
direction .<br>
<br>
Thanks,<br>
Nitin Kataria<br>
<br>
Michael Milkovich wrote:
<blockquote cite="mid4372AAC3.5000303@warecorp.com" type="cite">Nitin:
<br>
<br>
the first thing I would try is turn on the verbose messages to see what
csync is doing... <br>
<br>
csync2 -x -vv <br>
<br>
turns on pretty verbose mode <br>
<br>
You can tell if items are scheduled for updating but have not yet been
sent over to the remote host(s) by using csync2 -M -- this displays
the content of the "dirty" table. <br>
<br>
If no joy, send me a copy of your config files and the output from
"csync2 -c -r -v -v /" <br>
<br>
-- Mike <br>
<br>
</blockquote>
<br>
</blockquote>
</blockquote>
<br>
</body>
</html>