0leksandr / sshmirror Goto Github PK
View Code? Open in Web Editor NEWFast, one-directional remote filesystem synchronization client
License: BSD 3-Clause "New" or "Revised" License
Fast, one-directional remote filesystem synchronization client
License: BSD 3-Clause "New" or "Revised" License
For some reason my fs changes are not tracked by sshmirror tool.
once the connection is established and "done" message was written - nothing else happens anymore.
Running the tool with strace shows an output like this every time when I save changes into the file (so the the FS changes seems to be noticed, but it just don't proceed with them)
) = 0
futex(0x5f5bd0, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0xc000200550, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5f5bd0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x5f5bd0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x5f5bd0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x5f5bd0, FUTEX_WAIT_PRIVATE, 0, NULL
Ubuntu 20.04
Linux KUBUNTU 5.8.0-59-generic #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
It looks like on Windows 10 + WSL 1 (when running sshmirror inside WSL) each time when some file was changed - also the "folders" are being received as an "event".
This causes sshmirror to crash as in some cases the root folder is being sent too, and
Line 698 in 875912b
+1
size is outside the allowed bounds.
In my case I was able to solve the issue just by skipping (right before the mentioned code-line) the events if the "folder" is being reported, but I`m wondering what may be the ripple effect for this?
fi, err := os.Stat(event.Name)
if err != nil || fi.IsDir() {
return
}
the current master do not contain the my.go file which is linked through a symlink in the latest commit
linux/amd64
can't load package: package github.com/0leksandr/sshmirror: open /media/k/SSD2/ApacheServer/web/2021/mobymax/sshmirror/my.go: no such file or directory
Build failed for linux/amd64
building the version before this my.go change - works just fine
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.