Task #10231 (closed)
Bug: Handle "No Processor Available"
| Reported by: | omero-qa | Owned by: | wmoore |
|---|---|---|---|
| Priority: | major | Milestone: | OMERO-4.4.9 |
| Component: | Insight | Version: | 4.4.8 |
| Keywords: | n.a. | Cc: | jburel |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
When showing script UI dialog, need to handle "No Processor Available" in a nice way (don't give error submission dialog).
https://www.openmicroscopy.org/qa2/qa2/qa/feedback/4862/
Traceback (most recent call last):
File "/opt/OMERO/OMERO.server/lib/python/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/opt/OMERO/OMERO.server/lib/python/omeroweb/decorators.py", line 376, in wrapped
retval = f(request, *args, **kwargs)
File "/opt/OMERO/OMERO.server/lib/python/omeroweb/decorators.py", line 413, in wrapper
context = f(request, *args, **kwargs)
File "/opt/OMERO/OMERO.server/lib/python/omeroweb/webclient/views.py", line 2232, in script_ui
params = scriptService.getParams(long(scriptId))
File "/opt/OMERO/OMERO.server/lib/python/omero/gateway/__init__.py", line 3271, in __call__
return self.handle_exception(e, *args, **kwargs)
File "/opt/OMERO/OMERO.server/lib/python/omeroweb/webclient/webclient_gateway.py", line 1875, in handle_exception
e, *args, **kwargs)
File "/opt/OMERO/OMERO.server/lib/python/omero/gateway/__init__.py", line 3268, in __call__
return self.f(*args, **kwargs)
File "/opt/OMERO/OMERO.server/lib/python/omero_api_IScript_ice.py", line 138, in getParams
return _M_omero.api.IScript._op_getParams.invoke(self, ((scriptID, ), _ctx))
NoProcessorAvailable: exception ::omero::NoProcessorAvailable
{
serverStackTrace =
serverExceptionClass =
message = No processor available! [0 response(s)]
processorCount = 0
}
<WSGIRequest
GET:<QueryDict: {u'Dataset': [u'103']}>,
POST:<QueryDict: {}>,
COOKIES:{'__utma': '189522035.783780042.1312390001.1351276856.1353356893.25',
'__utmz': '189522035.1351276856.24.17.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)',
'sessionid': 'c17336fc4b6d4e4baabdeb05ad17709b'},
META:{'DOCUMENT_ROOT': '/etc/apache2/htdocs',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTPS': 'on',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': '__utma=189522035.783780042.1312390001.1351276856.1353356893.25; __utmz=189522035.1351276856.24.17.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); sessionid=c17336fc4b6d4e4baabdeb05ad17709b',
'HTTP_HOST': 'omero.indiana.edu',
'HTTP_REFERER': 'https://omero.indiana.edu/omero/webclient/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0',
'PATH': '/usr/local/bin:/usr/bin:/bin',
'PATH_INFO': u'/webclient/script_ui/2/',
'PATH_TRANSLATED': '/etc/apache2/htdocs/webclient/script_ui/2/',
'QUERY_STRING': 'Dataset=103',
'REMOTE_ADDR': '149.160.132.99',
'REMOTE_PORT': '52181',
'REQUEST_METHOD': 'GET',
'REQUEST_URI': '/omero/webclient/script_ui/2/?Dataset=103',
'SCRIPT_FILENAME': '/opt/OMERO/OMERO.server/var/omero.fcgi',
'SCRIPT_NAME': u'/omero',
'SCRIPT_URI': 'https://omero.indiana.edu/omero/webclient/script_ui/2/',
'SCRIPT_URL': '/omero/webclient/script_ui/2/',
'SERVER_ADDR': '149.165.228.194',
'SERVER_ADMIN': '[no address given]',
'SERVER_NAME': 'omero.indiana.edu',
'SERVER_PORT': '443',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '<address>Apache/2.2.16 (Debian) Server at omero.indiana.edu Port 443</address>\n',
'SERVER_SOFTWARE': 'Apache/2.2.16 (Debian)',
'SSL_TLS_SNI': 'omero.indiana.edu',
'wsgi.errors': <flup.server.fcgi_base.TeeOutputStream object at 0x3c07690>,
'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x3b5e310>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'https',
'wsgi.version': (1, 0)}>
Change History (6)
comment:1 Changed 6 years ago by wmoore
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 6 years ago by Will Moore <will@…>
(In [88eb57bd4f95c7f0cd5092b237e8f69bdd1d945d/ome.git] on branch develop) Better handling for 'No processor available' See #10231
comment:3 Changed 6 years ago by wmoore
- Milestone changed from Unscheduled to OMERO-4.4.9
- Priority changed from minor to major
- Resolution fixed deleted
- Status changed from closed to reopened
- Version set to 4.4.8
Also need to handle the same exception in
def script_run():
comment:4 Changed 6 years ago by jburel
- Cc jburel added
- Component changed from from QA to Insight
comment:5 Changed 6 years ago by wmoore
- Resolution set to fixed
- Status changed from reopened to closed
comment:6 Changed 6 years ago by Will Moore <will@…>
(In [baa184e0542801427e06fe9026ae6c2e4b449e23/ome.git] on branch develop) webclient run_script() handles 'No processor available'. See #10231
Fixed https://github.com/openmicroscopy/openmicroscopy/pull/639/