The problem is caused by running csync2 at the same time on both nodes.
This causes a lock on the sqlite database and, occasionally the uid/gid/perms are not updated properly. node1 syncs to node2 and then node2 tries to sync back to node1 at the same time which is when you get your 0600 root:root issue.

Make sure that when csync2 runs on one node, it's not running on the other node at the same time.

Mark.

On 29/08/2017 14:41, Roland van Laar wrote:
On 15-08-17 21:12, Lars Ellenberg wrote:
On Mon, Aug 14, 2017 at 07:00:23AM +0400, Vadim Abdulayev wrote:
Hello.
When replying to digests, please change the subject appropriately.
(Digest mode on a list that is so low volume as this one
is not useful anyways, really.)

All command executed on node1.

After resync i receive wrong owner on node1.
On node2, i always have
correct owner and permission.

node2 is backup node. No one working there.
csync2 is push only.

according to you, you execute all commands on node1.
node1 then is the source.
node2 is the target.

Still, according to you,
the ownership on the source changes.

Which means either your report is inconsistent,
or we are talking about a different "csync2",
or "something else is going on".
Sorry to chime in so late.
This is exactly what I see happening as well.
Node1 and node2 both have crobjobs.
Both run at "*/15 * * * * "
Files are uploaded via the web to node1.
Sometime the source node1 will have the permissions changed to root.root.
Node2 will have the correct permission.
csync2 itself will never change ownership
(or anything else) on the source.
It will apply changes on the target,
to try to make the target look like the source.

Hope that helps you drilling down further.

     Lars

_______________________________________________
Csync2 mailing list
Csync2@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/csync2


_______________________________________________
Csync2 mailing list
Csync2@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/csync2

_______________________________________________
Csync2 mailing list
Csync2@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/csync2

Reply via email to