Posts Tagged ‘exception’
CDS-Invenio: Bibindex ‘exception caught: string index out of range’ (a debug how-to)
It is not the first time I have errors in bibindex. If you are experimenting problems with bibindex, such as: bibindex is failing every time I run it (ERROR:idxWORD09F flush ended). ERR log says: ’2011-03-01 14:16:21 –> Exception caught: string index out of range’. First thing you should do is follow the steps to try [...]
CDS Invenio v1.0 bibclassify exceptions when 404 error
If you are getting exceptions like the following in your CDS Invenio v1.0: Exception (bibclassify_webinterface.py:135:get_keywords_body) Exception (webinterface_handler.py:378:_handler) The following problem occurred on <http://yourhost> (Invenio 1.0.0-rc0)>> 2011-01-12 03:13:27 -> SERVER_RETURN: 404 404 >>> >>> User details agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E) email: guest group: [...]
CDS Invenio: bibrank exceptions [SOLVED]
The problem Our Invenio was spitting exceptions like the following: Forced traceback (most recent call last) File "/usr/lib64/python2.4/site-packages/invenio/bibrank.py", line 150, in task_run_core func_object(key) File "/usr/lib64/python2.4/site-packages/invenio/bibrank_word_indexer.py", line 1210, in word_similarity return word_index(run) File "/usr/lib64/python2.4/site-packages/invenio/bibrank_word_indexer.py", line 839, in word_index update_rnkWORD(options["table"], options["modified_words"]) Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/invenio/bibrank_word_indexer.py", line 1114, in update_rnkWORD Nj[j] = Nj.get(j, 0) + [...]
CDS-Invenio: Exception caught: bibindex exception: Duplicate entry ’1-TEMPORARY’ for key 1
Yesterday bibindex task failed to run (it warned me with an email). So I went into bibsched, looked for the bibindex’s task id (2637) and then I checked the log files related to that task, which are: /soft/cds-invenio/var/log/bibsched_task_2637.log /soft/cds-invenio/var/log/bibsched_task_2637.err In bibsched_task_2637.err I found: 2009-09-15 13:10:25 –> Exception caught: (1062, "Duplicate entry ’1-TEMPORARY’ for key 1") [...]
CDS-Invenio: truncate sessions
Sometimes errors are produced in websession module and CDS-Invenio keeps raising exceptions and sending mails to the repository admin (which I must say can be very frustrating). A quick fix is to delete all your sessions (and hopefully prevent those errors to happen) can be done using dbexec $ sudo apachectl stop $ echo ‘TRUNCATE [...]