remote: OperationalError: ERROR: no more connections allowed (max_client_conn)

Issue #17692 closed
Phan Van Linh
created an issue
remote: OperationalError: ERROR:  no more connections allowed (max_client_conn)
remote: 
To bitbucket.org:....git
 ! [remote rejected] improvement/refactor-device-repo -> improvement/refactor-device-repo (pre-receive hook declined)
error: failed to push some refs to 'git@bitbucket.org:....git'

I have this error when push a new branch to bitbucket. Last week, it worked normally and I don't change anything. Please help me fix this problem

Comments (8)

  1. Viet Nguyen Trong

    I got same issue today, everything worked well yesterday

    remote: Traceback (most recent call last):
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    remote:     response = wrapped_callback(request, *callback_args, **callback_kwargs)
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/newrelic/hooks/framework_django.py", line 544, in wrapper
    remote:     return wrapped(*args, **kwargs)
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    remote:     return view_func(*args, **kwargs)
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/apps/httphooks/views.py", line 43, in inner
    remote:     key='suppress-console-messages')
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/models/query.py", line 660, in exists
    remote:     return self.query.has_results(using=self.db)
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/models/sql/query.py", line 494, in has_results
    remote:     return compiler.has_results()
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 806, in has_results
    remote:     return bool(self.execute_sql(SINGLE))
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 833, in execute_sql
    remote:     cursor = self.connection.cursor()
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/backends/base/base.py", line 233, in cursor
    remote:     cursor = self.make_cursor(self._cursor())
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/backends/base/base.py", line 204, in _cursor
    remote:     self.ensure_connection()
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
    remote:     self.connect()
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
    remote:     six.reraise(dj_exc_type, dj_exc_value, traceback)
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
    remote:     self.connect()
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/backends/base/base.py", line 171, in connect
    remote:     self.connection = self.get_new_connection(conn_params)
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection
    remote:     connection = Database.connect(**conn_params)
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/newrelic/hooks/database_dbapi2.py", line 104, in __call__
    remote:     *args, **kwargs), self._nr_dbapi2_module, (args, kwargs))
    remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect
    remote:     conn = _connect(dsn, connection_factory=connection_factory, async=async)
    remote: OperationalError: ERROR:  no more connections allowed (max_client_conn)
    remote:
    To https://bitbucket.org/MobileFolk/kyssmet_frontend.git
     ! [remote rejected] daind-dev -> daind-dev (pre-receive hook declined)
    
  2. Log in to comment