Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OperationalError: (1203, "User newsdiffs already has more than 'max_user_connections' active connections") #7

Open
carlgieringer opened this issue Nov 6, 2017 · 0 comments
Labels

Comments

@carlgieringer
Copy link
Member

carlgieringer commented Nov 6, 2017

Traceback (most recent call last):

  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 91, in _wrapped_view
    result = middleware.process_request(request)

  File "/usr/lib/python2.7/site-packages/django/middleware/cache.py", line 147, in process_request
    cache_key = get_cache_key(request, self.key_prefix, 'GET', cache=self.cache)

  File "/usr/lib/python2.7/site-packages/django/utils/cache.py", line 212, in get_cache_key
    headerlist = cache.get(cache_key, None)

  File "/usr/lib/python2.7/site-packages/django/core/cache/backends/db.py", line 61, in get
    cursor = connections[db].cursor()

  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 162, in cursor
    cursor = util.CursorWrapper(self._cursor(), self)

  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 132, in _cursor
    self.ensure_connection()

  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 127, in ensure_connection
    self.connect()

  File "/usr/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)

  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 127, in ensure_connection
    self.connect()

  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 115, in connect
    self.connection = self.get_new_connection(conn_params)

  File "/usr/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 435, in get_new_connection
    conn = Database.connect(**conn_params)

  File "/usr/lib64/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)

  File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 187, in __init__
    super(Connection, self).__init__(*args, **kwargs2)

OperationalError: (1203, "User newsdiffs already has more than 'max_user_connections' active connections")


<WSGIRequest
path:/browse/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'__utma': '29264035.694119331.1502942656.1502972653.1502972675.3',
 '__utmb': '29264035.4.10.1502972675',
 '__utmc': '29264035',
 '__utmt': '1',
 '__utmz': '29264035.1502972675.3.2.utmcsr=twitter.com|utmccn=buffer|utmcmd=social|utmcct=bufferd2263'},
META:{'CONTEXT_DOCUMENT_ROOT': '/afs/sipb.mit.edu/contrib/newsdiffs/web_scripts/newsdiffs.org',
 'CONTEXT_PREFIX': '',
 'DOCUMENT_ROOT': '/afs/sipb.mit.edu/contrib/newsdiffs/web_scripts/newsdiffs.org',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
 'HTTP_CONNECTION': 'close',
 'HTTP_COOKIE': '__utmt=1; __utma=29264035.694119331.1502942656.1502972653.1502972675.3; __utmb=29264035.4.10.1502972675; __utmc=29264035; __utmz=29264035.1502972675.3.2.utmcsr=twitter.com|utmccn=buffer|utmcmd=social|utmcct=bufferd2263',
 'HTTP_HOST': 'newsdiffs.org',
 'HTTP_REFERER': 'http://newsdiffs.org/',
 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36',
 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin',
 'PATH_INFO': u'/browse/',
 'PATH_TRANSLATED': 'redirect:/mysite.fcgi/browse//',
 'QUERY_STRING': '',
 'REDIRECT_STATUS': '200',
 'REDIRECT_URL': '/browse/',
 'REMOTE_ADDR': '73.232.61.122',
 'REMOTE_PORT': '54553',
 'REQUEST_METHOD': 'GET',
 'REQUEST_SCHEME': 'http',
 'REQUEST_URI': '/browse/',
 'SCRIPT_FILENAME': '/afs/sipb.mit.edu/contrib/newsdiffs/web_scripts/newsdiffs.org/mysite.fcgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '18.181.0.46',
 'SERVER_ADMIN': '[email protected]',
 'SERVER_NAME': 'newsdiffs.org',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '',
 'SERVER_SOFTWARE': 'Apache',
 'wsgi.errors': <flup.server.fcgi_base.OutputStream object at 0x7f51fc215250>,
 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x7f51fc215710>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant