Closed GoogleCodeExporter closed 9 years ago
The rsync result is in that case error code 12. The same happens when the
target directory doesnt even exist.
I'm not sure if it should keep retrying (forever), or die in a loudly way.
Original comment by axk...@gmail.com
on 6 May 2011 at 5:23
I think it should make a lot of noise. Syslogging to the console and
/var/log/messages is a must.
Additionally, if we can raise an Xdialog if X is present or if we can send an
event somehow to the desktop notification area if a desktop is running, that
would be the best solution. Typically, in our setup we are using it to sync
local folders to NFS mounts and this is a desktop environment. So, the X is
always running and one of gnome or kde is always running.
And I think it should not quit. Because the loss may get much bigger when the
space does become available and the users make more changes, which if the
lsyncd is running would get synced otherwise (and may even sync some of the old
lost changes to file). These are always-on desktop VMs. People don't keeping
poking to see if lsyncd is running or not, and start troubleshooting if its not.
Original comment by dev...@gmail.com
on 6 May 2011 at 5:43
BTW, we will need to flood control the syslog messages if we decide to keep the
lsyncd running.
Original comment by dev...@gmail.com
on 6 May 2011 at 5:48
We can do it that way: error code 12 back to "again". However, on startup, any
"again" condition will result in a fail. (that may be due to full disc, target
directory not there, or network connection not available). It think it should
bail there on startup, since often this "temporal" failures, can easily be
result of misconfiguration, e.g. a typo on the target directory, hostname, etc.
Regarding X window messages, I'll not add that into vanilla Lsyncd. But you can
easily override the collect function of the default config, and import a
Lua-GUI toolkit you like. Or one can write a seperate GUI Application that
watches Lsyncd messages.
Original comment by axk...@gmail.com
on 6 May 2011 at 6:41
This problem should be imho solved in monitoring software. There are few
softwares that will do monitor messages or other (lsyncd.log) given logs and
parse for any nonstandard messages and send them (for example) once a day to
mail. Imho this type of solutions keep things in "standard unix" spirit (many
small specialized programs, each for one task).
Original comment by luva...@gmail.com
on 15 Aug 2011 at 8:48
Changes for upcoming 2.0.5. Any otherwise temporary - retryable error will make
Lsyncd fail on startup unless settings.insist is set. That is because often
enough this "temporal" errors are actually misconfiguration, like the target
directory not be there or such.
Original comment by axk...@gmail.com
on 17 Aug 2011 at 9:46
Changes for upcoming 2.0.5. Any otherwise temporary - retryable error will make
Lsyncd fail on startup unless settings.insist is set. That is because often
enough this "temporal" errors are actually misconfiguration, like the target
directory not be there or such.
Error code 12 is now again marked as "temporal", that is, in normal operation
Lsyncd will keep trying (and have that 1 sync hang) until it eventually will
make it through.
Otherwise I agree with luva... Any further notifications to the user should be
left to other peoples monitoring software.
Original comment by axk...@gmail.com
on 17 Aug 2011 at 9:50
Original issue reported on code.google.com by
dev...@gmail.com
on 5 May 2011 at 11:18