Ticket #934 (new defect)

Opened 12 years ago

Last modified 11 years ago

(DI-2-) (DI-3-) (DI-4-) semantic search returning 'server error'

Reported by: selatham Owned by: sdonegan
Priority: critical Milestone: NDG3
Component: discovery Version:
Keywords: DiscoveryService Cc: spascoe

Description

For example when using 'Northern Ireland' and 'land cover' as input to the call to voca b server.

From: Pylons Errors [mailto:paste@proglue.badc.rl.ac.uk] 
Sent: 15 January 2008 15:12
To: Latham, SE (Sue)
Subject: WebApp Error: <type 'exceptions.IOError'>: Error obtaining
remotefile: Response code [400]


Module ows_server.controllers.discovery:302 in semantic
<<          vs=VS(proxyServer=self.cf.get('DEFAULT','proxyServer'))
            if 'searchString' in self.inputs:
 
[broader,narrower,synonyms]=vs.getRelated(self.inputs['searchString'])
                #get a base string for the links to new searches
                if 'start' in self.inputs: del self.inputs['start']>>
[broader,narrower,synonyms]=vs.getRelated(self.inputs['searchString'])
Module ows_server.models.DocumentRetrieve:189 in getRelated
<<
url='%sgetRelatedRecordByCriteria?subjectText=%s&predicate=255&inference
s=True&objectList=%slist/P211/current'%(self.path,subject,self.ns)
            self.url=url
            doc=genericHTTP.get(self,url)
            x=ET.fromstring(doc)
            b=x.findall('*/{urn:vocab/types}broadMatch')>>
doc=genericHTTP.get(self,url)
Module ows_server.models.DocumentRetrieve:156 in get
<<              return f.read()
            else:
                raise IOError(response)  
                
    class ndgHTTP(genericHTTP):>>  raise IOError(response)
IOError: Error obtaining remote file: Response code [400]


CGI Variables	
CONTENT_LENGTH	 '0'	
CONTENT_TYPE	 'application/x-www-form-urlencoded; charset=UTF-8'	
HTTP_ACCEPT	 'text/javascript, text/html, application/xml, text/xml,
*/*'	
HTTP_ACCEPT_CHARSET	 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'	
HTTP_ACCEPT_ENCODING	 'gzip,deflate'	
HTTP_ACCEPT_LANGUAGE	 'en-us,en;q=0.5'	
HTTP_CACHE_CONTROL	 'no-cache'	
HTTP_CONNECTION	 'Keep-Alive'	
HTTP_COOKIE
'ows_server=8dbf13fa0b3048d82e178e4eaee62e9f9bea67910bcaafa0abe40a57a349
f31c'	
HTTP_HOST	 'localhost:8081'	
HTTP_MAX_FORWARDS	 '10'	
HTTP_PRAGMA	 'no-cache'	
HTTP_REFERER
'http://ndgprod.badc.rl.ac.uk/discovery?searchString=Northern+Ireland&te
xtTarget=All'	
HTTP_USER_AGENT	 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11'	
HTTP_X_FORWARDED_FOR	 '130.246.120.8'	
HTTP_X_FORWARDED_HOST	 'ndgprod.badc.rl.ac.uk'	
HTTP_X_FORWARDED_SERVER	 'ndgprod.badc.rl.ac.uk'	
HTTP_X_PROTOTYPE_VERSION	 '1.5.0'	
HTTP_X_REQUESTED_WITH	 'XMLHttpRequest'	
PATH_INFO	 '/semantic'	
QUERY_STRING	 'searchString=Northern+Ireland&textTarget=All'	
REMOTE_ADDR	 '127.0.0.1'	
REQUEST_METHOD	 'POST'	
SERVER_NAME	 '0.0.0.0'	
SERVER_PORT	 '8081'	
SERVER_PROTOCOL	 'HTTP/1.1'	

Configuration	
__file__	 '/etc/ndg/conf/development.ini'	
app_conf	 {'session_data_dir': '/etc/ndg/conf/data/sessions',
'tmp_dir': '/etc/ndg/conf/data/tmp', 'csml_dir':
'/research/home/spascoe/host/saturn/data/ddc_data/obs', 'package':
'ows_server', 'publish_dir':
'/etc/ndg/conf/ows_server/private/filestore', 'ows_common_config':
'/etc/ndg/conf/eg_ows_capabilities.xml', 'session_secret': 'somesecret',
'configfile': '/etc/ndg/conf/ndgDiscovery.config', 'cache_dir':
'/etc/ndg/conf/data', 'cache_data_dir': '/etc/ndg/conf/data/cache',
'session_key': 'ows_server'}	
cache_dir	 '/etc/ndg/conf/data'	
configfile	 '/etc/ndg/conf/ndgDiscovery.config'	
csml_dir	 '/research/home/spascoe/host/saturn/data/ddc_data/obs'	
debug	 'false'	
email_to	 's.e.latham@rl.ac.uk'	
error_email_from	 '"Pylons Errors" <paste@proglue.badc.rl.ac.uk>'

global_conf	 {'error_email_from': '"Pylons Errors"
<paste@proglue.badc.rl.ac.uk>', '__file__':
'/etc/ndg/conf/development.ini', 'smtp_server': 'outbox.rl.ac.uk',
'here': '/etc/ndg/conf', 'email_to': 's.e.latham@rl.ac.uk', 'debug':
'false'}	
here	 '/etc/ndg/conf'	
ows_common_config	 '/etc/ndg/conf/eg_ows_capabilities.xml'	
publish_dir	 '/etc/ndg/conf/ows_server/private/filestore'	
session_key	 'ows_server'	
session_secret	 'somesecret'	
smtp_server	 'outbox.rl.ac.uk'	
tmp_dir	 '/etc/ndg/conf/data/tmp'	

WSGI Variables	
application	 <paste.httpexceptions.HTTPExceptionHandler object at
0x1518a50>	
beaker.cache	 <beaker.cache.CacheManager object at 0x150ded0>	
beaker.session	 {'_accessed_time': 1200409912.3648939, 'results':
'/discovery?searchString=Northern+Ireland&textTarget=All',
'_creation_time': 1200409809.1867099}	
ndgConfig	 <ows_server.models.Utilities.myConfig instance at
0x150c6c8>	
paste.expected_exceptions	 [<class
'paste.httpexceptions.HTTPException'>]	
paste.httpexceptions	 <paste.httpexceptions.HTTPExceptionHandler
object at 0x1518a50>	
paste.httpserver.thread_pool	 <paste.httpserver.ThreadPool object at
0xa54790>	
paste.parsed_dict_querystring	 (MultiDict([('searchString', 'Northern
Ireland'), ('textTarget', 'All')]),
'searchString=Northern+Ireland&textTarget=All')	
paste.parsed_formvars	 (MultiDict([]), <socket._fileobject object at
0x7b76e0 length=0>)	
paste.parsed_querystring	 ([('searchString', 'Northern Ireland'),
('textTarget', 'All')], 'searchString=Northern+Ireland&textTarget=All')	
paste.registry	 <paste.registry.Registry object at 0x18c1650>	
paste.throw_errors	 True	
pylons.environ_config	 {'cache': 'beaker.cache', 'session':
'beaker.session'}	
pylons.routes_dict	 {'action': u'semantic', 'controller':
u'discovery'}	
routes.route	 <routes.base.Route object at 0x14976d0>	
wsgi process	 'Multithreaded'	
wsgiorg.routing_args	 ((), {'action': u'semantic', 'controller':
u'discovery'})	


Change History

comment:1 Changed 12 years ago by lawrence

I think this exposes two bugs:

  • Not handling 400 responses properly, and
  • Not handling compound queries properly ...

comment:2 Changed 12 years ago by lawrence

  • Status changed from new to assigned
  • Cc rkl added
  • Priority changed from blocker to critical

I'll fix the first immediately, and look to Roy for the correct methodology of handling the second ...

comment:3 Changed 12 years ago by lawrence

OK: there is a fix for the error response in changeset:3249.

comment:4 Changed 12 years ago by lawrence

  • Priority changed from critical to desirable

comment:5 Changed 12 years ago by selatham

  • Status changed from assigned to new
  • Owner changed from lawrence to selatham

Passed to Sue for system testing /implementation.

comment:6 Changed 12 years ago by selatham

  • Owner changed from selatham to spascoe

No time to implement now. Presumably this has been incorporated in new version of discovery/browse that Calum and Stephen have written? So will be tested and deployed when that is?

comment:7 Changed 12 years ago by selatham

  • Owner changed from spascoe to lawrence
  • Cc spascoe added; rkl removed

comment:8 Changed 11 years ago by lawrence

  • Keywords DiscoveryService added
  • Component changed from DiscoveryService to discovery

Moved from DiscoveryService? component to discovery as part of NDG2 cleanup

comment:9 Changed 11 years ago by lawrence

  • Priority changed from desirable to critical
  • Owner changed from lawrence to sdonegan
  • Milestone changed from NDG2 Cleanup to NDG3

comment:10 Changed 11 years ago by sdonegan

  • Summary changed from semantic search returning 'server error' to (DI-2-) (DI-3-) (DI-4-) semantic search returning 'server error'
Note: See TracTickets for help on using tickets.