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

Barry Warsaw barry at canonical.com
Sun Mar 28 00:49:11 CET 2010


Can you post your mailman.cfg file?  'bin/mailman info' will try to
create the mailman.db file if it doesn't exist, but of course that could
fail if say the process doesn't have permission to create the paths,
e.g.

-----mailman.cfg-----
[mailman]
layout: foo

[paths.foo]
var_dir: /foo/mailman
----------

% bin/mailman info
Traceback (most recent call last):
  File "bin/mailman", line 31, in <module>
    mailman.bin.mailman.main()
  File "/home/barry/projects/mailman/3.0/src/mailman/bin/mailman.py", line 98, in main
    initialize(config_file)
  File "/home/barry/projects/mailman/3.0/src/mailman/core/initialize.py", line 174, in initialize
    initialize_1(config_path)
  File "/home/barry/projects/mailman/3.0/src/mailman/core/initialize.py", line 117, in initialize_1
    mailman.config.config.load(config_path)
  File "/home/barry/projects/mailman/3.0/src/mailman/config/config.py", line 106, in load
    self._post_process()
  File "/home/barry/projects/mailman/3.0/src/mailman/config/config.py", line 126, in _post_process
    Switchboard.initialize()
  File "/home/barry/projects/mailman/3.0/src/mailman/queue/__init__.py", line 94, in initialize
    config.switchboards[name] = Switchboard(name, path)
  File "/home/barry/projects/mailman/3.0/src/mailman/queue/__init__.py", line 119, in __init__
    makedirs(self.queue_directory, 0770)
  File "/home/barry/projects/mailman/3.0/src/mailman/utilities/filesystem.py", line 66, in makedirs
    os.makedirs(path, mode)
  File "/usr/lib/python2.6/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.6/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.6/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/foo'

-- 
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