Request: syncthing-inotify

Suggestions for features and software you would like to see in DietPi, goes here.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Request: syncthing-inotify

Post by Fourdee »

Sciamano wrote:I can't see any errors (sorry I can't copy and paste, I hope the attachment is fine anyway).
Yep,service looks good.
Pictures, screenshots, SSH pastes, its all good :)

Remember that DietPi-RAMlog clears logs every 1 hour. So you may need to reboot, then try to recreate the issue in Syncthing, then recheck log file again straight afterwards.

Another option is DietPi-RAMlog mode #2, which backs up logs, before clearing:
http://dietpi.com/phpbb/viewtopic.php?f ... art=20#p68
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Request: syncthing-inotify

Post by Sciamano »

Oh, I forgot about that...
I will try to recreate the problem as soon as I can. Not today for sure, though... We are too busy with the New Year's Eve preparations.
Oh, by the way... Happy New Year, everybody! :)
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Request: syncthing-inotify

Post by Sciamano »

I can't seem to have any valid information in the log. It's always empty, even immediately after I make changes to a synced file.
It really looks like syncthing-inotify does not detect file changes at all.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Request: syncthing-inotify

Post by Sciamano »

I have also tried John's version of the services. Still no go.
I added a file to the shared folder, and syncthing-inotify did not detect it, nor propagated it correctly to the other syncthing nodes.
Since my folder is hosted on a NAS, I'm wondering if this could be a limitation of syncthing and/or inotify, which does not correctly monitor/detect files that are mounted on a NAS.
I will try sharing a real local folder and see if it still fails.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Request: syncthing-inotify

Post by Sciamano »

Ok... That's what I thought.
Local folder syncs correctly.
Mounted folder doesn't.
I guess this is a limitation in syncthing and/or syncthing-inotify :(
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Request: syncthing-inotify

Post by johnvick »

Just tried this and same here.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Request: syncthing-inotify

Post by Sciamano »

That's a real pity... This kind of defeats all the purpose of syncthing-inotify for me :(
Thanks for taking the time to try this.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Request: syncthing-inotify

Post by johnvick »

I'll see if I can find a way round this apparent restriction. Also I have just set up syncthing on a new Orange Pi Zero using Fourdee's method and it works perfectly.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Request: syncthing-inotify

Post by johnvick »

This is what I have found - I have a directory of photos on a QNAP NAS. I have this mounted on an XU4 - /mnt/photos

This is synced to remote server. If I add a file to the QNAP it is not synced.

If I add the file to the same directory but via /mnt/photos - it gets synced instantly.

Obviously syncthing-inotify is watching the XU4 directory not the QNAP directory.

John
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Request: syncthing-inotify

Post by Sciamano »

That's exactly the same behavior I am experiencing.
I guess the only workaround is to set the mounted folders with a high rescan frequency (60 seconds or so) while leaving the native folders managed by inotify. But this, of course, does not reduce the amount of cpu power "consumed" by the board.
Post Reply