davideuler / lsyncd

Automatically exported from code.google.com/p/lsyncd
GNU General Public License v2.0
0 stars 0 forks source link

lsyncd sometimes dies silently, last log entry: "Normal, Finished a list = 13" #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
please see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638977 for detailed 
information

Original issue reported on code.google.com by jan.ditt...@gmail.com on 23 Aug 2011 at 8:38

GoogleCodeExporter commented 9 years ago
Entries not present in exit_codes table mean the event is considered to be 
finished. I looked at the code, error code #13 should not be anything special 
to Lsyncd, albeit I also would like to know what it actually means for rsync 
when it says that. Normally I also don't see any place in Lsyncd where it dies 
without putting any message about it.

Can you please try to reproduce this error with "-log all" enabled?

Original comment by axk...@gmail.com on 23 Aug 2011 at 8:50

GoogleCodeExporter commented 9 years ago
Could you please CC 638977@bugs.debian.org and 638977-submitter@bugs.debian.org 
for responses to avoid copy and paste?

Kind regards
Jan

The bug submitter added:

Now that I enabled that I notice

...
Aug 24 00:51:11 nova lsyncd: Function,
+Inotify.addWatch(/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/
git/linux-2.6.git
+/objects/01/, (true), (nil), (nil))
Aug 24 00:51:11 nova lsyncd: Inotify,
+addwatch(/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/git/linu
x-2.6.git/objects
+/01/)->-1; err=28:No space left on device
Aug 24 00:51:11 nova lsyncd: Inotify, Unable to add watch
+'/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/git/linux-2.6.gi
t/objects/01/'
Aug 24 00:51:11 nova lsyncd: Function,
+Inotify.addWatch(/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/
git/linux-2.6.git
+/objects/1b/, (true), (nil), (nil))
Aug 24 00:51:11 nova lsyncd: Inotify,
+addwatch(/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/git/linu
x-2.6.git/objects
+/1b/)->-1; err=28:No space left on device
Aug 24 00:51:11 nova lsyncd: Inotify, Unable to add watch
+'/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/git/linux-2.6.gi
t/objects/1b/'
Aug 24 00:51:11 nova lsyncd: Function,
+Inotify.addWatch(/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/
git/linux-2.6.git
+/objects/2b/, (true), (nil), (nil))
Aug 24 00:51:11 nova lsyncd: Inotify,
+addwatch(/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/git/linu
x-2.6.git/objects
+/2b/)->-1; err=28:No space left on device
Aug 24 00:51:11 nova lsyncd: Inotify, Unable to add watch
+'/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/git/linux-2.6.gi
t/objects/2b/'
Aug 24 00:51:11 nova lsyncd: Function,
+Inotify.addWatch(/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/
git/linux-2.6.git
+/objects/be/, (true), (nil), (nil))
Aug 24 00:51:11 nova lsyncd: Inotify,
+addwatch(/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/git/linu
x-2.6.git/objects
+/be/)->-1; err=28:No space left on device
Aug 24 00:51:11 nova lsyncd: Inotify, Unable to add watch
+'/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/git/linux-2.6.gi
t/objects/be/'
Aug 24 00:51:11 nova lsyncd: Function,
+Inotify.addWatch(/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/
git/linux-2.6.git
+/objects/4b/, (true), (nil), (nil))
Aug 24 00:51:11 nova lsyncd: Inotify,
+addwatch(/home/www-data/www.metsahovi.fi/user/lindi/lindi.iki.fi/lindi/git/linu
x-2.6.git/objects
+/4b/)->-1; err=28:No space left on device

...

but surely the disk is not full. Is it hitting some inotify file
descriptor limit?

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/md0              9.2G  1.5G  7.3G  17% /
tmpfs                 2.0G     0  2.0G   0% /lib/init/rw
udev                  2.0G  208K  2.0G   1% /dev
tmpfs                 2.0G     0  2.0G   0% /dev/shm
/dev/md2               99M   23M   71M  25% /boot
/dev/md10             2.7T  893G  1.9T  33% /home

-Timo

Original comment by jan.ditt...@gmail.com on 24 Aug 2011 at 5:43

GoogleCodeExporter commented 9 years ago
Bugsubmitter is watching more directories than his/her 
/proc/sys/filesystem/inotify/max_user_watches allows.

lsyncd-2.0.5-beta has fixed silently dropping these and will die instantly with 
message if that happens.

PS: I don't see how I can add CC's to google projects issue tracker. Please 
tell the bugsubmitter to come here :-)

Original comment by axk...@gmail.com on 24 Aug 2011 at 6:25

GoogleCodeExporter commented 9 years ago
I bumped the limit now, will let you know if this solved the silent 
disappearing of the daemon or not.

PS. The trouble with code.google.com is that you need to be logged in to google 
account which means that everything you do on google sites will associate my 
activites to that account.

Original comment by timo.lin...@gmail.com on 24 Aug 2011 at 9:30

GoogleCodeExporter commented 9 years ago
I doubt this should solve the problem you had before.

PS: Use an anonymous window like some browsers have, or log out after you 
finished. I just like to keep all the issues in one place as well for own 
documentation :-)

Original comment by axk...@gmail.com on 24 Aug 2011 at 9:34

GoogleCodeExporter commented 9 years ago
I looked in the source of rsync, its not absolutely clear when it makes an 
error 13. Typically when it fails to log. Or when the error message exceeds its 
buffers. (I wonder tough, why they decided to drop the message than and not 
print at least what has fit into the buffer)

Original comment by axk...@gmail.com on 26 Aug 2011 at 7:53

GoogleCodeExporter commented 9 years ago

Original comment by axk...@gmail.com on 16 Sep 2011 at 10:13