syncthing-acl
syncthing-acl copied to clipboard
Racecondition
Hi idistech,
thanks for providing this script.
On the first sight everything looked good, but after doing some tests in real life I'm constantly running into a race condition where the source folders permissions get changed while sync is still in progress.
I'm trying to use Syncthing to keep Kubernetes Persistent Volumens in sync.
Here is my test case:
node1
has a demo WordPress (about 6k files + directories) installation unter /testsrc/wordpress
, which looks like:
drwxr-xr-x 6 www-data www-data 1,0K Dez 2 21:33 .
drwxr-x--- 12 root root 4,0K Dez 2 21:33 ..
-rw-r--r-- 1 www-data www-data 296 Mai 9 2018 .htaccess
-rw-r--r-- 1 www-data www-data 418 Sep 25 2013 index.php
-rw-r--r-- 1 www-data www-data 20K Mai 8 2018 license.txt
-rw-r--r-- 1 www-data www-data 8,6K Mai 8 2018 liesmich.html
drwx------ 2 root root 12K Mai 8 2018 lost+found
-rw-r--r-- 1 www-data www-data 7,3K Mai 8 2018 readme.html
-rw-r--r-- 1 www-data www-data 5,4K Mai 8 2018 wp-activate.php
drwxr-xr-x 9 www-data www-data 4,0K Feb 6 2018 wp-admin
-rw-r--r-- 1 www-data www-data 364 Dez 19 2015 wp-blog-header.php
-rw-r--r-- 1 www-data www-data 1,6K Aug 29 2016 wp-comments-post.php
-rw-r--r-- 1 www-data www-data 3,2K Dez 2 21:33 wp-config.php
-rw-r--r-- 1 www-data www-data 3,6K Dez 2 21:33 wp-config-sample.php
drwxr-xr-x 7 www-data www-data 1,0K Dez 2 23:11 wp-content
-rw-r--r-- 1 www-data www-data 3,6K Aug 20 2017 wp-cron.php
drwxr-xr-x 18 www-data www-data 8,0K Feb 6 2018 wp-includes
-rw-r--r-- 1 www-data www-data 2,4K Nov 21 2016 wp-links-opml.php
-rw-r--r-- 1 www-data www-data 3,3K Aug 22 2017 wp-load.php
-rw-r--r-- 1 www-data www-data 36K Mai 8 2018 wp-login.php
-rw-r--r-- 1 www-data www-data 7,9K Jän 11 2017 wp-mail.php
-rw-r--r-- 1 www-data www-data 16K Okt 4 2017 wp-settings.php
-rw-r--r-- 1 www-data www-data 30K Okt 18 2017 wp-signup.php
-rw-r--r-- 1 www-data www-data 4,6K Okt 24 2017 wp-trackback.php
-rw-r--r-- 1 www-data www-data 3,0K Aug 31 2016 xmlrpc.php
Both machines (node1
and node2
) have a /testdir/vol-001
where Syncthing is configured to sync in both directions. On both machines syncthing-acl is running and watching /testdir
. The .acls
is in `/testdir/.acls'.
-
Now I start with copiing the WordPress installation into node1 sync dir, i.e.:
-
cp -aT /testsrc/wordpress /testdir/vol-001
-
-
Syncthing and syncthing-acl are both starting their work:
- On
node2
files and folders appear withroot:root
as Syncthing runs asroot
- At some point the permissions on
node2
are getting updated - which is fine :-) - BUT at some point the permissions on
node1
start changing too! They get change toroot:root
- I guess syncthing-acl found those new files on node2 created with
root:root
and writes this information to its.acls
direcotry which is synced back to node1... At this point we have messed up the original permissions.
- I guess syncthing-acl found those new files on node2 created with
- On
This is how it looks on node1 after sync has finished:
drwxr-xr-x 6 www-data www-data 4,0K Dez 2 21:33 .
drwxr-xr-x 104 root root 4,0K Dez 3 14:40 ..
-rw-r--r-- 1 www-data www-data 296 Mai 9 2018 .htaccess
-rw-r--r-- 1 root root 418 Sep 25 2013 index.php
-rw-r--r-- 1 root root 20K Mai 8 2018 license.txt
-rw-r--r-- 1 www-data www-data 8,6K Mai 8 2018 liesmich.html
drwx------ 2 root root 4,0K Mai 8 2018 lost+found
-rw-r--r-- 1 root root 7,3K Mai 8 2018 readme.html
-rw-r--r-- 1 root root 5,4K Mai 8 2018 wp-activate.php
drwxr-xr-x 9 www-data www-data 4,0K Feb 6 2018 wp-admin
-rw-r--r-- 1 root root 364 Dez 19 2015 wp-blog-header.php
-rw-r--r-- 1 www-data www-data 1,6K Aug 29 2016 wp-comments-post.php
-rw-r--r-- 1 www-data www-data 3,2K Dez 2 21:33 wp-config.php
-rw-r--r-- 1 root root 3,6K Dez 2 21:33 wp-config-sample.php
drwxr-xr-x 7 www-data www-data 4,0K Dez 2 23:11 wp-content
-rw-r--r-- 1 www-data www-data 3,6K Aug 20 2017 wp-cron.php
drwxr-xr-x 18 www-data www-data 12K Feb 6 2018 wp-includes
-rw-r--r-- 1 www-data www-data 2,4K Nov 21 2016 wp-links-opml.php
-rw-r--r-- 1 www-data www-data 3,3K Aug 22 2017 wp-load.php
-rw-r--r-- 1 root root 36K Mai 8 2018 wp-login.php
-rw-r--r-- 1 www-data www-data 7,9K Jän 11 2017 wp-mail.php
-rw-r--r-- 1 www-data www-data 16K Okt 4 2017 wp-settings.php
-rw-r--r-- 1 www-data www-data 30K Okt 18 2017 wp-signup.php
-rw-r--r-- 1 root root 4,6K Okt 24 2017 wp-trackback.php
-rw-r--r-- 1 root root 3,0K Aug 31 2016 xmlrpc.php
And here is node2:
drwxr-xr-x 6 www-data www-data 4,0K Dez 3 15:30 .
drwxr-xr-x 104 root root 4,0K Dez 3 14:40 ..
-rw-r--r-- 1 www-data www-data 296 Mai 9 2018 .htaccess
-rw-r--r-- 1 root root 418 Sep 25 2013 index.php
-rw-r--r-- 1 root root 20K Mai 8 2018 license.txt
-rw-r--r-- 1 www-data www-data 8,6K Mai 8 2018 liesmich.html
drwx------ 2 root root 4,0K Dez 3 15:18 lost+found
-rw-r--r-- 1 root root 7,3K Mai 8 2018 readme.html
-rw-r--r-- 1 root root 5,4K Mai 8 2018 wp-activate.php
drwxr-xr-x 9 root root 4,0K Dez 3 15:30 wp-admin
-rw-r--r-- 1 root root 364 Dez 19 2015 wp-blog-header.php
-rw-r--r-- 1 www-data www-data 1,6K Aug 29 2016 wp-comments-post.php
-rw-r--r-- 1 www-data www-data 3,2K Dez 2 21:33 wp-config.php
-rw-r--r-- 1 root root 3,6K Dez 2 21:33 wp-config-sample.php
drwxr-xr-x 7 root root 4,0K Dez 3 15:28 wp-content
-rw-r--r-- 1 www-data www-data 3,6K Aug 20 2017 wp-cron.php
drwxr-xr-x 18 root root 12K Dez 3 15:30 wp-includes
-rw-r--r-- 1 www-data www-data 2,4K Nov 21 2016 wp-links-opml.php
-rw-r--r-- 1 www-data www-data 3,3K Aug 22 2017 wp-load.php
-rw-r--r-- 1 root root 36K Mai 8 2018 wp-login.php
-rw-r--r-- 1 www-data www-data 7,9K Jän 11 2017 wp-mail.php
-rw-r--r-- 1 www-data www-data 16K Okt 4 2017 wp-settings.php
-rw-r--r-- 1 www-data www-data 30K Okt 18 2017 wp-signup.php
-rw-r--r-- 1 root root 4,6K Okt 24 2017 wp-trackback.php
-rw-r--r-- 1 root root 3,0K Aug 31 2016 xmlrpc.php
If I do the test again from scratch - other files or folders would be root:root
- but unfortunately it never works as expected :)
Your ToDo states:
-
Race conditions ? May Occur, but unknown.
I think this is a use case where such a race conditions occur.
Do you have an idea or possible workaround to fix this problem?
Best regards Andreas
Hi Andreas,
To be honest, Ive not been using this for a while, although can still see the need.. and will help as much as possible.
There was a 'jitter' value, to look for such conditions - are the two machines time synced ( to to within the 'jitter' value - time delta+inotify time + syncthing-acl run time + syncthing transfer time < jiitter time )).
It seems that the inotify must be triggering on node1, for a chmod/chown change - which it shouldnt do.
can I suggest you try increasing the Jitter, restarting the syncthing-acl on both machines ( which causes a resync ).. and ensure its 'stable'
there is also a debug flag.
I did have some success running this for a long time - but havnt in recent OS releases ( so my next port of call would be to check inotify and that the flags/triggers havnt changed )...
Really this needs tidying into a perl script or something..
Happy to help where I can, but do have limited debug capability at this time.
G
On 03/12/2018 15:29, Andreas wrote:
Hi idistech,
thanks for providing this script.
On the first sight everything looked good, but after doing some tests in real life I'm constantly running into a race condition where the source folders permissions get changed while sync is still in progress.
I'm trying to use Syncthing to keep Kubernetes Persistent Volumens in sync.
Here is my test case:
|node1| has a demo WordPress (about 6k files + directories) installation unter |/testsrc/wordpress|, which looks like:
|drwxr-xr-x 6 www-data www-data 1,0K Dez 2 21:33 . drwxr-x--- 12 root root 4,0K Dez 2 21:33 .. -rw-r--r-- 1 www-data www-data 296 Mai 9 2018 .htaccess -rw-r--r-- 1 www-data www-data 418 Sep 25 2013 index.php -rw-r--r-- 1 www-data www-data 20K Mai 8 2018 license.txt -rw-r--r-- 1 www-data www-data 8,6K Mai 8 2018 liesmich.html drwx------ 2 root root 12K Mai 8 2018 lost+found -rw-r--r-- 1 www-data www-data 7,3K Mai 8 2018 readme.html -rw-r--r-- 1 www-data www-data 5,4K Mai 8 2018 wp-activate.php drwxr-xr-x 9 www-data www-data 4,0K Feb 6 2018 wp-admin -rw-r--r-- 1 www-data www-data 364 Dez 19 2015 wp-blog-header.php -rw-r--r-- 1 www-data www-data 1,6K Aug 29 2016 wp-comments-post.php -rw-r--r-- 1 www-data www-data 3,2K Dez 2 21:33 wp-config.php -rw-r--r-- 1 www-data www-data 3,6K Dez 2 21:33 wp-config-sample.php drwxr-xr-x 7 www-data www-data 1,0K Dez 2 23:11 wp-content -rw-r--r-- 1 www-data www-data 3,6K Aug 20 2017 wp-cron.php drwxr-xr-x 18 www-data www-data 8,0K Feb 6 2018 wp-includes -rw-r--r-- 1 www-data www-data 2,4K Nov 21 2016 wp-links-opml.php -rw-r--r-- 1 www-data www-data 3,3K Aug 22 2017 wp-load.php -rw-r--r-- 1 www-data www-data 36K Mai 8 2018 wp-login.php -rw-r--r-- 1 www-data www-data 7,9K Jän 11 2017 wp-mail.php -rw-r--r-- 1 www-data www-data 16K Okt 4 2017 wp-settings.php -rw-r--r-- 1 www-data www-data 30K Okt 18 2017 wp-signup.php -rw-r--r-- 1 www-data www-data 4,6K Okt 24 2017 wp-trackback.php -rw-r--r-- 1 www-data www-data 3,0K Aug 31 2016 xmlrpc.php |
Both machines (|node1| and |node2|) have a |/testdir/vol-001| where Syncthing is configured to sync in both directions. On both machines syncthing-acl is running and watching |/testdir|. The |.acls| is in `/testdir/.acls'.
Now I start with copiing the WordPress installation into node1 sync dir, i.e.: o |cp -aT /testsrc/wordpress /testdir/vol-001|
Syncthing and syncthing-acl are both starting their work: o On |node2| files and folders appear with |root:root| as Syncthing runs as |root| o At some point the permissions on |node2| are getting updated - which is fine :-) o BUT at some point the permissions on |node1| start changing too! They get change to |root:root| + I guess syncthing-acl found those new files on node2 created with |root:root| and writes this information to its |.acls| direcotry which is synced back to node1... At this point we have messed up the original permissions.
This is how it looks on node1 after sync has finished:
|drwxr-xr-x 6 www-data www-data 4,0K Dez 2 21:33 . drwxr-xr-x 104 root root 4,0K Dez 3 14:40 .. -rw-r--r-- 1 www-data www-data 296 Mai 9 2018 .htaccess -rw-r--r-- 1 root root 418 Sep 25 2013 index.php -rw-r--r-- 1 root root 20K Mai 8 2018 license.txt -rw-r--r-- 1 www-data www-data 8,6K Mai 8 2018 liesmich.html drwx------ 2 root root 4,0K Mai 8 2018 lost+found -rw-r--r-- 1 root root 7,3K Mai 8 2018 readme.html -rw-r--r-- 1 root root 5,4K Mai 8 2018 wp-activate.php drwxr-xr-x 9 www-data www-data 4,0K Feb 6 2018 wp-admin -rw-r--r-- 1 root root 364 Dez 19 2015 wp-blog-header.php -rw-r--r-- 1 www-data www-data 1,6K Aug 29 2016 wp-comments-post.php -rw-r--r-- 1 www-data www-data 3,2K Dez 2 21:33 wp-config.php -rw-r--r-- 1 root root 3,6K Dez 2 21:33 wp-config-sample.php drwxr-xr-x 7 www-data www-data 4,0K Dez 2 23:11 wp-content -rw-r--r-- 1 www-data www-data 3,6K Aug 20 2017 wp-cron.php drwxr-xr-x 18 www-data www-data 12K Feb 6 2018 wp-includes -rw-r--r-- 1 www-data www-data 2,4K Nov 21 2016 wp-links-opml.php -rw-r--r-- 1 www-data www-data 3,3K Aug 22 2017 wp-load.php -rw-r--r-- 1 root root 36K Mai 8 2018 wp-login.php -rw-r--r-- 1 www-data www-data 7,9K Jän 11 2017 wp-mail.php -rw-r--r-- 1 www-data www-data 16K Okt 4 2017 wp-settings.php -rw-r--r-- 1 www-data www-data 30K Okt 18 2017 wp-signup.php -rw-r--r-- 1 root root 4,6K Okt 24 2017 wp-trackback.php -rw-r--r-- 1 root root 3,0K Aug 31 2016 xmlrpc.php |
And here is node2:
|drwxr-xr-x 6 www-data www-data 4,0K Dez 3 15:30 . drwxr-xr-x 104 root root 4,0K Dez 3 14:40 .. -rw-r--r-- 1 www-data www-data 296 Mai 9 2018 .htaccess -rw-r--r-- 1 root root 418 Sep 25 2013 index.php -rw-r--r-- 1 root root 20K Mai 8 2018 license.txt -rw-r--r-- 1 www-data www-data 8,6K Mai 8 2018 liesmich.html drwx------ 2 root root 4,0K Dez 3 15:18 lost+found -rw-r--r-- 1 root root 7,3K Mai 8 2018 readme.html -rw-r--r-- 1 root root 5,4K Mai 8 2018 wp-activate.php drwxr-xr-x 9 root root 4,0K Dez 3 15:30 wp-admin -rw-r--r-- 1 root root 364 Dez 19 2015 wp-blog-header.php -rw-r--r-- 1 www-data www-data 1,6K Aug 29 2016 wp-comments-post.php -rw-r--r-- 1 www-data www-data 3,2K Dez 2 21:33 wp-config.php -rw-r--r-- 1 root root 3,6K Dez 2 21:33 wp-config-sample.php drwxr-xr-x 7 root root 4,0K Dez 3 15:28 wp-content -rw-r--r-- 1 www-data www-data 3,6K Aug 20 2017 wp-cron.php drwxr-xr-x 18 root root 12K Dez 3 15:30 wp-includes -rw-r--r-- 1 www-data www-data 2,4K Nov 21 2016 wp-links-opml.php -rw-r--r-- 1 www-data www-data 3,3K Aug 22 2017 wp-load.php -rw-r--r-- 1 root root 36K Mai 8 2018 wp-login.php -rw-r--r-- 1 www-data www-data 7,9K Jän 11 2017 wp-mail.php -rw-r--r-- 1 www-data www-data 16K Okt 4 2017 wp-settings.php -rw-r--r-- 1 www-data www-data 30K Okt 18 2017 wp-signup.php -rw-r--r-- 1 root root 4,6K Okt 24 2017 wp-trackback.php -rw-r--r-- 1 root root 3,0K Aug 31 2016 xmlrpc.php |
If I do the test again from scratch - other files or folders would be |root:root| - but unfortunately it never works as expected :)
Your ToDo states:
- |Race conditions ? May Occur, but unknown.|
I think this is a use case where such a race conditions occur.
Do you have an idea or possible workaround to fix this problem?
Best regards Andreas
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/idistech/syncthing-acl/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ7stP0FjebpnjCo6_cK2xSJnskd6yVpks5u1UN3gaJpZM4Y-0bB.
-- signature
Gary Seymour
CEO Viewdeck Consulting Limited www.viewdeck.com https://www.viewdeck.com Mob : +44 (0)7768 116229 Tel : +44 (0) 203 384 3350 Fax : +44 (0) 207 990 9455 CJSM : [email protected] mailto:[email protected] 3rd Floor, 207 Regent Street, London, W1B 3HH
This email is from Viewdeck. The email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. Any unauthorised dissemination or copying of this email or its attachments, and any use or disclosure of any information contained in them, is strictly prohibited and may be illegal. Although this email and any attachments are believed to be free of any virus or other defect which might affect any computer system into which they are received or opened it is the responsibility of the recipient to ensure they are virus free and no responsibility is accepted by Viewdeck for any loss or damage arising in any way from receipt or use thereof. If you have received the email in error please notify [email protected] or telephone +44 (0) 203 384 3350 and delete it from your system. Any views expressed by an individual within this email do not necessarily reflect the views of Viewdeck. Any emails that you send to Viewdeck personnel may be monitored by systems or persons other than the named communicant, for the purposes of ascertaining whether the communication complies with the law and the company's policies.
Hey Gary,
thanks for your fast response! The two machines are in timesync! I give it a try with a JITTER set to 3600 seconds (sync speed of ACLs is not too time critical in my setup) and I'll report back later.
About the OS: I'm on Ubuntu 16.04 and I'll be soon on 18.04.
To make it work on Ubuntu 16.04. I had to additionally apt-get install bc
and create a systemd unit-file, as in this repro there is only a upstart config. My unit looks like:
sudo touch /etc/systemd/system/[email protected]
sudo chmod 644 /etc/systemd/system/[email protected]
sudo vim /etc/systemd/system/[email protected]
[Unit]
Description=Syncthing ACL - for %I
After=network.target
[Service]
User=%i
ExecStart=/usr/local/bin/syncthing-acl.sh
Restart=on-failure
SuccessExitStatus=3 4
RestartForceExitStatus=3 4
[Install]
WantedBy=multi-user.target
sudo systemctl enable [email protected]
sudo systemctl start [email protected]
Really this needs tidying into a perl script or something..
As far as I've seen they've implemented syncing file permissions on SyncThing-side in the meantime. So setfacls
shouldn't be needed anymore, just the getfacls
in combination with chown
...
Best Regards Andreas
Hi,
I'm back with test results.
As increasing FILEJITTER
didn't help I tried to get a minimal test case with corresponding log files.
I can reproduce the problem with only a few files. It seems that the ACL-files get in conflict state:
The test files have the ownership www-data:www-data
:
root@node1:# ls -lah /testsrc/wordpress/wp-l*
-rw-r--r-- 1 www-data www-data 2,4K Nov 21 2016 /testsrc/wordpress/wp-links-opml.php
-rw-r--r-- 1 www-data www-data 3,3K Aug 22 2017 /testsrc/wordpress/wp-load.php
-rw-r--r-- 1 www-data www-data 36K Mai 8 2018 /testsrc/wordpress/wp-login.php
I copy these 3 files to the syned directory on node1
root@node1:# /bin/cp -a /testsrc/wordpress/wp-l* /pv/sc-hdd/vol-044/
Syncthing shows the following changelog:
Gerät Aktion Typ Ordner Pfad Zeit
node1 modified file sc-hdd .acls/vol-044/wp-links-opml.php 2018-12-03 21:34:31
node1 modified file sc-hdd vol-044/wp-load.php 2018-12-03 21:34:31
node1 modified file sc-hdd vol-044/wp-login.php 2018-12-03 21:34:31
node1 modified file sc-hdd .acls/vol-044/wp-login.php 2018-12-03 21:34:31
node1 modified file sc-hdd vol-044/wp-links-opml.php 2018-12-03 21:34:31
node1 modified file sc-hdd .acls/vol-044/wp-load.php 2018-12-03 21:34:31
node2 modified file sc-hdd .acls/vol-044/wp-links-opml.php 2018-12-03 21:34:33
node2 modified file sc-hdd .acls/vol-044/wp-load.php 2018-12-03 21:34:33
node2 modified file sc-hdd .acls/vol-044/wp-login.php 2018-12-03 21:34:33
node1 added file sc-hdd .acls/vol-044/wp-links-opml.sync-conflict-20181203-213433-ZXAZ2BO.php 2018-12-03 21:34:41
node1 added file sc-hdd .acls/vol-044/wp-login.sync-conflict-20181203-213433-ZXAZ2BO.php 2018-12-03 21:34:41
node1 modified file sc-hdd .acls/vol-044/wp-load.php 2018-12-03 21:34:41
node1 added file sc-hdd .acls/vol-044/wp-load.sync-conflict-20181203-213433-ZXAZ2BO.php 2018-12-03 21:34:41
node1 modified file sc-hdd .acls/vol-044/wp-login.php 2018-12-03 21:34:41
Here you can see the conflicts. It looks like node2 changes the acl file too instead of just propagating the changes to the referred files?
I've enabled the DEBUG log which you can find here, maybe you are able to identify a problem there: https://pastebin.com/tubEDt86
Finaly it ends up with root:root
on both nodes instead www-data:www-data
node1
ls -lah /pv/sc-hdd/vol-044/
-rw-r--r-- 1 root root 2,4K Nov 21 2016 wp-links-opml.php
-rw-r--r-- 1 root root 3,3K Aug 22 2017 wp-load.php
-rw-r--r-- 1 root root 36K Mai 8 2018 wp-login.php
node2
ls -lah /pv/sc-hdd/vol-044/
-rw-r--r-- 1 root root 2,4K Nov 21 2016 wp-links-opml.php
-rw-r--r-- 1 root root 3,3K Aug 22 2017 wp-load.php
-rw-r--r-- 1 root root 36K Mai 8 2018 wp-login.php
Best Regards and many thanks in advance Andreas
ok - ill try and have a look ...
best
On 03/12/2018 21:29, Andreas wrote:
Hi,
I'm back with test results. As increasing |FILEJITTER| didn't help I tried to get a minimal test case with corresponding log files. I can reproduce the problem with only a few files. It seems that the ACL-files get in conflict state:
The test files have the ownership |www-data:www-data|:
root@node1:# ls -lah /testsrc/wordpress/wp-l* -rw-r--r-- 1 www-data www-data 2,4K Nov 21 2016 /testsrc/wordpress/wp-links-opml.php -rw-r--r-- 1 www-data www-data 3,3K Aug 22 2017 /testsrc/wordpress/wp-load.php -rw-r--r-- 1 www-data www-data 36K Mai 8 2018 /testsrc/wordpress/wp-login.php
I copy these 3 files to the syned directory on node1
root@node1:# /bin/cp -a /testsrc/wordpress/wp-l* /pv/sc-hdd/vol-044/
Syncthing shows the following changelog:
|Gerät Aktion Typ Ordner Pfad Zeit node1 modified file sc-hdd .acls/vol-044/wp-links-opml.php 2018-12-03 21:34:31 node1 modified file sc-hdd vol-044/wp-load.php 2018-12-03 21:34:31 node1 modified file sc-hdd vol-044/wp-login.php 2018-12-03 21:34:31 node1 modified file sc-hdd .acls/vol-044/wp-login.php 2018-12-03 21:34:31 node1 modified file sc-hdd vol-044/wp-links-opml.php 2018-12-03 21:34:31 node1 modified file sc-hdd .acls/vol-044/wp-load.php 2018-12-03 21:34:31 node2 modified file sc-hdd .acls/vol-044/wp-links-opml.php 2018-12-03 21:34:33 node2 modified file sc-hdd .acls/vol-044/wp-load.php 2018-12-03 21:34:33 node2 modified file sc-hdd .acls/vol-044/wp-login.php 2018-12-03 21:34:33 node1 added file sc-hdd .acls/vol-044/wp-links-opml.sync-conflict-20181203-213433-ZXAZ2BO.php 2018-12-03 21:34:41 node1 added file sc-hdd .acls/vol-044/wp-login.sync-conflict-20181203-213433-ZXAZ2BO.php 2018-12-03 21:34:41 node1 modified file sc-hdd .acls/vol-044/wp-load.php 2018-12-03 21:34:41 node1 added file sc-hdd .acls/vol-044/wp-load.sync-conflict-20181203-213433-ZXAZ2BO.php 2018-12-03 21:34:41 node1 modified file sc-hdd .acls/vol-044/wp-login.php 2018-12-03 21:34:41 |
Here you can see the conflicts. It looks like node2 changes the acl file too instead of just propagating the changes to the referred files?
I've enabled the DEBUG log which you can find here, maybe you are able to identify a problem there: https://pastebin.com/tubEDt86
Finaly it ends up with |root:root| on both nodes instead |www-data:www-data|
|node1 ls -lah /pv/sc-hdd/vol-044/ -rw-r--r-- 1 root root 2,4K Nov 21 2016 wp-links-opml.php -rw-r--r-- 1 root root 3,3K Aug 22 2017 wp-load.php -rw-r--r-- 1 root root 36K Mai 8 2018 wp-login.php node2 ls -lah /pv/sc-hdd/vol-044/ -rw-r--r-- 1 root root 2,4K Nov 21 2016 wp-links-opml.php -rw-r--r-- 1 root root 3,3K Aug 22 2017 wp-load.php -rw-r--r-- 1 root root 36K Mai 8 2018 wp-login.php |
Best Regards and many thanks in advance Andreas
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/idistech/syncthing-acl/issues/2#issuecomment-443877373, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ7stCLN466yTXUOcm3FayMAtc36WcrIks5u1ZfTgaJpZM4Y-0bB.
-- signature
Gary Seymour
CEO Viewdeck Consulting Limited www.viewdeck.com https://www.viewdeck.com Mob : +44 (0)7768 116229 Tel : +44 (0) 203 384 3350 Fax : +44 (0) 207 990 9455 CJSM : [email protected] mailto:[email protected] 3rd Floor, 207 Regent Street, London, W1B 3HH
This email is from Viewdeck. The email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. Any unauthorised dissemination or copying of this email or its attachments, and any use or disclosure of any information contained in them, is strictly prohibited and may be illegal. Although this email and any attachments are believed to be free of any virus or other defect which might affect any computer system into which they are received or opened it is the responsibility of the recipient to ensure they are virus free and no responsibility is accepted by Viewdeck for any loss or damage arising in any way from receipt or use thereof. If you have received the email in error please notify [email protected] or telephone +44 (0) 203 384 3350 and delete it from your system. Any views expressed by an individual within this email do not necessarily reflect the views of Viewdeck. Any emails that you send to Viewdeck personnel may be monitored by systems or persons other than the named communicant, for the purposes of ascertaining whether the communication complies with the law and the company's policies.
Hey Gary,
I did some further testing.
I'm pretty sure that the Syncthing Permission Features is interfering with your setfacl
.
First try:
- comment out all
setfacl
in your code and remove theattrib
parameter frominotifywait
This look promising at the first sight... the test with 3 files worked... but after moving the whole WordPress folder, there were still some files/folders which got reflected back to root:root
Second try:
- set
ignorePerms="true"
in Syncthing for this folder - reenable setfacl and attrib in you script
In this scenario I got the best results.
But I'm still running in to sync conflicts within the ACL's directory:
node2:~$ ls /pv/sc-hdd/.acls/vol-044/wp-includes_folder* -lah
-rw-r--r-- 1 root root 108 Dez 6 08:22 /pv/sc-hdd/.acls/vol-044/wp-includes_folder
-rw-r--r-- 1 root root 100 Dez 6 08:22 /pv/sc-hdd/.acls/vol-044/wp-includes_folder.sync-conflict-20181206-082244-PQOWJ5X
And those sync-conflicts correspond to the files/folders with the wrong permissions.
Any ideas?
BR Andreas
Hi,
back again with hopefully interesting news:
Ultra simple test case with one file.
CASE1 did succeed ending up having the files replicated as www-data:www-data
to node2
CASE2 failed ending up in having the file root:root
on both sides
This tests just run after each other. I delete the file, wait until everything is synced, than copy it into the sync folder and wait... I can replicated it. Sometimes it works, often not.
Let's compare the logs:
- CASE1: Sucessful Syncthing Log
node1 modified file sc-hdd vol-044/wp-login.php 2018-12-06 10:40:12
node1 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:40:12
node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:40:22
- CASE1: Failed Syncthing Log
node1 modified file sc-hdd vol-044/wp-login.php 2018-12-06 10:41:56
node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:41:56
node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:41:56
node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:41:56
node1 added file acl sc-hdd/vol-044/wp-login.sync-conflict-20181206-104156-ZXAZ2BO.php 2018-12-06 10:42:06
node1 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:42:06
- CASE1: node1 acl debug
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044/wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/.acls/sc-hdd/vol-044
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: <13>Dec 6 10:40:02 syncthing-acl: FILE Event : Create ACL: Change Event, No ACLFile No Change to RepFile : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=CREATE
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044/wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/.acls/sc-hdd/vol-044
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: <13>Dec 6 10:40:02 syncthing-acl: FILE Event : Touch ACL: Change Event, ACLFile Identical to RepFile : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MODIFY
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044/wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/.acls/sc-hdd/vol-044
Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: <13>Dec 6 10:40:02 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB
- CASE2: node1 acl debug
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Change File: Change Event, ACLFile Newer and Different : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MOVED_TO
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl[11547]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl[11567]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB
- CASE1: node2 acl debug
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Change File: Change Event, ACLFile Newer and Different : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MOVED_TO
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl[11547]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044
Dez 06 10:40:12 node2 syncthing-acl[11567]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB
Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB
- CASE2: node2 acl debug
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: wp-login.php
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:41:56 syncthing-acl: FILE Event : Create ACL: Change Event, No ACLFile No Change to RepFile : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MOVED_TO
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: wp-login.php
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044
Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:41:56 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB
Does this help?
Problem seems, that acl
file is modifed at the very same time on both servers in CASE2.
Hi Andreas,
Will get to this as soon as I can ;-) Sorry , somethings this morning to resolve.
Im not active on this code base, so if you want to join and help take over, then Id be very happy - I can add you as a moderator/owner
Thanks
On 06/12/2018 09:55, Andreas wrote:
Hi,
back again with hopefully interesting news:
Ultra simple test case with one file. CASE1 did succeed ending up having the files replicated as |www-data:www-data| to node2 CASE2 failed ending up in having the file |root:root| on both sides
This tests just run after each other. I delete the file, wait until everything is synced, than copy it into the sync folder and wait... I can replicated it. Sometimes it works, often not.
Let's compare the logs:
- CASE1: Sucessful Syncthing Log
|node1 modified file sc-hdd vol-044/wp-login.php 2018-12-06 10:40:12 node1 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:40:12 node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:40:22 |
- CASE1: Failed Syncthing Log
|node1 modified file sc-hdd vol-044/wp-login.php 2018-12-06 10:41:56 node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:41:56 node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:41:56 node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:41:56 node1 added file acl sc-hdd/vol-044/wp-login.sync-conflict-20181206-104156-ZXAZ2BO.php 2018-12-06 10:42:06 node1 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:42:06 |
- CASE1: node1 acl debug
|Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: <13>Dec 6 10:40:02 syncthing-acl: FILE Event : Create ACL: Change Event, No ACLFile No Change to RepFile : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=CREATE Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: <13>Dec 6 10:40:02 syncthing-acl: FILE Event : Touch ACL: Change Event, ACLFile Identical to RepFile : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MODIFY Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: <13>Dec 6 10:40:02 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB |
- CASE2: node1 acl debug
|Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Change File: Change Event, ACLFile Newer and Different : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MOVED_TO Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl[11547]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl[11567]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB |
- CASE1: node2 acl debug
|Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Change File: Change Event, ACLFile Newer and Different : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MOVED_TO Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl[11547]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl[11567]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB |
- CASE2: node2 acl debug
|Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:41:56 syncthing-acl: FILE Event : Create ACL: Change Event, No ACLFile No Change to RepFile : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MOVED_TO Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:41:56 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB |
Does this help?
Problem seems, that |acl| file is modifed at the very same time on both servers in CASE2.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/idistech/syncthing-acl/issues/2#issuecomment-444814670, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ7stMG-2nRC85tlFKMaVdhnoY-YIkdqks5u2OmYgaJpZM4Y-0bB.
-- signature
Gary Seymour
CEO Viewdeck Consulting Limited www.viewdeck.com https://www.viewdeck.com Mob : +44 (0)7768 116229 Tel : +44 (0) 203 384 3350 Fax : +44 (0) 207 990 9455 CJSM : [email protected] mailto:[email protected] 3rd Floor, 207 Regent Street, London, W1B 3HH
This email is from Viewdeck. The email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. Any unauthorised dissemination or copying of this email or its attachments, and any use or disclosure of any information contained in them, is strictly prohibited and may be illegal. Although this email and any attachments are believed to be free of any virus or other defect which might affect any computer system into which they are received or opened it is the responsibility of the recipient to ensure they are virus free and no responsibility is accepted by Viewdeck for any loss or damage arising in any way from receipt or use thereof. If you have received the email in error please notify [email protected] or telephone +44 (0) 203 384 3350 and delete it from your system. Any views expressed by an individual within this email do not necessarily reflect the views of Viewdeck. Any emails that you send to Viewdeck personnel may be monitored by systems or persons other than the named communicant, for the purposes of ascertaining whether the communication complies with the law and the company's policies.
Looks like it needs another 'jitter' race condition check.
My test and operational environments for this was always over a 100kms apart and on 2 systems that werent the quickest ( single proc etc ).. and syncthing was always a little slow to detect and fire, this might be the issue...
Will try and get back when I can.
On 06/12/2018 09:55, Andreas wrote:
Hi,
back again with hopefully interesting news:
Ultra simple test case with one file. CASE1 did succeed ending up having the files replicated as |www-data:www-data| to node2 CASE2 failed ending up in having the file |root:root| on both sides
This tests just run after each other. I delete the file, wait until everything is synced, than copy it into the sync folder and wait... I can replicated it. Sometimes it works, often not.
Let's compare the logs:
- CASE1: Sucessful Syncthing Log
|node1 modified file sc-hdd vol-044/wp-login.php 2018-12-06 10:40:12 node1 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:40:12 node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:40:22 |
- CASE1: Failed Syncthing Log
|node1 modified file sc-hdd vol-044/wp-login.php 2018-12-06 10:41:56 node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:41:56 node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:41:56 node2 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:41:56 node1 added file acl sc-hdd/vol-044/wp-login.sync-conflict-20181206-104156-ZXAZ2BO.php 2018-12-06 10:42:06 node1 modified file acl sc-hdd/vol-044/wp-login.php 2018-12-06 10:42:06 |
- CASE1: node1 acl debug
|Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: <13>Dec 6 10:40:02 syncthing-acl: FILE Event : Create ACL: Change Event, No ACLFile No Change to RepFile : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=CREATE Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: <13>Dec 6 10:40:02 syncthing-acl: FILE Event : Touch ACL: Change Event, ACLFile Identical to RepFile : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MODIFY Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:02 node1 syncthing-acl.sh[4772]: <13>Dec 6 10:40:02 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB |
- CASE2: node1 acl debug
|Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Change File: Change Event, ACLFile Newer and Different : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MOVED_TO Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl[11547]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl[11567]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB |
- CASE1: node2 acl debug
|Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Change File: Change Event, ACLFile Newer and Different : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MOVED_TO Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl[11547]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:40:12 node2 syncthing-acl[11567]: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB Dez 06 10:40:12 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:40:12 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB |
- CASE2: node2 acl debug
|Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:41:56 syncthing-acl: FILE Event : Create ACL: Change Event, No ACLFile No Change to RepFile : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=MOVED_TO Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: sc-hdd/vol-044 Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/sc-hdd/vol-044/wp-login.php Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: /pv/.acls/sc-hdd/vol-044 Dez 06 10:41:56 node2 syncthing-acl.sh[17039]: <13>Dec 6 10:41:56 syncthing-acl: FILE Event : Create/Modify ACLFile, ACL Has Changed : ACLFile=/pv/.acls/sc-hdd/vol-044/wp-login.php REPFile=/pv/sc-hdd/vol-044/wp-login.php Filename=/pv/sc-hdd/vol-044/wp-login.php Events=ATTRIB |
Does this help?
Problem seems, that |acl| file is modifed at the very same time on both servers in CASE2.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/idistech/syncthing-acl/issues/2#issuecomment-444814670, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ7stMG-2nRC85tlFKMaVdhnoY-YIkdqks5u2OmYgaJpZM4Y-0bB.
-- signature
Gary Seymour
CEO Viewdeck Consulting Limited www.viewdeck.com https://www.viewdeck.com Mob : +44 (0)7768 116229 Tel : +44 (0) 203 384 3350 Fax : +44 (0) 207 990 9455 CJSM : [email protected] mailto:[email protected] 3rd Floor, 207 Regent Street, London, W1B 3HH
This email is from Viewdeck. The email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. Any unauthorised dissemination or copying of this email or its attachments, and any use or disclosure of any information contained in them, is strictly prohibited and may be illegal. Although this email and any attachments are believed to be free of any virus or other defect which might affect any computer system into which they are received or opened it is the responsibility of the recipient to ensure they are virus free and no responsibility is accepted by Viewdeck for any loss or damage arising in any way from receipt or use thereof. If you have received the email in error please notify [email protected] or telephone +44 (0) 203 384 3350 and delete it from your system. Any views expressed by an individual within this email do not necessarily reflect the views of Viewdeck. Any emails that you send to Viewdeck personnel may be monitored by systems or persons other than the named communicant, for the purposes of ascertaining whether the communication complies with the law and the company's policies.