Advertisement
DavidLemayian

WebApp Error: <class 'socket.error'>: [Errno 111] Connection

May 23rd, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.94 KB | None | 0 0
  1. WebApp Error: <class 'socket.error'>: [Errno 111] Connection refused
  2.  
  3. URL: http://example.com/user/reset
  4. Module weberror.errormiddleware:162 in __call__
  5. << __traceback_supplement__ = Supplement, self, environ
  6. sr_checker = ResponseStartChecker(start_response)
  7. app_iter = self.application(environ, sr_checker)
  8. return self.make_catching_iter(app_iter, environ, sr_checker)
  9. except:
  10. >> app_iter = self.application(environ, sr_checker)
  11. Module webob.dec:147 in __call__
  12. << if self.middleware_wraps:
  13. args = (self.middleware_wraps,) + args
  14. resp = self.call_func(req, *args, **self.kwargs)
  15. except webob.exc.HTTPException, resp:
  16. pass
  17. >> resp = self.call_func(req, *args, **self.kwargs)
  18. Module webob.dec:208 in call_func
  19. << """Call the wrapped function; override this in a subclass to
  20. change how the function is called."""
  21. return self.func(req, *args, **kwargs)
  22.  
  23. def clone(self, func=None, **kw):
  24. >> return self.func(req, *args, **kwargs)
  25. Module fanstatic.publisher:234 in __call__
  26. << # the trigger segment is not in the URL, so we delegate
  27. # to the original application
  28. return request.get_response(self.app)
  29. # the trigger is in there, so let whatever is behind the
  30. # trigger be handled by the publisher
  31. >> return request.get_response(self.app)
  32. Module webob.request:1053 in get_response
  33. << else:
  34. status, headers, app_iter = self.call_application(
  35. application, catch_exc_info=False)
  36. return self.ResponseClass(
  37. status=status, headerlist=list(headers), app_iter=app_iter,
  38. >> application, catch_exc_info=False)
  39. Module webob.request:1022 in call_application
  40. << captured[:] = [status, headers, exc_info]
  41. return output.append
  42. app_iter = application(self.environ, start_response)
  43. if output or not captured:
  44. try:
  45. >> app_iter = application(self.environ, start_response)
  46. Module webob.dec:147 in __call__
  47. << if self.middleware_wraps:
  48. args = (self.middleware_wraps,) + args
  49. resp = self.call_func(req, *args, **self.kwargs)
  50. except webob.exc.HTTPException, resp:
  51. pass
  52. >> resp = self.call_func(req, *args, **self.kwargs)
  53. Module webob.dec:208 in call_func
  54. << """Call the wrapped function; override this in a subclass to
  55. change how the function is called."""
  56. return self.func(req, *args, **kwargs)
  57.  
  58. def clone(self, func=None, **kw):
  59. >> return self.func(req, *args, **kwargs)
  60. Module fanstatic.injector:54 in __call__
  61. << # Get the response from the wrapped application:
  62. response = request.get_response(self.app)
  63.  
  64. # We only continue if the content-type is appropriate.
  65. >> response = request.get_response(self.app)
  66. Module webob.request:1053 in get_response
  67. << else:
  68. status, headers, app_iter = self.call_application(
  69. application, catch_exc_info=False)
  70. return self.ResponseClass(
  71. status=status, headerlist=list(headers), app_iter=app_iter,
  72. >> application, catch_exc_info=False)
  73. Module webob.request:1022 in call_application
  74. << captured[:] = [status, headers, exc_info]
  75. return output.append
  76. app_iter = application(self.environ, start_response)
  77. if output or not captured:
  78. try:
  79. >> app_iter = application(self.environ, start_response)
  80. Module beaker.middleware:73 in __call__
  81. << self.cache_manager)
  82. environ[self.environ_key] = self.cache_manager
  83. return self.app(environ, start_response)
  84. >> return self.app(environ, start_response)
  85. Module beaker.middleware:155 in __call__
  86. << headers.append(('Set-cookie', cookie))
  87. return start_response(status, headers, exc_info)
  88. return self.wrap_app(environ, session_start_response)
  89.  
  90. def _get_session(self):
  91. >> return self.wrap_app(environ, session_start_response)
  92. Module routes.middleware:131 in __call__
  93. << r'\1', oldpath)
  94.  
  95. response = self.app(environ, start_response)
  96.  
  97. # Wrapped in try as in rare cases the attribute will be gone already
  98. >> response = self.app(environ, start_response)
  99. Module pylons.wsgiapp:125 in __call__
  100. <<
  101. controller = self.resolve(environ, start_response)
  102. response = self.dispatch(controller, environ, start_response)
  103.  
  104. if 'paste.testing_variables' in environ and hasattr(response,
  105. >> response = self.dispatch(controller, environ, start_response)
  106. Module pylons.wsgiapp:324 in dispatch
  107. << if log_debug:
  108. log.debug("Calling controller class with WSGI interface")
  109. return controller(environ, start_response)
  110.  
  111. def load_test_env(self, environ):
  112. >> return controller(environ, start_response)
  113. Module ckan.lib.base:293 in __call__
  114. << try:
  115. res = WSGIController.__call__(self, environ, start_response)
  116. finally:
  117. model.Session.remove()
  118. >> res = WSGIController.__call__(self, environ, start_response)
  119. Module pylons.controllers.core:221 in __call__
  120. << return response(environ, self.start_response)
  121.  
  122. response = self._dispatch_call()
  123. if not start_response_called:
  124. self.start_response = start_response
  125. >> response = self._dispatch_call()
  126. Module pylons.controllers.core:172 in _dispatch_call
  127. << req.environ['pylons.action_method'] = func
  128.  
  129. response = self._inspect_call(func)
  130. else:
  131. if log_debug:
  132. >> response = self._inspect_call(func)
  133. Module pylons.controllers.core:107 in _inspect_call
  134. << func.__name__, args)
  135. try:
  136. result = self._perform_call(func, args)
  137. except HTTPException, httpe:
  138. if log_debug:
  139. >> result = self._perform_call(func, args)
  140. Module pylons.controllers.core:60 in _perform_call
  141. << """Hide the traceback for everything above this method"""
  142. __traceback_hide__ = 'before_and_this'
  143. return func(**args)
  144.  
  145. def _inspect_call(self, func):
  146. >> return func(**args)
  147. Module ckan.controllers.user:407 in request_reset
  148. << if user_obj:
  149. try:
  150. mailer.send_reset_link(user_obj)
  151. h.flash_success(_('Please check your inbox for '
  152. 'a reset code.'))
  153. >> mailer.send_reset_link(user_obj)
  154. Module ckan.lib.mailer:136 in send_reset_link
  155. << create_reset_key(user)
  156. body = get_reset_link_body(user)
  157. mail_user(user, _('Reset your password'), body)
  158.  
  159. def verify_reset_link(user, key):
  160. >> mail_user(user, _('Reset your password'), body)
  161. Module ckan.lib.mailer:101 in mail_user
  162. << raise MailerException(_("No recipient email address available!"))
  163. mail_recipient(recipient.display_name, recipient.email, subject,
  164. body, headers=headers)
  165. >> body, headers=headers)
  166. Module ckan.lib.mailer:95 in mail_recipient
  167. << body, headers={}):
  168. return _mail_recipient(recipient_name, recipient_email,
  169. g.site_title, g.site_url, subject, body, headers=headers)
  170.  
  171. def mail_user(recipient, subject, body, headers={}):
  172. >> g.site_title, g.site_url, subject, body, headers=headers)
  173. Module ckan.lib.mailer:59 in _mail_recipient
  174. << smtp_user = config.get('smtp.user')
  175. smtp_password = config.get('smtp.password')
  176. smtp_connection.connect(smtp_server)
  177. try:
  178. #smtp_connection.set_debuglevel(True)
  179. >> smtp_connection.connect(smtp_server)
  180. Module smtplib:309 in connect
  181. << if self.debuglevel > 0:
  182. print>>stderr, 'connect:', (host, port)
  183. self.sock = self._get_socket(host, port, self.timeout)
  184. (code, msg) = self.getreply()
  185. if self.debuglevel > 0:
  186. >> self.sock = self._get_socket(host, port, self.timeout)
  187. Module smtplib:284 in _get_socket
  188. << if self.debuglevel > 0:
  189. print>>stderr, 'connect:', (host, port)
  190. return socket.create_connection((port, host), timeout)
  191.  
  192. def connect(self, host='localhost', port=0):
  193. >> return socket.create_connection((port, host), timeout)
  194. Module socket:571 in create_connection
  195. << if err is not None:
  196. raise err
  197. else:
  198. raise error("getaddrinfo returns an empty list")
  199. >> raise err
  200. error: [Errno 111] Connection refused
  201.  
  202.  
  203. CGI Variables
  204.  
  205. CKAN_CURRENT_URL '/user/reset'
  206. CKAN_LANG 'en'
  207. CKAN_LANG_IS_DEFAULT True
  208. CONTENT_TYPE 'application/x-www-form-urlencoded; charset=utf-8'
  209. DOCUMENT_ROOT '/etc/apache2/htdocs'
  210. GATEWAY_INTERFACE 'CGI/1.1'
  211. HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
  212. HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
  213. HTTP_ACCEPT_ENCODING 'gzip,deflate,sdch'
  214. HTTP_ACCEPT_LANGUAGE 'en-GB,en-US;q=0.8,en;q=0.6'
  215. HTTP_CACHE_CONTROL 'max-age=0'
  216. HTTP_CONNECTION 'keep-alive'
  217. 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)'
  218. HTTP_HOST 'example.com '
  219. HTTP_ORIGIN 'http://example.com '
  220. HTTP_REFERER 'http://example.com/user/reset '
  221. 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'
  222. PATH_INFO '/user/reset'
  223. PATH_TRANSLATED '/etc/ckan/default/apache.wsgi/user/reset'
  224. REMOTE_ADDR '0.0.0.0'
  225. REMOTE_PORT '51232'
  226. REQUEST_METHOD 'POST'
  227. REQUEST_URI '/user/reset'
  228. SCRIPT_FILENAME '/etc/ckan/default/apache.wsgi'
  229. SERVER_ADDR '0.0.0.0'
  230. SERVER_ADMIN '[no address given]'
  231. SERVER_NAME 'example.com '
  232. SERVER_PORT '80'
  233. SERVER_PROTOCOL 'HTTP/1.1'
  234. SERVER_SIGNATURE '<address>Apache/2.2.22 (Ubuntu) Server at example.com Port 80</address>\n'
  235. SERVER_SOFTWARE 'Apache/2.2.22 (Ubuntu)'
  236.  
  237.  
  238. WSGI Variables
  239.  
  240. application <fanstatic.publisher.Delegator object at 0x7f3d82f5bd90>
  241. beaker.cache <beaker.cache.CacheManager object at 0x7f3d82f5b4d0>
  242. beaker.get_session <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x7f3d82f5bed0>>
  243. beaker.session {'_accessed_time': 1369289919.552456, '_creation_time': 1369289845.848923}
  244. fanstatic.needed <fanstatic.core.NeededResources object at 0x7f3d704e8610>
  245. mod_wsgi.application_group 'example.com |'
  246. mod_wsgi.callable_object 'application'
  247. mod_wsgi.handler_script ''
  248. mod_wsgi.input_chunked '0'
  249. mod_wsgi.listener_host ''
  250. mod_wsgi.listener_port '80'
  251. mod_wsgi.process_group 'example_com'
  252. mod_wsgi.request_handler 'wsgi-script'
  253. mod_wsgi.script_reloading '1'
  254. mod_wsgi.version (3, 3)
  255. 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)')
  256. paste.registry <paste.registry.Registry object at 0x7f3d704e8850>
  257. paste.throw_errors True
  258. pylons.action_method <bound method UserController.request_reset of <ckan.controllers.user.UserController object at 0x7f3d7413b850>>
  259. pylons.controller <ckan.controllers.user.UserController object at 0x7f3d7413b850>
  260. pylons.environ_config {'session': 'beaker.session', 'cache': 'beaker.cache'}
  261. pylons.pylons <pylons.util.PylonsContext object at 0x7f3d704fcc90>
  262. pylons.routes_dict {'action': u'request_reset', 'controller': u'user'}
  263. repoze.who.logger <logging.Logger object at 0x7f3d82f5b410>
  264. 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>}
  265. routes.route <routes.route.Route object at 0x7f3d82b7f210>
  266. routes.url <routes.util.URLGenerator object at 0x7f3d684e5390>
  267. webob._parsed_post_vars (MultiDict([('user', 'user_example'), ('reset', '')]), <FakeCGIBody at 0x7f3d684e5990 viewing MultiDict([('us...'')])>)
  268. webob._parsed_query_vars (GET([]), '')
  269. webob.adhoc_attrs {'errors': 'ignore', 'response': <Response at 0x7f3d704e88d0 200 OK>, 'language': 'en-us'}
  270. webob.is_body_readable True
  271. webob.is_body_seekable False
  272. wsgi process 'Multi process AND threads (?)'
  273. wsgi.file_wrapper <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f3d6539b5d0>
  274. wsgi.version (1, 1)
  275. 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