Opened 11 years ago
Last modified 7 years ago
#11090 closed defect
internal error on user creation with account manager and notification "gaierror: [Errno -2] Name or service not known" — at Version 1
Reported by: | anonymous | Owned by: | Steffen Hoffmann |
---|---|---|---|
Priority: | lowest | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | email notification user creation |
Cc: | Trac Release: | 1.0 |
Description (last modified by )
Hello,
this happens when creating new user with 'user creation notification' enabled. The user is created, however. When "Get notified of new account creation" is disabled, everything works fine. Maybe it is a good point to tell, that notification emails about ticket changes are working well, too.
Hoe the choosen hack is correct.
2013-05-16 14:25:55,751 Trac[git_fs] DEBUG: disabled CachedRepository for '/home/tic/sptc/PrimeFaces/.git' 2013-05-16 14:26:21,566 Trac[main] DEBUG: Dispatching <RequestWithSession "POST '/admin/accounts/users'"> 2013-05-16 14:26:21,567 Trac[PyGIT] DEBUG: PyGIT.Storage instance 140363889453200 constructed 2013-05-16 14:26:21,576 Trac[api] INFO: Synchronized '(default)' repository in 0.01 seconds 2013-05-16 14:26:21,578 Trac[session] DEBUG: Retrieving session for ID u'admin' 2013-05-16 14:26:21,588 Trac[api] INFO: Created new user: newuser 2013-05-16 14:26:21,602 Trac[notification] INFO: Sending notification through SMTP at smtp.1und1.de:25 to [u'newuser@somewhere.com'] 2013-05-16 14:26:41,626 Trac[main] ERROR: Internal Server Error: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/web/main.py", line 497, in _dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/web/main.py", line 214, in dispatch resp = chosen_handler.process_request(req) File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/admin/web_ui.py", line 125, in process_request path_info) File "build/bdist.linux-x86_64/egg/acct_mgr/admin.py", line 204, in render_admin_panel return self._do_users(req) File "build/bdist.linux-x86_64/egg/acct_mgr/admin.py", line 348, in _do_users acctmgr.validate_registration(req) File "build/bdist.linux-x86_64/egg/acct_mgr/api.py", line 367, in validate_registration self.set_password(username, req.args.get('password')) File "build/bdist.linux-x86_64/egg/acct_mgr/api.py", line 246, in set_password self._notify('created', user, password) File "build/bdist.linux-x86_64/egg/acct_mgr/api.py", line 393, in _notify getattr(listener, mod)(*args) File "build/bdist.linux-x86_64/egg/acct_mgr/notification.py", line 37, in user_created notifier.notify(username, 'New user registration') File "build/bdist.linux-x86_64/egg/acct_mgr/notification.py", line 87, in notify NotifyEmail.notify(self, username, subject) File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/notification.py", line 343, in notify Notify.notify(self, resid) File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/notification.py", line 231, in notify self.send(torcpts, ccrcpts) File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/notification.py", line 482, in send msg.as_string()) File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/notification.py", line 124, in send_email self.email_sender.send(from_addr, recipients, message) File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/notification.py", line 153, in send server = smtplib.SMTP(self.smtp_server, self.smtp_port) File "/usr/lib/python2.7/smtplib.py", line 249, in __init__ (code, msg) = self.connect(host, port) File "/usr/lib/python2.7/smtplib.py", line 309, in connect self.sock = self._get_socket(host, port, self.timeout) File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket return socket.create_connection((port, host), timeout) File "/usr/lib/python2.7/socket.py", line 553, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): gaierror: [Errno -2] Name or service not known 2013-05-16 14:26:41,667 Trac[chrome] DEBUG: Prepare chrome data for request 2013-05-16 14:26:41,671 Trac[PyGIT] DEBUG: PyGIT.Storage instance 140363897682576 constructed
Note: See
TracTickets for help on using
tickets.