- **status**: code-review --> closed
--- ** [tickets:#6728] Trac importer gets internal timeouts** **Status:** closed **Labels:** trac import **Created:** Wed Oct 02, 2013 04:28 PM UTC by Dave Brondsema **Last Updated:** Mon Oct 07, 2013 07:53 PM UTC **Owner:** Tim Van Steenburgh 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 ~~~~ --- Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.