Another WebStat exception:
* 2014-02-18 05:08:31 -> TypeError: Argument 'rhs' has incorrect type (expected
lib.intbitset.intbitset, got tuple) (webstat_engine.py:1435:get_list_link)
** User details
agent: Mozilla/5.0 (Macintosh; Intel Mac OS
X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1
Safari/537.73.11
email: [email protected]
group: []
guest: 0
language: de
login_method: Local
nickname: admin
precached_canseehiddenmarctags: True
precached_permitted_restricted_collections: []
precached_sendcomments: True
precached_useadmin: True
precached_usealerts: True
precached_useapprove: True
precached_usebaskets: True
precached_usegroups: True
precached_useloans: True
precached_usemessages: True
precached_usepaperattribution: True
precached_usepaperclaim: True
precached_usestats: True
precached_viewclaimlink: False
precached_viewsubmissions: True
referer:
<https://invenio.cerebrale.net/stats/?ln=de>
remote_host:
remote_ip: 92.62.79.37
session: aaea84a9581c398806e2b71d967d801d
uid: 1
uri: </stats/system_health?ln=de>
** Traceback details
Traceback (most recent call last):
File
"/usr/local/lib/python2.6/dist-packages/invenio/webinterface_handler_wsgi.py",
line 514, in application
ret = invenio_handler(req)
File "/usr/local/lib/python2.6/dist-packages/invenio/webinterface_handler.py",
line 371, in _profiler
return _handler(req)
File "/usr/local/lib/python2.6/dist-packages/invenio/webinterface_handler.py",
line 433, in _handler
return root._traverse(req, path, False, guest_p)
File "/usr/local/lib/python2.6/dist-packages/invenio/webinterface_handler.py",
line 240, in _traverse
return obj._traverse(req, path, do_head, guest_p)
File "/usr/local/lib/python2.6/dist-packages/invenio/webinterface_handler.py",
line 253, in _traverse
result = _check_result(req, obj(req, form))
File "/usr/local/lib/python2.6/dist-packages/invenio/webstat_webinterface.py",
line 119, in system_health
body=perform_display_current_system_health(ln=ln),
File "/usr/local/lib/python2.6/dist-packages/invenio/webstat.py", line 1118,
in perform_display_current_system_health
health_indicators.append((" - webcoll", get_list_link('collect')))
File "/usr/local/lib/python2.6/dist-packages/invenio/webstat_engine.py", line
1435, in get_list_link
if list_registers == ():
TypeError: Argument 'rhs' has incorrect type (expected lib.intbitset.intbitset,
got tuple)
** Stack frame details
Frame get_list_link in
/usr/local/lib/python2.6/dist-packages/invenio/webstat_engine.py at line 1435
-------------------------------------------------------------------------------
1432 list_registers = get_modified_records_since(coll_last_update)
1433
1434 # build the link
----> 1435 if list_registers == ():
1436 return "Up to date"
1437 link = '<a href="' + CFG_SITE_URL + '/search?p='
1438 for register in list_registers:
-------------------------------------------------------------------------------
category = 'None'
process = "'collect'"
coll_last_update = "'2014-02-18 05:03:59'"
list_registers = 'intbitset([])'
file_coll_last_update = "<closed file
'/opt/invenio/var/cache/collections/last_updated', mode 'r' at 0x2b5d8c09fb70>"
Frame perform_display_current_system_health in
/usr/local/lib/python2.6/dist-packages/invenio/webstat.py at line 1118
-------------------------------------------------------------------------------
1115 health_indicators.append((" - " + str(sc),
get_list_link('sort', sc)))
1116 health_indicators.append(None)
1117 health_indicators.append(("Records pending for webcolling
since", last_coll))
----> 1118 health_indicators.append((" - webcoll",
get_list_link('collect')))
1119 health_indicators.append(None)
1120
1121 # Append basket stats to the health box
-------------------------------------------------------------------------------
ln = "'de'"
last_sort = "''"
last_index = "''"
conf = '<ConfigParser.ConfigParser instance at
0x2b5d8c3f5950>'
new_records = '0L'
tomorrow = "'2014-02-19'"
sess = '(0L, 0L)'
bibsched = "[('ACK DONE WITH ERRORS', 1), ('ACK ERRORS
REPORTED', 61), ('CERROR_DELETED', 2), ('DONE', 84), ('ERRORS
REPORTED_DELETED', 9), ('WAITING', 12), ('WAITING_DELETED', 8)]"
rank_categories = "('wrd', 'demo_jif', 'citation',
'citerank_citation_t', 'citerank_pagerank_c', 'citerank_pagerank_t')"
rc = "'citerank_pagerank_t'"
today = "'2014-02-18'"
tot_records = '1968L'
args = "{'t_format': '%Y-%m-%d', 'granularity': 'day',
't_start': '2014-02-17', 'collection': 'All', 't_end': '2014-02-18'}"
yesterday = "'2014-02-17'"
health_indicators = "[('Uptime cmd', '05:08:28 up 169 days, 9:27, 0
users, load average: 0.09, 0.10, 0.09'), ('Apache processes', '11'), None,
('Total active visitors', 0L), (' Logged in', 0L), None, ('Searches since
midnight', 0), (' Simple', 0), (' Advanced', 0), None, ('Total records',
1968L), (' New records since midnight', 0L), None, ('BibSched queue', 177),
(' ACK DONE WITH ERRORS', '1'), (' ACK ERRORS REPORTED', '61'), ('
CERROR_DELETED', '2'), (' DONE', '84'), (' ERRORS REPORTED_D [...]
now = 'datetime.datetime(2014, 2, 18, 5, 8, 27,
279570)'
sort_categories = "('latest first', 'title', 'author', 'report
number', 'most cited')"
ConfigParser = '<class ConfigParser.ConfigParser at
0x2b5d88f5cd70>'
searches = "[('2014-02-18 00:00:00', (0, 0))]"
index_categories = "('global', 'collection', 'abstract', 'author',
'keyword', 'reference', 'reportnumber', 'title', 'fulltext', 'year', 'journal',
'collaboration', 'affiliation', 'exactauthor', 'caption', 'firstauthor',
'exactfirstauthor', 'authorcount')"
ic = "'authorcount'"
last_rank = "''"
item = "('WAITING_DELETED', 8)"
sc = "'most cited'"
x = "('WAITING_DELETED', 8)"
last_coll = "''"
Frame system_health in
/usr/local/lib/python2.6/dist-packages/invenio/webstat_webinterface.py at line
119
-------------------------------------------------------------------------------
116 ln=ln)
117
118 return page(title="Current system health",
----> 119
body=perform_display_current_system_health(ln=ln),
120 navtrail="""<a class="navtrail"
href="%s/stats/%s">Statistics</a>""" % \
121 (CFG_SITE_URL, (ln != CFG_SITE_LANG and '?ln=' +
ln) or ''),
122 description="Invenio, Statistics, Current system
health",
-------------------------------------------------------------------------------
auth_msg = "'Authorization granted'"
form = "{'ln': [Field('ln', 'de')]}"
ln = "'de'"
self =
'<invenio.webstat_webinterface.WebInterfaceStatsPages object at 0x2b5d8c3e1190>'
req =
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x2b5d8c3e1e90>'
user_info = "{'uid': 1, 'agent': 'Mozilla/5.0 (Macintosh;
Intel Mac OS X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1
Safari/537.73.11', 'uri': '/stats/system_health?ln=de', 'precached_usegroups':
True, 'session': 'aaea84a9581c398806e2b71d967d801d', 'precached_useadmin':
True, 'group': [], 'login_method': 'Local', 'precached_usepaperattribution':
True, 'precached_usepaperclaim': True, 'precached_viewsubmissions': True,
'email': '[email protected]', 'precached_usealerts': True, 'precach [...]
auth_code = '0'
argd = "{'ln': 'de'}"
Frame _traverse in
/usr/local/lib/python2.6/dist-packages/invenio/webinterface_handler.py at line
253
-------------------------------------------------------------------------------
250 req.uri not in CFG_NO_LANG_RECOGNITION_URIS:
251 ln = get_preferred_user_language(req)
252 form.add_field('ln', ln)
----> 253 result = _check_result(req, obj(req, form))
254 return result
255
256 def __call__(self, req, form):
-------------------------------------------------------------------------------
obj = '<bound method
WebInterfaceStatsPages.system_health of
<invenio.webstat_webinterface.WebInterfaceStatsPages object at 0x2b5d8c3e1190>>'
name = "'system_health'"
form = "{'ln': [Field('ln', 'de')]}"
guest_p = '0'
req =
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x2b5d8c3e1e90>'
component = "'system_health'"
do_head = 'False'
path = '[]'
self =
'<invenio.webstat_webinterface.WebInterfaceStatsPages object at 0x2b5d8c3e1190>'
Frame _traverse in
/usr/local/lib/python2.6/dist-packages/invenio/webinterface_handler.py at line
240
-------------------------------------------------------------------------------
237 # renderer. We even pass it the parsed form arguments.
238 if path:
239 if hasattr(obj, '_traverse'):
----> 240 return obj._traverse(req, path, do_head, guest_p)
241 else:
242 raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND
243
-------------------------------------------------------------------------------
obj =
'<invenio.webstat_webinterface.WebInterfaceStatsPages object at 0x2b5d8c3e1190>'
name = "'stats'"
guest_p = '0'
req =
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x2b5d8c3e1e90>'
component = "'stats'"
do_head = 'False'
path = "['system_health']"
self =
'<invenio.webinterface_layout.WebInterfaceInvenio object at 0x2b5d8c3e1610>'
Frame _handler in
/usr/local/lib/python2.6/dist-packages/invenio/webinterface_handler.py at line
455
-------------------------------------------------------------------------------
452 if 'debug' in args:
453 remote_debugger.error_msg(args['debug'])
454 register_exception(req=req, alert_admin=True)
----> 455 raise
456
457 # Serve an error by default.
458 raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND
-------------------------------------------------------------------------------
req =
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x2b5d8c3e1e90>'
allowed_methods = "('GET', 'POST', 'HEAD', 'OPTIONS', 'PUT')"
g = 'None'
guest_p = '0'
args = "{'ln': ['de']}"
uri = "'/stats/system_health'"
path = "['stats', 'system_health']"
root =
'<invenio.webinterface_layout.WebInterfaceInvenio object at 0x2b5d8c3e1610>'
bad_msie = 'None'
Frame _profiler in
/usr/local/lib/python2.6/dist-packages/invenio/webinterface_handler.py at line
371
-------------------------------------------------------------------------------
368 raise Exception('Debugging requested, but no
debugger registered: "%s"' % args['debug'])
369 return _handler(req)
370 else:
----> 371 return _handler(req)
372
373 def _handler(req):
374 """ This handler is invoked by mod_python with the apache
request."""
-------------------------------------------------------------------------------
user_info = "{'uid': 1, 'agent': 'Mozilla/5.0 (Macintosh;
Intel Mac OS X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1
Safari/537.73.11', 'uri': '/stats/system_health?ln=de', 'precached_usegroups':
True, 'session': 'aaea84a9581c398806e2b71d967d801d', 'precached_useadmin':
True, 'group': [], 'login_method': 'Local', 'precached_usepaperattribution':
True, 'precached_usepaperclaim': True, 'precached_viewsubmissions': True,
'email': '[email protected]', 'precached_usealerts': True, 'precach [...]
args = "{'ln': ['de']}"
req =
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x2b5d8c3e1e90>'
_handler = '<function _handler at 0x2b5d8c3c7758>'
Frame application in
/usr/local/lib/python2.6/dist-packages/invenio/webinterface_handler_wsgi.py at
line 531
-------------------------------------------------------------------------------
528 else:
529 req.flush()
530 except:
----> 531 register_exception(req=req, alert_admin=True)
532 if not req.response_sent_p:
533 req.status = HTTP_INTERNAL_SERVER_ERROR
534 req.headers_out['content-type'] = 'text/html'
-------------------------------------------------------------------------------
start_response = '<built-in method start_response of
mod_wsgi.Adapter object at 0x2b5d8c3ce288>'
environ = "{'mod_wsgi.listener_port': '443',
'HTTP_REFERER': 'https://invenio.cerebrale.net/stats/?ln=de',
'mod_wsgi.listener_host': '', 'SERVER_SOFTWARE': 'Apache', 'SCRIPT_NAME': '',
'mod_wsgi.handler_script': '', 'SERVER_SIGNATURE': '', 'REQUEST_METHOD': 'GET',
'PATH_INFO': '/stats/system_health', 'SERVER_PROTOCOL': 'HTTP/1.1',
'QUERY_STRING': 'ln=de', 'SSL_TLS_SNI': 'invenio.cerebrale.net',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1)
AppleWebKit/537.73.11 (KHTML, like Gecko) Ver [...]
req =
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x2b5d8c3e1e90>'
possible_handler = 'None'
possible_module = 'None'
Greetlings, Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)