Modify

Opened 6 years ago

Last modified 15 months ago

#7084 new defect

[Patch] Search index updater script doesn't work

Reported by: thm Owned by:
Priority: normal Component: IrcLogsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

At least in our setup, where SupyBot logs the channel contents to a new file each day, the update-irc-search script doesn't work properly. It throws a lot of IO errors, and creates subdirectories for each logfile within the irclogs.idx dir:

$ find /tmp/irclogs.idx
/tmp/irclogs.idx/#channel.20080805.log.idx
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/config
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/wordid
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/idword
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/attributes
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/uris
/tmp/irclogs.idx/#channel.20080805.log.idx/builtin.db/words
/tmp/irclogs.idx/#channel.20080804.log.idx
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/config
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/wordid
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/idword
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/attributes
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/uris
/tmp/irclogs.idx/#channel.20080804.log.idx/builtin.db/words
[...]

The attached patch replaces irclogs/console.py with a version that fixes the issue for us. The idea is of course stolen from the parse_refactor branch.

Attachments (1)

update-irc-search.patch (1.5 KB) - added by thm 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by thm

comment:1 Changed 6 years ago by thm

  • Summary changed from Search index updater script doesn't work to [Patch] Search index updater script doesn't work

comment:2 Changed 6 years ago by anonymous

  • Owner changed from pacopablo to doki_pen

comment:3 Changed 15 months ago by rjollos

  • Owner doki_pen deleted

Add Comment

Modify Ticket

Action
as new The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.