List Info

Thread: bf_compact: Invalid option 'db-transaction'




bf_compact: Invalid option 'db-transaction'
user name
2007-08-15 07:01:22
Hi!

I'm having trouble running the bf_compact script that is
included in the 
1.1.5 release. The compact procedure is aborted by the
following error 
message:

   $ bf_compact .bogofilter/
   Invalid option 'db-transaction'

When examining the script it appears that bogoutil does not
accept the 
parameter "--db-transaction=no". This is also
confirmed when executing 
bogoutil:

   $ bogoutil --db-transaction=no
   Invalid option 'db-transaction'

I have release 1.1.1 installed on another machine and there
everything 
seems to be working fine. Is this is a bug in the current
release and 
how can i fix it? Is it safe to remove the
"--db-transaction=no" 
parameter for bogoutil in bf_compact?

Best regards,

Mattias Wikstrom
_______________________________________________
Bogofilter mailing list
Bogofilterbogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter

Re: bf_compact: Invalid option 'db-transaction'
country flaguser name
United States
2007-09-02 09:45:06
On Wed, 15 Aug 2007 15:01:22 +0300
Mattias Wikstrom wrote:

> Hi!
> 
> I'm having trouble running the bf_compact script that
is included in
> the 1.1.5 release. The compact procedure is aborted by
the following
> error message:
> 
>    $ bf_compact .bogofilter/
>    Invalid option 'db-transaction'
> 
> When examining the script it appears that bogoutil does
not accept
> the parameter "--db-transaction=no". This is
also confirmed when
> executing bogoutil:
> 
>    $ bogoutil --db-transaction=no
>    Invalid option 'db-transaction'
> 
> I have release 1.1.1 installed on another machine and
there
> everything seems to be working fine. Is this is a bug
in the current
> release and how can i fix it? Is it safe to remove the
> "--db-transaction=no" parameter for bogoutil
in bf_compact?
> 
> Best regards,
> 
> Mattias Wikstrom

Hello Matthias,

Works fine for me!  Comparing the source code of
bogoutil-1.1.1 to
bogoutil-1.1.5 there have been _no_ changes in the
processing of
the --db-transaction option.

What's the source of your bogoutil executable? It sounds
like it was
configured _without_ transaction support.  

When I run "bogoutil --version" it says:

 bogoutil version 1.1.5
    Database: Sleepycat Software: ... (...) AUTO-XA 
 Copyright (C) 2002-2007 David Relson, Matthias Andree
 Copyright (C) 2002-2003 Gyepi Sam.

The AUTO-XA indicates that bogoutil will check the database
and use
transactions (if appropriate) and not use them (when not
appropriate).

The output of "bogoutil --help" lists the
"--db-transaction" option.

A version of bogoutil built without transaction report will
say:

  bogoutil version 1.1.5
    Database: Berkeley DB ...: (...) NON-TRANSACTIONAL

Note the "NON-TRANSACTIONAL".

Also the "--help" message will not include the
"--db-transaction"
option.

HTH,

David

P.S. Sorry about the delayed response to your query.
_______________________________________________
Bogofilter mailing list
Bogofilterbogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter

Re: bf_compact: Invalid option 'db-transaction'
user name
2007-09-02 16:10:19
On Sun, 02 Sep 2007, David Relson wrote:

> Works fine for me!  Comparing the source code of
bogoutil-1.1.1 to
> bogoutil-1.1.5 there have been _no_ changes in the
processing of
> the --db-transaction option.

It will fail with sqlite3- and qdbm-based builds of
bogofilter.

-- 
Matthias Andree
_______________________________________________
Bogofilter mailing list
Bogofilterbogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter

Re: bf_compact: Invalid option 'db-transaction'
country flaguser name
Finland
2007-09-03 02:01:18
David Relson wrote:
> What's the source of your bogoutil executable? It
sounds like it was
> configured _without_ transaction support.  

I built it from source. You're right, it seems to have been
compiled 
without transaction support. Which is strange, because I
have two nearly 
identical Debian servers and I'm pretty sure I used the
default 
configure options on both.

Thanks for clearing it up though!

Mattias Wikstrom
_______________________________________________
Bogofilter mailing list
Bogofilterbogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )