<HTML><HEAD><META content="text/html; charset=UTF-8" http-equiv="Content-Type"></HEAD><BODY>For those of you guys who are experiencing this issue: I noticed tonight, after this happened yet again, that one of my files was owned by UID 1012 on node3. The problem is that that uid does not exist on node3. That uid DOES exist on node1, and was the affected user. So when csync2 copied this file from node1 to node3, it copied the UID as well, and since that UID doesn't exist on node3, the user on node3 did not have permission to access the file.<BR>
<BR>
In other words:<BR>
<BR>
"user" on node1 has a UID of 1012<BR>
"user" on node3 has a UID of 1007<BR>
"user" updated a file on node1. When that file was copied to node3, the UID of the owner and group was 1012 instead of 1007. This meant that "user" could not access the file on node3.<BR>
<BR>
I really hope this can be resolved soon, as it's causing a ton of grief for us.<BR>
<BR>
Kevin Cackler wrote:<BR>
<blockquote type="cite"><BR>
In my case all of my synced nodes had the bad ownership. After <BR>
changing the ownership back to the correct value on one node, csync <BR>
correctly fixed it on the rest of the nodes, no problem.<BR>
<BR>
In my case, the file with the bad ownership was one that was created <BR>
by a web application. After discovering this problem, I caused the <BR>
application to change the file again and the correct ownership was <BR>
observed, so I don't think it's an application problem, at least not <BR>
in my case.<BR>
<BR>
Roland van Laar wrote:<BR>
<blockquote type="cite"><BR>
<BR>
Same here.<BR>
There isn't a pattern I could deduce.<BR>
<BR>
The only weird thing that happened was that the root.root permissions<BR>
are on the host where the<BR>
file was put. So I didn't suspect csync, but the application doing the<BR>
writing.<BR>
<BR>
Roland<BR>
<BR>
On 17-07-17 15:01, Aristedes Maniatis wrote:<BR>
<blockquote type="cite"><BR>
<BR>
After years of reliable service, csync2 2.0 did exactly that for me <BR>
just last week. One file suddenly owned by root.<BR>
Ari<BR>
<BR>
<BR>
On 17/7/17 10:32PM, Kevin Cackler wrote:<BR>
<blockquote type="cite"><BR>
<BR>
Funnily enough, we are also experiencing this issue with the root <BR>
owned files. Randomly, and without any definable pattern, so far as <BR>
we can tell, we'll get a file that suddenly is owned by root:root <BR>
with rw permissions and we have to go in and correct the <BR>
permissions. So far we haven't been able to nail down the cause of <BR>
this.<BR>
<BR>
Mark Hodge wrote:<BR>
<blockquote type="cite"><BR>
<BR>
Hi,<BR>
<BR>
I've recently setup a csync cluster between 3 nodes and although the<BR>
ring model works ok, it obviously fails when the middle server (node<BR>
2) is offline. Therefore I've been trying to get a working config that<BR>
is something like this:<BR>
<BR>
node1 =&gt; node2 + node3<BR>
node2 =&gt; node1 + node3<BR>
node3 =&gt; node1 + node2<BR>
<BR>
So at least if node2 is offline, node1+node3 are still syncing.<BR>
<BR>
Is this the best way to achieve this? using "master (slave)" pairs?<BR>
<BR>
I ended up putting csync on all nodes in a cron every minute (lsync<BR>
would crash occasionally) when csync returned errors.<BR>
<BR>
I got lots of "Database is busy, sleeping a sec" errors, which I<BR>
presumed was because csync was running at the same time on each node<BR>
and causing db locks. So I staggered them, at 0, 20 and 40 sec in the<BR>
minute which got rid of the "busy" errors.<BR>
<BR>
However, occasionally I will get random files appear one one or more<BR>
nodes owned by "root" with perms "rw" only for owner. This means<BR>
standard users cannot access these files. I suspect that csync is<BR>
somehow failing to set uid/gid/perms after the copy.<BR>
<BR>
How can this happen?<BR>
<BR>
Mark.<BR>
<BR>
_______________________________________________<BR>
Csync2 mailing list<BR>
Csync2@lists.linbit.com<BR>
http://lists.linbit.com/mailman/listinfo/csync2<BR>
<BR>
<BR>
_______________________________________________<BR>
Csync2 mailing list<BR>
Csync2@lists.linbit.com<BR>
http://lists.linbit.com/mailman/listinfo/csync2<BR>
</blockquote><BR>
<BR>
</blockquote><BR>
<BR>
<BR>
<BR>
<BR>
_______________________________________________<BR>
Csync2 mailing list<BR>
Csync2@lists.linbit.com<BR>
http://lists.linbit.com/mailman/listinfo/csync2<BR>
</blockquote><BR>
<BR>
<BR>
<BR>
_______________________________________________<BR>
Csync2 mailing list<BR>
Csync2@lists.linbit.com<BR>
http://lists.linbit.com/mailman/listinfo/csync2</BODY></HTML>