[Bug 543620] Re: command mailman info fails when Database url does not exist

Patrick Ben Koetter p at state-of-mind.de
Sun Mar 28 23:43:22 CEST 2010


* Barry Warsaw <543620 at bugs.launchpad.net>:
> I just noticed a problem with the mailman.cfg file you posted.  You've
> set the layout to be 'dev' but you're overriding var_dir in the
> [paths.master] section.  That doesn't match, so it's not picking that
> up.  You can verify by running
> 
> bin/mailman info -p
> 
> See if
> 
> s/paths.master/paths.dev/
> 
> fixes your problem.

I noticed that too when I posted the config to you. The problem probably is -
which is good in this case - that I am not an experienced python user nor
developer and the relation between the two didn't strike me.

I think I've even looked for a correlation in the original
mailman/../mailman.cfg and didn't find one.

Anyway. I will change it and see what happens.

p at rick


> 
> -- 
> command mailman info fails when Database url does not exist
> https://bugs.launchpad.net/bugs/543620
> You received this bug notification because you are a direct subscriber
> of the bug.
> 
> Status in GNU Mailman: Incomplete
> Status in GNU Mailman 3.0 series: Incomplete
> 
> Bug description:
> The command "mailman info" crashes if the database path "url" points to a location that does not exist yet:
> 
> root at mailman:~/mailman/bin# ./mailman info
> Traceback (most recent call last):
>   File "./mailman", line 32, in <module>
>     mailman.bin.mailman.main()
>   File "/root/mailman/src/mailman/bin/mailman.py", line 98, in main
>     initialize(config_file)
>   File "/root/mailman/src/mailman/core/initialize.py", line 175, in initialize
>     initialize_2(propagate_logs=propagate_logs)
>   File "/root/mailman/src/mailman/core/initialize.py", line 146, in initialize_2
>     database.initialize(debug)
>   File "/root/mailman/src/mailman/database/stock.py", line 64, in initialize
>     self._create(debug)
>   File "/root/mailman/src/mailman/database/stock.py", line 98, in _create
>     touch(url)
>   File "/root/mailman/src/mailman/database/stock.py", line 141, in touch
>     fd = os.open(path, os.O_WRONLY |  os.O_NONBLOCK | os.O_CREAT, 0666)
> OSError: [Errno 2] No such file or directory: '/opt/mailman/data/mailman.db'
> 
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/mailman/+bug/543620/+subscribe

-- 
state of mind
Digitale Kommunikation

http://www.state-of-mind.de

Franziskanerstraße 15      Telefon +49 89 3090 4664
81669 München              Telefax +49 89 3090 4666

Amtsgericht München        Partnerschaftsregister PR 563

-- 
command mailman info fails when Database url does not exist
https://bugs.launchpad.net/bugs/543620
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.


More information about the Mailman-coders mailing list