1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues


Issue #1898 resolved

hanging/db failure

Ben Eliott
created an issue

Hi, Looks like you have a db connection issue. Connections are currently hanging on both web browser view of repo and hg push to a repo.

Hg push eventually returns:

remote: Traceback (most recent call last): remote: File "/usr/local/bin/conq", line 91, in <module> remote: if user_can_read(dest_user, dest_repo, user): remote: File "/usr/local/bin/conq", line 44, in user_can_read remote: repo = Repository.objects.get(ownerusername=user, slug=repo) remote: File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/db/models/manager.py", line 120, in get remote: return self.get_query_set().get(args, *kwargs) remote: File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/db/models/query.py", line 300, in get remote: num = len(clone) remote: File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/db/models/query.py", line 81, in len remote: self._result_cache = list(self.iterator()) remote: File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/db/models/query.py", line 238, in iterator remote: for row in self.query.results_iter(): remote: File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/db/models/sql/query.py", line 287, in results_iter remote: for rows in self.execute_sql(MULTI): remote: File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/db/models/sql/query.py", line 2368, in execute_sql remote: cursor = self.connection.cursor() remote: File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/db/backends/init__.py", line 81, in cursor remote: cursor = self._cursor() remote: File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/db/backends/postgresql_psycopg2/base.py", line 98, in _cursor remote: self.connection = Database.connect(**conn_params) remote: psycopg2.OperationalError: server closed the connection unexpectedly remote: This probably means the server terminated abnormally remote: before or while processing the request. remote: