Git Product home page Git Product logo

csync2's People

Contributors

battlerock avatar infinoid avatar lge avatar mika avatar rvanlaar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ar45

csync2's Issues

ERROR from xxx Permission denied

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;
	
}

csync2 -Tvvv

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 ?

Csync2 not syncing files included in the conf folder

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.