rvanlaar / csync2 Goto Github PK
View Code? Open in Web Editor NEWcsync2 is a cluster synchronisation tool
License: GNU General Public License v2.0
csync2 is a cluster synchronisation tool
License: GNU General Public License v2.0
I have 2 machine, freebsd.epl3.org is master (Running FreeBSD 8.4), elk.epl3.org is slave (Running CentOS 7).
csync2 ver: 1.34
sync folder: /d1/www (permission 777, owner root )
daemon running user as root
csync2.cfg
nossl * *;
group mygroup
{
host freebsd.epl3.org (elk.epl3.org);
key /etc/csync2/mygroup.key;
include /d1/www;
}
My hostname is freebsd.epl3.org.
Database-File: /var/db/csync2/freebsd.epl3.org.db
Config-File: /usr/local/etc/csync2.cfg
Running in-sync check for freebsd.epl3.org <-> elk.epl3.org.
Connecting to host elk.epl3.org (PLAIN) ...
Local> CONFIG \n
Peer> OK (cmd_finished).\n
Local> HELLO freebsd.epl3.org\n
Peer> OK (cmd_finished).\n
Local> LIST elk.epl3.org -
Local> IXj6q4tTQ5AuXx2bOhYk6sxZ_9IGI.0OI__A2BFc5zhReaSLjfrf0jkIxvZEtg9O
Local> \n
SQL: SELECT checktxt, filename FROM file ORDER BY filename
Match (+): /d1/www on /d1/www
Peer> OK (cmd_finished).\n
End of query results: OK (cmd_finished).
L freebsd.epl3.org elk.epl3.org /d1/www
SQL Query finished.
Local> BYE\n
Peer> OK (cu_later).\n
SQL: SELECT command, logfile FROM action GROUP BY command, logfile
SQL Query finished.
Finished with 0 errors.
#csync2 -xvvv
My hostname is freebsd.epl3.org.
Database-File: /var/db/csync2/freebsd.epl3.org.db
Config-File: /usr/local/etc/csync2.cfg
Running recursive check for / ...
SQL: SELECT filename from file where filename = '/' or 1 ORDER BY filename
SQL Query finished.
Checking /* ..
Don't check at all: /var
Don't check at all: /usr
Don't check at all: /tmp
Don't check at all: /sys
Don't check at all: /sbin
Don't check at all: /root
Don't check at all: /rescue
Don't check at all: /proc
Don't check at all: /mnt
Don't check at all: /media
Don't check at all: /libexec
Don't check at all: /lib
Don't check at all: /etc
Don't check at all: /entropy
Don't check at all: /dist
Don't check at all: /dev
Checking /d1/* ..
Match (+): /d1/www on /d1/www
Checking /d1/www.
SQL: SELECT checktxt FROM file WHERE filename = '/d1/www'
SQL Query finished.
Checking /d1/www/* ..
Don't check at all: /compat
Don't check at all: /cdrom
Don't check at all: /boot
Don't check at all: /bin
Don't check at all: /COPYRIGHT
Don't check at all: /.snap
Don't check at all: /.profile
Don't check at all: /.cshrc
SQL: SELECT peername FROM dirty GROUP BY peername ORDER BY random()
SQL Query finished.
SQL: SELECT filename, myname, force FROM dirty WHERE peername = 'elk.epl3.org' ORDER by filename ASC
SQL Query finished.
Connecting to host elk.epl3.org (PLAIN) ...
Local> CONFIG \n
Peer> OK (cmd_finished).\n
Local> HELLO freebsd.epl3.org\n
Peer> OK (cmd_finished).\n
Match (+): /d1/www on /d1/www/test.txt
Deleting /d1/www/test.txt on elk.epl3.org ...
Local> SIG IXj6q4tTQ5AuXx2bOhYk6sxZ_9IGI.0OI__A2BFc5zhReaSLjfrf0jkIxvZEtg9O /d1/www/test.txt\n
Peer> Permission denied!\n
While syncing file /d1/www/test.txt:
ERROR from peer elk.epl3.org: Permission denied!
File stays in dirty state. Try again later...
Match (+): /d1/www on /d1/www
Updating /d1/www on elk.epl3.org ...
Local> FLUSH IXj6q4tTQ5AuXx2bOhYk6sxZ_9IGI.0OI__A2BFc5zhReaSLjfrf0jkIxvZEtg9O /d1/www\n
Peer> Permission denied!\n
While syncing file /d1/www:
ERROR from peer elk.epl3.org: Permission denied!
File stays in dirty state. Try again later...
Local> BYE\n
Peer> OK (cu_later).\n
SQL: SELECT command, logfile FROM action GROUP BY command, logfile
SQL Query finished.
Finished with 2 errors.
why I get permission denied ?
I followed all the easy conf step found in the paper, but even if the csync2 looks working no file are synced.
Do you know what can be the issue?
My conf is very simple and include 2 hosts.
Just to give some hint when I try the sync with csync2 -xv I get
Connection closed.
Finished with 0 errors.
But no file are synced.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.