Edgewall Software

Ticket #4294 (new defect)

Opened 22 months ago

Last modified 8 months ago

Global trac.ini enable of spamfilter breaks initenv

Reported by: John Goerzen <jgoerzen@…> Owned by: mgood
Priority: normal Milestone: not applicable
Component: plugin/spamfilter Version: 0.10.4
Severity: normal Keywords:
Cc:

Description

I will be maintaining a few dozen projects in trac. In my global trac.ini, I have:

tracspamfilter.* = enabled

in the components section.

After I initenv a new instance, when I go to pull up its page, I get an error that says that the instance must be upgraded. If I run the trac-admin upgrade comment, I get:

Command failed: table spamfilter_log already exists

If I leave tracspamfilter out of the global trac.ini, and add it to the per-instance ini file after initenv, then it works fine.

Attachments

Change History

Changed 21 months ago by John Goerzen <jgoerzen@…>

The above was with sqlite.

Changed 21 months ago by sid

  • summary changed from Breaks initenv to Global trac.ini enable of spamfilter breaks initenv

Changed 18 months ago by cboos

  • milestone set to none

Not sure if it would still be a problem with 0.11 and the [inherit] mechanism... maybe worth testing anyway.

Changed 18 months ago by anonymous

I to have this problem. Is there a workaround of something to fix this issue?

Changed 8 months ago by anonymous

  • version changed from 0.10.2 to 0.10.4

The error still exists in 0.10.4

Changed 8 months ago by holl

A workaround is deleting the tables spamfilter_log and spamfilter_bayes with sqlite and after that doing an upgrade with trac-admin. Now all is working as it should.

Add/Change #4294 (Global trac.ini enable of spamfilter breaks initenv)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.