When GED backend is restarted Exposure stops working
Bug #1472139 reported by
Daniele Viganò
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Platform |
Fix Committed
|
High
|
Paolo Tormene |
Bug Description
When for some reason the GED DB server is not available or it is restarted (PostgreSQL restart, network issues) thus the connections are closed on the PostgreSQL side the Exposure application stops working until the whole platform is restarted.
This happens also if the platform server is started before the GED DB is up and running.
The GED API should trap the exception and it should try to re-establish the connection to the GED server. If it's unable to re-establish the connection a clear error should be reported (at least in the logs).
Changed in oq-platform: | |
status: | New → In Progress |
Changed in oq-platform: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
The error is: get_all_ studies python2. 7/dist- packages/ django/ core/handlers/ base.py" , line 115, in get_response python2. 7/dist- packages/ django/ views/decorator s/http. py", line 147, in inner lib/python2. 7/dist- packages/ openquakeplatfo rm/utils. py", line 21, in wrapped lib/python2. 7/dist- packages/ openquakeplatfo rm/utils. py", line 66, in wrapped lib/python2. 7/dist- packages/ openquakeplatfo rm/exposure/ views.py" , line 445, in get_all_studies ._make, util._get_ all_studies( )): lib/python2. 7/dist- packages/ openquakeplatfo rm/exposure/ util.py" , line 98, in _get_all_studies execute( query) python2. 7/dist- packages/ django/ db/backends/ postgresql_ psycopg2/ base.py" , line 58, in execute reraise( utils.DatabaseE rror, utils.DatabaseE rror(*tuple( e.args) ), sys.exc_info()[2]) python2. 7/dist- packages/ django/ db/backends/ postgresql_ psycopg2/ base.py" , line 54, in execute execute( query, args)
Internal Server Error: /exposure/
Traceback (most recent call last):
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
response = func(request, *args, **kwargs)
File "/usr/local/
return func(request)
File "/usr/local/
return func(request)
File "/usr/local/
for sr in map(StudyRecord
File "/usr/local/
cursor.
File "/usr/lib/
six.
File "/usr/lib/
return self.cursor.
DatabaseError: SSL connection has been closed unexpectedly