[Mailman-Developers] GSoC
Vlad Shablinsky
vladshablinsky at gmail.com
Mon Mar 9 16:56:34 CET 2015
>
> Do you have something running on your `9001` port? This error means
> mailman test server has problems binding to your local 9001 port as
> evident from the error message.
>
> > 2. The second issue is that I get NameError when trying `dump_list` in
> > `mailman shell` (I follow these instructions
> >
> http://gnu-mailman.readthedocs.org/en/latest/src/mailman/model/docs/addresses.html
> > )
> >
>
> First you need to import the `dump_list` function to be able to use it.
> try:
>
> from mailman.testing.documentation import dump_list
>
> > ">>> dump_list(user.display_name for user in user_manager.users)
> > Traceback (most recent call last):
> > File "<console>", line 1, in <module>
> > NameError: name 'dump_list' is not defined"
> >
> >
> > 3. I've registed a user via Mozilla Persona and I'm able to log in, but I
> > don't know what to do with it. I just have one field filled with email of
> > my registred user. Everything is blank. Are the lists added using mailman
> > shell?
>
> When you did `python manage.py syncdb` in postorius_standalone, did you
> create a superuser? If yes, then use that email address to login and
> you'd have lots of others options to play with. If not, then simply go
> to postorius_standlaone directory and execute the command:
>
> python manage.py createsuperuser
>
> > I havent't started fixing a bug yet, but I suppose I have to use web UI
> or
> > the `mailman shell` to see if the bug is fixed or not. I'm supposed to be
> > able to reproduce the state that causes the bug. I'm not sure that
> > everything works fine since I have errors described above. Could you
> guide
> > me on that?
>
> The usual debugging process after fixing a bug varies from person to
> person. There may be a lot of things that you won't be able to find in
> Postorius. We generally use a combination of both shell and
> mailman.client for our purposes.
1. When I start tox I have
sudo lsof -i tcp:9001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
python3.4 12874 vlad 22u IPv4 0x1f87e35d769a88e9 0t0 TCP
localhost:etlservicemgr (LISTEN)
then when an the error occurs I have
Traceback (most recent call last):
File "/Users/vlad/Projects/GSoC/Mailman/mailman/.tox/py34/bin/runner",
line 9, in <module>
load_entry_point('mailman==3.0.0b6', 'console_scripts', 'runner')()
File
"/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/bin/runner.py", line
200, in main
runner = make_runner(*args.runner, once=args.once)
File
"/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/bin/runner.py", line
100, in make_runner
return runner_class(name, slice)
File
"/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/runners/lmtp.py",
line 164, in __init__
smtpd.SMTPServer.__init__(self, localaddr, remoteaddr=None)
File
"/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/smtpd.py",
line 589, in __init__
self.bind(localaddr)
File
"/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/asyncore.py",
line 334, in bind
return self.socket.bind(addr)
OSError: [Errno 48] Address already in use
and when I look for processes:
sudo lsof -i tcp:9001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
python3.4 12874 vlad 22u IPv4 0x1f87e35d769a88e9 0t0 TCP
localhost:etlservicemgr (LISTEN)
python3.4 19844 vlad 23u IPv4 0x1f87e35d71e828e9 0t0 TCP
localhost:56728->localhost:etlservicemgr (SYN_SENT)
when some time passes I have this in my terminal:
Traceback (most recent call last):
File "/Users/vlad/Projects/GSoC/Mailman/mailman/.tox/py34/bin/runner",
line 9, in <module>
load_entry_point('mailman==3.0.0b6', 'console_scripts', 'runner')()
File
"/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/bin/runner.py", line
200, in main
runner = make_runner(*args.runner, once=args.once)
File
"/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/bin/runner.py", line
100, in make_runner
return runner_class(name, slice)
File
"/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/runners/rest.py",
line 55, in __init__
self._server = make_server()
File
"/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/rest/wsgiapp.py",
line 163, in make_server
handler_class=AdminWebServiceWSGIRequestHandler)
File
"/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/wsgiref/simple_server.py",
line 153, in make_server
server = server_class((host, port), handler_class)
File
"/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/socketserver.py",
line 429, in __init__
self.server_bind()
File
"/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/wsgiref/simple_server.py",
line 50, in server_bind
HTTPServer.server_bind(self)
File
"/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/server.py",
line 133, in server_bind
socketserver.TCPServer.server_bind(self)
File
"/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/socketserver.py",
line 440, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 48] Address already in use
Exception in thread Thread-2:
Traceback (most recent call last):
File
"/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/threading.py",
line 921, in _bootstrap_inner
self.run()
File
"/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/threading.py",
line 869, in run
self._target(*self._args, **self._kwargs)
File
"/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/testing/helpers.py",
line 215, in loop
self.start_check()
File
"/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/rest/tests/test_membership.py",
line 223, in _wait_for_both
wait_for_webservice()
File
"/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/testing/helpers.py",
line 285, in wait_for_webservice
int(config.webservice.port)))
TimeoutError: [Errno 60] Operation timed out
and
sudo lsof -i tcp:9001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
python3.4 12874 vlad 22u IPv4 0x1f87e35d769a88e9 0t0 TCP
localhost:etlservicemgr (LISTEN)
2. I imported dump_list like you said and It started to work. Now I can't
create list
>>> mlist = create_list('test at example.com')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File
"/Users/vlad/Projects/GSoC/Mailman/mailman/src/mailman/app/lifecycle.py",
line 74, in create_list
raise BadDomainSpecificationError(domain)
mailman.interfaces.domain.BadDomainSpecificationError: example.com
I registred a superuser in postorius_standalone. Now I can create a domain
and lists. What do I have to write in the forms to test it somehow?
Thanks,
Vlad Shablinsky
More information about the Mailman-Developers
mailing list