Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebApp Error: <class 'socket.error'>: [Errno 111] Connection refused
- URL: http://example.com/user/reset
- Module weberror.errormiddleware:162 in __call__
- << __traceback_supplement__ = Supplement, self, environ
- sr_checker = ResponseStartChecker(start_response)
- app_iter = self.application(environ, sr_checker)
- return self.make_catching_iter(app_iter, environ, sr_checker)
- except:
- >> app_iter = self.application(environ, sr_checker)
- Module webob.dec:147 in __call__
- << if self.middleware_wraps:
- args = (self.middleware_wraps,) + args
- resp = self.call_func(req, *args, **self.kwargs)
- except webob.exc.HTTPException, resp:
- pass
- >> resp = self.call_func(req, *args, **self.kwargs)
- Module webob.dec:208 in call_func
- << """Call the wrapped function; override this in a subclass to
- change how the function is called."""
- return self.func(req, *args, **kwargs)
- def clone(self, func=None, **kw):
- >> return self.func(req, *args, **kwargs)
- Module fanstatic.publisher:234 in __call__
- << # the trigger segment is not in the URL, so we delegate
- # to the original application
- return request.get_response(self.app)
- # the trigger is in there, so let whatever is behind the
- # trigger be handled by the publisher
- >> return request.get_response(self.app)
- Module webob.request:1053 in get_response
- << else:
- status, headers, app_iter = self.call_application(
- application, catch_exc_info=False)
- return self.ResponseClass(
- status=status, headerlist=list(headers), app_iter=app_iter,
- >> application, catch_exc_info=False)
- Module webob.request:1022 in call_application
- << captured[:] = [status, headers, exc_info]
- return output.append
- app_iter = application(self.environ, start_response)
- if output or not captured:
- try:
- >> app_iter = application(self.environ, start_response)
- Module webob.dec:147 in __call__
- << if self.middleware_wraps:
- args = (self.middleware_wraps,) + args
- resp = self.call_func(req, *args, **self.kwargs)
- except webob.exc.HTTPException, resp:
- pass
- >> resp = self.call_func(req, *args, **self.kwargs)
- Module webob.dec:208 in call_func
- << """Call the wrapped function; override this in a subclass to
- change how the function is called."""
- return self.func(req, *args, **kwargs)
- def clone(self, func=None, **kw):
- >> return self.func(req, *args, **kwargs)
- Module fanstatic.injector:54 in __call__
- << # Get the response from the wrapped application:
- response = request.get_response(self.app)
- # We only continue if the content-type is appropriate.
- >> response = request.get_response(self.app)
- Module webob.request:1053 in get_response
- << else:
- status, headers, app_iter = self.call_application(
- application, catch_exc_info=False)
- return self.ResponseClass(
- status=status, headerlist=list(headers), app_iter=app_iter,
- >> application, catch_exc_info=False)
- Module webob.request:1022 in call_application
- << captured[:] = [status, headers, exc_info]
- return output.append
- app_iter = application(self.environ, start_response)
- if output or not captured:
- try:
- >> app_iter = application(self.environ, start_response)
- Module beaker.middleware:73 in __call__
- << self.cache_manager)
- environ[self.environ_key] = self.cache_manager
- return self.app(environ, start_response)
- >> return self.app(environ, start_response)
- Module beaker.middleware:155 in __call__
- << headers.append(('Set-cookie', cookie))
- return start_response(status, headers, exc_info)
- return self.wrap_app(environ, session_start_response)
- def _get_session(self):
- >> return self.wrap_app(environ, session_start_response)
- Module routes.middleware:131 in __call__
- << r'\1', oldpath)
- response = self.app(environ, start_response)
- # Wrapped in try as in rare cases the attribute will be gone already
- >> response = self.app(environ, start_response)
- Module pylons.wsgiapp:125 in __call__
- <<
- controller = self.resolve(environ, start_response)
- response = self.dispatch(controller, environ, start_response)
- if 'paste.testing_variables' in environ and hasattr(response,
- >> response = self.dispatch(controller, environ, start_response)
- Module pylons.wsgiapp:324 in dispatch
- << if log_debug:
- log.debug("Calling controller class with WSGI interface")
- return controller(environ, start_response)
- def load_test_env(self, environ):
- >> return controller(environ, start_response)
- Module ckan.lib.base:293 in __call__
- << try:
- res = WSGIController.__call__(self, environ, start_response)
- finally:
- model.Session.remove()
- >> res = WSGIController.__call__(self, environ, start_response)
- Module pylons.controllers.core:221 in __call__
- << return response(environ, self.start_response)
- response = self._dispatch_call()
- if not start_response_called:
- self.start_response = start_response
- >> response = self._dispatch_call()
- Module pylons.controllers.core:172 in _dispatch_call
- << req.environ['pylons.action_method'] = func
- response = self._inspect_call(func)
- else:
- if log_debug:
- >> response = self._inspect_call(func)
- Module pylons.controllers.core:107 in _inspect_call
- << func.__name__, args)
- try:
- result = self._perform_call(func, args)
- except HTTPException, httpe:
- if log_debug:
- >> result = self._perform_call(func, args)
- Module pylons.controllers.core:60 in _perform_call
- << """Hide the traceback for everything above this method"""
- __traceback_hide__ = 'before_and_this'
- return func(**args)
- def _inspect_call(self, func):
- >> return func(**args)
- Module ckan.controllers.user:407 in request_reset
- << if user_obj:
- try:
- mailer.send_reset_link(user_obj)
- h.flash_success(_('Please check your inbox for '
- 'a reset code.'))
- >> mailer.send_reset_link(user_obj)
- Module ckan.lib.mailer:136 in send_reset_link
- << create_reset_key(user)
- body = get_reset_link_body(user)
- mail_user(user, _('Reset your password'), body)
- def verify_reset_link(user, key):
- >> mail_user(user, _('Reset your password'), body)
- Module ckan.lib.mailer:101 in mail_user
- << raise MailerException(_("No recipient email address available!"))
- mail_recipient(recipient.display_name, recipient.email, subject,
- body, headers=headers)
- >> body, headers=headers)
- Module ckan.lib.mailer:95 in mail_recipient
- << body, headers={}):
- return _mail_recipient(recipient_name, recipient_email,
- g.site_title, g.site_url, subject, body, headers=headers)
- def mail_user(recipient, subject, body, headers={}):
- >> g.site_title, g.site_url, subject, body, headers=headers)
- Module ckan.lib.mailer:59 in _mail_recipient
- << smtp_user = config.get('smtp.user')
- smtp_password = config.get('smtp.password')
- smtp_connection.connect(smtp_server)
- try:
- #smtp_connection.set_debuglevel(True)
- >> smtp_connection.connect(smtp_server)
- Module smtplib:309 in connect
- << if self.debuglevel > 0:
- print>>stderr, 'connect:', (host, port)
- self.sock = self._get_socket(host, port, self.timeout)
- (code, msg) = self.getreply()
- if self.debuglevel > 0:
- >> self.sock = self._get_socket(host, port, self.timeout)
- Module smtplib:284 in _get_socket
- << if self.debuglevel > 0:
- print>>stderr, 'connect:', (host, port)
- return socket.create_connection((port, host), timeout)
- def connect(self, host='localhost', port=0):
- >> return socket.create_connection((port, host), timeout)
- Module socket:571 in create_connection
- << if err is not None:
- raise err
- else:
- raise error("getaddrinfo returns an empty list")
- >> raise err
- error: [Errno 111] Connection refused
- CGI Variables
- CKAN_CURRENT_URL '/user/reset'
- CKAN_LANG 'en'
- CKAN_LANG_IS_DEFAULT True
- CONTENT_TYPE 'application/x-www-form-urlencoded; charset=utf-8'
- DOCUMENT_ROOT '/etc/apache2/htdocs'
- GATEWAY_INTERFACE 'CGI/1.1'
- HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
- HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
- HTTP_ACCEPT_ENCODING 'gzip,deflate,sdch'
- HTTP_ACCEPT_LANGUAGE 'en-GB,en-US;q=0.8,en;q=0.6'
- HTTP_CACHE_CONTROL 'max-age=0'
- HTTP_CONNECTION 'keep-alive'
- HTTP_COOKIE 'ckan=edbc35f7220592d02aeb539f0d600bbb936a4cd3a566d0edb70043ecaaa1f22c2fe67a94; __utma=190035579.699271196.1369289757.1369289757.1369289757.1; __utmb=190035579.11.10.1369289757; __utmc=190035579; __utmz=190035579.1369289757.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
- HTTP_HOST 'example.com '
- HTTP_ORIGIN 'http://example.com '
- HTTP_REFERER 'http://example.com/user/reset '
- HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31'
- PATH_INFO '/user/reset'
- PATH_TRANSLATED '/etc/ckan/default/apache.wsgi/user/reset'
- REMOTE_ADDR '0.0.0.0'
- REMOTE_PORT '51232'
- REQUEST_METHOD 'POST'
- REQUEST_URI '/user/reset'
- SCRIPT_FILENAME '/etc/ckan/default/apache.wsgi'
- SERVER_ADDR '0.0.0.0'
- SERVER_ADMIN '[no address given]'
- SERVER_NAME 'example.com '
- SERVER_PORT '80'
- SERVER_PROTOCOL 'HTTP/1.1'
- SERVER_SIGNATURE '<address>Apache/2.2.22 (Ubuntu) Server at example.com Port 80</address>\n'
- SERVER_SOFTWARE 'Apache/2.2.22 (Ubuntu)'
- WSGI Variables
- application <fanstatic.publisher.Delegator object at 0x7f3d82f5bd90>
- beaker.cache <beaker.cache.CacheManager object at 0x7f3d82f5b4d0>
- beaker.get_session <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x7f3d82f5bed0>>
- beaker.session {'_accessed_time': 1369289919.552456, '_creation_time': 1369289845.848923}
- fanstatic.needed <fanstatic.core.NeededResources object at 0x7f3d704e8610>
- mod_wsgi.application_group 'example.com |'
- mod_wsgi.callable_object 'application'
- mod_wsgi.handler_script ''
- mod_wsgi.input_chunked '0'
- mod_wsgi.listener_host ''
- mod_wsgi.listener_port '80'
- mod_wsgi.process_group 'example_com'
- mod_wsgi.request_handler 'wsgi-script'
- mod_wsgi.script_reloading '1'
- mod_wsgi.version (3, 3)
- paste.cookies (<SimpleCookie: __utma='190035579.699271196.1369289757.1369289757.1369289757.1' __utmb='190035579.11.10.1369289757' __utmc='190035579' __utmz='190035579.1369289757.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)' ckan='edbc35f7220592d02aeb539f0d600bbb936a4cd3a566d0edb70043ecaaa1f22c2fe67a94'>, 'ckan=edbc35f7220592d02aeb539f0d600bbb936a4cd3a566d0edb70043ecaaa1f22c2fe67a94; __utma=190035579.699271196.1369289757.1369289757.1369289757.1; __utmb=190035579.11.10.1369289757; __utmc=190035579; __utmz=190035579.1369289757.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)')
- paste.registry <paste.registry.Registry object at 0x7f3d704e8850>
- paste.throw_errors True
- pylons.action_method <bound method UserController.request_reset of <ckan.controllers.user.UserController object at 0x7f3d7413b850>>
- pylons.controller <ckan.controllers.user.UserController object at 0x7f3d7413b850>
- pylons.environ_config {'session': 'beaker.session', 'cache': 'beaker.cache'}
- pylons.pylons <pylons.util.PylonsContext object at 0x7f3d704fcc90>
- pylons.routes_dict {'action': u'request_reset', 'controller': u'user'}
- repoze.who.logger <logging.Logger object at 0x7f3d82f5b410>
- repoze.who.plugins {'openid': <OpenIdIdentificationPlugin 139902166874000>, 'friendlyform': <FriendlyFormPlugin 139902166875024>, 'ckan.lib.authenticator:UsernamePasswordAuthenticator': <ckan.lib.authenticator.UsernamePasswordAuthenticator object at 0x7f3d83302950>, 'auth_tkt': <AuthTktCookiePlugin 139902166874384>, 'ckan.lib.authenticator:OpenIDAuthenticator': <ckan.lib.authenticator.OpenIDAuthenticator object at 0x7f3d833028d0>}
- routes.route <routes.route.Route object at 0x7f3d82b7f210>
- routes.url <routes.util.URLGenerator object at 0x7f3d684e5390>
- webob._parsed_post_vars (MultiDict([('user', 'user_example'), ('reset', '')]), <FakeCGIBody at 0x7f3d684e5990 viewing MultiDict([('us...'')])>)
- webob._parsed_query_vars (GET([]), '')
- webob.adhoc_attrs {'errors': 'ignore', 'response': <Response at 0x7f3d704e88d0 200 OK>, 'language': 'en-us'}
- webob.is_body_readable True
- webob.is_body_seekable False
- wsgi process 'Multi process AND threads (?)'
- wsgi.file_wrapper <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f3d6539b5d0>
- wsgi.version (1, 1)
- wsgiorg.routing_args (<routes.util.URLGenerator object at 0x7f3d684e5390>, {'action': u'request_reset', 'controller': u'user'})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement