Hello, i'v tried freevo2 a few days ago but the beacon-daemon crashs while scanning a directory:
2007-11-11 20:00:26,019 [INFO] parser(339): scan <beacon.File /mnt/hdb1/foo/bar/baz/ (type=dir)> (0.014) 2007-11-11 20:00:26,032 [ERROR] __init__(1021): error in socket callback Traceback (most recent call last): File "/usr/lib64/python2.5/site-packages/notifier/nf_generic.py", line 221, in step if not __sockets[ condition ][ sock ]( sock ): File "/usr/lib64/python2.5/site-packages/kaa/notifier/callback.py", line 236, in __call__ return super(WeakCallback, self).__call__(*args, **kwargs) File "/usr/lib64/python2.5/site-packages/kaa/notifier/nf_wrapper.py", line 96, in __call__ ret = super(NotifierCallback, self).__call__(*args, **kwargs) File "/usr/lib64/python2.5/site-packages/kaa/notifier/callback.py", line 168, in __call__ result = cb(*cb_args, **cb_kwargs) File "/usr/lib64/python2.5/site-packages/kaa/inotify/__init__.py", line 199, in _handle_data wd, mask, cookie, size = struct.unpack("LLLL", self._read_buffer[0:16]) File "/usr/lib64/python2.5/struct.py", line 87, in unpack return o.unpack(s) error: unpack requires a string argument of length 32 2007-11-11 20:00:26,042 [INFO] crawl(410): crawler 1 finished; took 57.1 seconds. 2007-11-11 20:00:26,044 [INFO] db(171): *** db.commit 129 items: 0.00143 2007-11-11 20:00:26,046 [INFO] server(191): disconnect client 2007-11-11 20:00:26,048 [INFO] beacon-daemon(280): stop beacon Beacon done. For me that looks like unpack expects a length of 32 on my 64 bit system. If i change the line: wd, mask, cookie, size = struct.unpack("LLLL", self._read_buffer[0:16]) to wd, mask, cookie, size = struct.unpack("LLLL", self._read_buffer[0:32]) it works for me, i guess because inotify returns 32 bit values on my 64 bit system. But i'm not really a coder... Versions: - Freevo, Revision: 10092 - Python 2.5.1 (r251:54863, Nov 7 2007, 05:11:41) [GCC 4.1.1 (Gentoo 4.1.1-r3)] on linux2 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel