Comment 1 for bug 1472139

Revision history for this message
Daniele ViganĂ² (daniele-vigano) wrote :

The error is:
Internal Server Error: /exposure/get_all_studies
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/decorators/http.py", line 147, in inner
    response = func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/openquakeplatform/utils.py", line 21, in wrapped
    return func(request)
  File "/usr/local/lib/python2.7/dist-packages/openquakeplatform/utils.py", line 66, in wrapped
    return func(request)
  File "/usr/local/lib/python2.7/dist-packages/openquakeplatform/exposure/views.py", line 445, in get_all_studies
    for sr in map(StudyRecord._make, util._get_all_studies()):
  File "/usr/local/lib/python2.7/dist-packages/openquakeplatform/exposure/util.py", line 98, in _get_all_studies
    cursor.execute(query)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 58, in execute
    six.reraise(utils.DatabaseError, utils.DatabaseError(*tuple(e.args)), sys.exc_info()[2])
  File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 54, in execute
    return self.cursor.execute(query, args)
DatabaseError: SSL connection has been closed unexpectedly