#6728 Trac importer gets internal timeouts

v1.0.1
closed
General
Cory Johns
2015-08-20
2013-10-02
No

We need to avoid internal timeouts like this. Perhaps bumping a timeout value in the connection would help, but it seems a better fix would be for internal work like this to just run the ticket importer API controller (or model) directly instead of going through HTTP.

Traceback (most recent call last):
  File "/var/local/allura/Allura/allura/model/monq_model.py", line 258, in __call__
    self.result = func(*self.args, **self.kwargs)
  File "/var/local/forge-classic/sfx/importers/trac/tracker.py", line 18, in import_tool
    importer.import_tool(c.project, c.user, **kw)
  File "/var/local/allura/ForgeImporters/forgeimporters/trac/tickets.py", line 146, in import_tool
    export_string, validate=False)
  File "/var/local/allura/ForgeTracker/forgetracker/scripts/import_tracker.py", line 62, in import_tracker
    res = cli.call(url, doc=json.dumps(doc_import), options=json.dumps(import_options))
  File "/var/local/allura/Allura/allura/lib/import_api.py", line 56, in call
    result = urllib2.urlopen(url, urllib.urlencode(params))
  File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py", line 121, in __call__
    return self.run_and_log(self._inner, None, *args, **kwargs)
  File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py", line 126, in run_and_log
    return func(*args, **kwargs)
  File "/usr/lib64/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 400, in open
    response = self._open(req, data)
  File "/usr/lib64/python2.7/urllib2.py", line 418, in _open
    '_open', req)
  File "/usr/lib64/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 1207, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib64/python2.7/urllib2.py", line 1180, in do_open
    r = h.getresponse(buffering=True)
  File "/usr/lib64/python2.7/httplib.py", line 1030, in getresponse
    response.begin()
  File "/usr/lib64/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python2.7/httplib.py", line 365, in _read_status
    line = self.fp.readline()
  File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py", line 117, in wrapper
    return self.run_and_log(func, inst, *args, **kwargs)
  File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py", line 126, in run_and_log
    return func(*args, **kwargs)
  File "/usr/lib64/python2.7/socket.py", line 447, in readline
    data = self._sock.recv(self._rbufsize)
timeout: timed out

Discussion

    • status: open --> in-progress
    • assigned_to: Tim Van Steenburgh
     
    • status: in-progress --> code-review
    • Size: --> 2
     
  • allura:tv/6728

     
  • Cory Johns - 2013-10-07
    • QA: Cory Johns
     
  • Cory Johns - 2013-10-08
    • status: code-review --> closed
     

Log in to post a comment.