Re: Kaa r4410 - trunk/beacon/src/server

Dirk Meyer <[email protected]>
Newsgroups gmane.comp.video.freevo.devel
Message-ID <[email protected]>

On 25.09.2010 17:42, Jason Tackaberry wrote:
> On Fri, 2010-09-24 at 20:05 +0200, Dirk Meyer wrote:
>> It does -- at least for me. It seems to be a new bug to me but
>> causes beacon to crash with a database error (string vs unicode).
>> It took me a long time to trace the bug to inotify and now it
>> works.
> 
> I'm not able to reproduce this.  From what I can see, INotify will 
> always emit filenames as byte strings.

It always provides a unicode string here

> Can you please provide a traceback?  Add something like this at the
> top of Crawler._inotify_event():
> 
> if type(name) != str: import traceback traceback.print_stack()

  File "/usr/bin/beacon-daemon", line 269, in <module>
    kaa.main.run()
  File "/usr/lib/python2.6/site-packages/kaa/base/main.py", line 216, in run
    loop(True)
  File "/usr/lib/python2.6/site-packages/kaa/base/main.py", line 143, in
loop
    notifier.step()
  File
"/usr/lib/python2.6/site-packages/kaa/base/pynotifier/nf_generic.py",
line 255, in step
    if callback is not None and not callback( sock ):
  File "/usr/lib/python2.6/site-packages/kaa/base/callable.py", line
305, in __call__
    return super(WeakCallable, self).__call__(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/kaa/base/nf_wrapper.py", line
80, in __call__
    ret = super(NotifierCallback, self).__call__(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/kaa/base/callable.py", line
226, in __call__
    return cb(*cb_args, **cb_kwargs)
  File "/usr/lib/python2.6/site-packages/kaa/base/inotify/__init__.py",
line 300, in _handle_data
    self.signals["event"].emit(mask, path, None)
  File "/usr/lib/python2.6/site-packages/kaa/base/core.py", line 528, in
emit
    if cb(*args, **kwargs) == False:
  File "/usr/lib/python2.6/site-packages/kaa/base/callable.py", line
226, in __call__
    return cb(*cb_args, **cb_kwargs)
  File "/usr/lib/python2.6/site-packages/kaa/beacon/server/crawl.py",
line 184, in _inotify_event
    traceback.print_stack()


Dischi

-- 
Quitters never win, and winners never quit, but those who never quit
AND never win are idiots.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.