Tibor Simko schrieb:

On Wed, 25 Jan 2012, Sebastian Schindler wrote:


Even webcoll -f isn't able to solve the error. It seems that one of
the HTML files can't be created.



Is there anything interesting in the task error log
(/opt/invenio/var/log/bibsched_task_2397.err) or in the global error log
(/opt/invenio/var/log/invenio.err)?

Best regards


I already posted the content of that  "bibsched_task_2397.err" in my first mail.
But I found a much more "meaningful" error in "invenio.err". Here it is:

2012-01-25 14:22:49 -> NoOptionError: No option 
'relevance_number_output_prologue' in section: 'citation'

User details

No client information available

Traceback details

Traceback (most recent call last):
 File "/usr/lib/python2.4/site-packages/invenio/bibtask.py", line 821, in 
_task_run
   if callable(task_run_fnc) and task_run_fnc():
 File "/usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py", line 
1023, in task_run_core
   coll.update_webpage_cache()
 File "/usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py", line 
319, in update_webpage_cache
   searchfor = self.create_searchfor(aas, lang),
 File "/usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py", line 
657, in create_searchfor
   return self.create_searchfor_advanced(ln)
 File "/usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py", line 
700, in create_searchfor_advanced
   rankoptions = self.create_rankoptions(ln),
 File "/usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py", line 
562, in create_rankoptions
   for (code, name) in get_bibrank_methods(self.id, ln):
 File "/usr/lib/python2.4/site-packages/invenio/bibrank_record_sorter.py", line 
157, in get_bibrank_methods
   create_rnkmethod_cache()
 File "/usr/lib/python2.4/site-packages/invenio/bibrank_record_sorter.py", line 
84, in create_rnkmethod_cache
   methods[rank_method_code]["prefix"] = config.get(cfg_function, 
"relevance_number_output_prologue")
 File "/usr/lib/python2.4/ConfigParser.py", line 520, in get
   raise NoOptionError(option, section)
NoOptionError: No option 'relevance_number_output_prologue' in section: 
'citation'
Locals by frame, innermost last

What does it mean?
To read to full of invenio.err see attachment. (I've created an empty 
invenio.err and started webcoll  -f -v9 -c Articles)




Kinds regards,

Sebastian Schindler





-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------

Kennen Sie schon unsere app? http://www.fz-juelich.de/app
>> 2012-01-25 14:22:49 -> NoOptionError: No option 
>> 'relevance_number_output_prologue' in section: 'citation'

>>> User details

No client information available

>>> Traceback details

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/invenio/bibtask.py", line 821, in 
_task_run
    if callable(task_run_fnc) and task_run_fnc():
  File "/usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py", line 
1023, in task_run_core
    coll.update_webpage_cache()
  File "/usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py", line 
319, in update_webpage_cache
    searchfor = self.create_searchfor(aas, lang),
  File "/usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py", line 
657, in create_searchfor
    return self.create_searchfor_advanced(ln)
  File "/usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py", line 
700, in create_searchfor_advanced
    rankoptions = self.create_rankoptions(ln),
  File "/usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py", line 
562, in create_rankoptions
    for (code, name) in get_bibrank_methods(self.id, ln):
  File "/usr/lib/python2.4/site-packages/invenio/bibrank_record_sorter.py", 
line 157, in get_bibrank_methods
    create_rnkmethod_cache()
  File "/usr/lib/python2.4/site-packages/invenio/bibrank_record_sorter.py", 
line 84, in create_rnkmethod_cache
    methods[rank_method_code]["prefix"] = config.get(cfg_function, 
"relevance_number_output_prologue")
  File "/usr/lib/python2.4/ConfigParser.py", line 520, in get
    raise NoOptionError(option, section)
NoOptionError: No option 'relevance_number_output_prologue' in section: 
'citation'
Locals by frame, innermost last

>>>> Frame task_init in /usr/lib/python2.4/site-packages/invenio/bibtask.py at 
>>>> line 355
*******************************************************************************
       352                     ret = _task_run(task_run_fnc)
       353                     write_message("ERROR: The Python Profiler is not 
installed!", stream=sys.stderr)
       354             else:
---->  355                 ret = _task_run(task_run_fnc)
       356             if not ret:
       357                 write_message("Error occurred.  Exiting.", 
sys.stderr)
       358         except Exception, e:
*******************************************************************************
        task_submit_check_options_fnc =  '<function task_submit_check_options 
at 0xa1bf6f4>'
        task_stop_helper_fnc =  'None'
                     version =  "'$Id$'"
         help_specific_usage =  "'  -c, --collection\\t Update cache for the 
given collection only. [all]\\n  -r, --recursive\\t Update cache for the given 
collection and all its\\n\\t\\t\\t descendants (to be used in combination with 
-c). [no]\\n  -f, --force\\t\\t Force update even if cache is up to date. 
[no]\\n  -p, --part\\t\\t Update only certain cache parts (1=reclist, 
2=webpage). [both]\\n  -l, --language\\t Update pages in only certain language 
(e.g. fr,it,...). [all]\\n'"
             to_be_submitted =  'False'
                        argv =  "['/cdsware/cds-invenio/bin/webcoll', '-c', 
'Articles', '-r', '-f', '-v9']"
             specific_params =  "('c:rfp:l:', ['collection=', 'recursive', 
'force', 'part=', 'language='])"
                task_run_fnc =  '<function task_run_core at 0xa1bf72c>'
        authorization_action =  "'runwebcoll'"
        task_submit_elaborate_specific_parameter_fnc =  '<function 
task_submit_elaborate_specific_parameter at 0xa1bf6bc>'
           authorization_msg =  "'WebColl Task Submission'"
                 description =  '"Description:\\n    webcoll updates the 
collection cache (record universe for a\\n    given collection plus web page 
elements) based on invenio.conf and DB\\n    configuration parameters. If the 
collection name is passed as an argument,\\n    only this collection\'s cache 
will be updated. If the recursive option is\\n    set as well, the 
collection\'s descendants will also be updated.\\n"'

>>>> Frame _task_run in /usr/lib/python2.4/site-packages/invenio/bibtask.py at 
>>>> line 828
*******************************************************************************
       825         except SystemExit:
       826             pass
       827         except:
---->  828             register_exception(alert_admin=True)
       829             task_update_status("ERROR")
       830     finally:
       831         task_status = task_read_status()
*******************************************************************************
                   sleeptime =  "''"
                    time_now =  '1327497768.728152'
                pidfile_name =  
"'/cdsware/cds-invenio/var/run/bibsched_task_2397.pid'"
                task_run_fnc =  '<function task_run_core at 0xa1bf72c>'
                 task_status =  "'WAITING'"
                     pidfile =  "<closed file 
'/cdsware/cds-invenio/var/run/bibsched_task_2397.pid', mode 'w' at 0xa1a1530>"

>>>> Frame task_run_core in 
>>>> /usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py at line 1023
*******************************************************************************
      1020             for coll in colls:
      1021                 i += 1
      1022                 write_message("%s / webpage cache update" % 
coll.name)
----> 1023                 coll.update_webpage_cache()
      1024                 task_update_progress("Part 2/2: done %d/%d" % (i, 
len(colls)))
      1025                 task_sleep_now_if_required(can_stop_too=True)
      1026 
*******************************************************************************
                           i =  '1'
          v_type_descendants =  '[]'
                        coll =  '<invenio.websearch_webcoll.Collection instance 
at 0xa1afdac>'
                       colls =  '[<invenio.websearch_webcoll.Collection 
instance at 0xa1afdac>]'
          r_type_descendants =  '[]'
        task_run_start_timestamp =  "'2012-01-25 14:22:48'"

>>>> Frame update_webpage_cache in 
>>>> /usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py at line 319
*******************************************************************************
       316                     body = websearch_templates.tmpl_webcoll_body(
       317                         ln=lang, collection=self.name,
       318                         te_portalbox = self.create_portalbox(lang, 
'te'),
---->  319                         searchfor = self.create_searchfor(aas, lang),
       320                         np_portalbox = self.create_portalbox(lang, 
'np'),
       321                         narrowsearch = self.create_narrowsearch(aas, 
lang, 'r'),
       322                         focuson = self.create_narrowsearch(aas, 
lang, "v") + \
*******************************************************************************
                        body =  '\'\\n                <form name="search" 
action="http://zb0035.zb.kfa-juelich.de/search"; method="get">\\n                
\\n        <!--create_searchfor_simple()-->\\n        <input type="hidden" 
name="ln" value="de" /><input type="hidden" name="cc" value="Articles" /><input 
type="hidden" name="sc" value="1" />\\n        <table class="searchbox 
simplesearch">\\n         <thead>\\n          <tr align="left">\\n           
<th colspan="3" class="searchboxheader">Durchsuche 28 Datens\\xc3\\xa4tze n 
[...]
                        lang =  "'de'"
                        self =  '<invenio.websearch_webcoll.Collection instance 
at 0xa1afdac>'
                         aas =  '1'
               lang_fullname =  "'Deutsch'"
                           _ =  '<bound method GNUTranslations.gettext of 
<gettext.GNUTranslations instance at 0xb7ccf1ac>>'

>>>> Frame create_searchfor in 
>>>> /usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py at line 657
*******************************************************************************
       654     def create_searchfor(self, 
aas=CFG_WEBSEARCH_DEFAULT_SEARCH_INTERFACE, ln=CFG_SITE_LANG):
       655         "Produces either Simple or Advanced 'Search for' box for the 
current collection."
       656         if aas == 1:
---->  657             return self.create_searchfor_advanced(ln)
       658         elif aas == 0:
       659             return self.create_searchfor_simple(ln)
       660         else:
*******************************************************************************
                          ln =  "'de'"
                        self =  '<invenio.websearch_webcoll.Collection instance 
at 0xa1afdac>'
                         aas =  '1'

>>>> Frame create_searchfor_advanced in 
>>>> /usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py at line 700
*******************************************************************************
       697 
       698           searchoptions = self.create_searchoptions(),
       699           sortoptions = self.create_sortoptions(ln),
---->  700           rankoptions = self.create_rankoptions(ln),
       701           displayoptions = self.create_displayoptions(ln),
       702           formatoptions = self.create_formatoptions(ln)
       703         )
*******************************************************************************
                          ln =  "'de'"
                        self =  '<invenio.websearch_webcoll.Collection instance 
at 0xa1afdac>'

>>>> Frame create_rankoptions in 
>>>> /usr/lib/python2.4/site-packages/invenio/websearch_webcoll.py at line 562
*******************************************************************************
       559         _ = gettext_set_language(ln)
       560 
       561         values = [{'value' : '', 'text': "- %s %s -" % 
(string.lower(_("OR")), _("rank by"))}]
---->  562         for (code, name) in get_bibrank_methods(self.id, ln):
       563             values.append({'value' : code, 'text': name})
       564         box = websearch_templates.tmpl_select(
       565                    fieldname = 'rm',
*******************************************************************************
                          ln =  "'de'"
                        self =  '<invenio.websearch_webcoll.Collection instance 
at 0xa1afdac>'
                      values =  "[{'text': '- oder sortieren nach -', 'value': 
''}]"
                           _ =  '<bound method GNUTranslations.gettext of 
<gettext.GNUTranslations instance at 0xb7ccf1ac>>'

>>>> Frame get_bibrank_methods in 
>>>> /usr/lib/python2.4/site-packages/invenio/bibrank_record_sorter.py at line 
>>>> 157
*******************************************************************************
       154     """
       155 
       156     if not globals().has_key('methods'):
---->  157         create_rnkmethod_cache()
       158 
       159     avail_methods = []
       160     for (rank_method_code, options) in methods.iteritems():
*******************************************************************************
                          ln =  "'de'"
                       colID =  '6'

>>>> Frame create_rnkmethod_cache in 
>>>> /usr/lib/python2.4/site-packages/invenio/bibrank_record_sorter.py at line 
>>>> 84
*******************************************************************************
        81         if config.has_section(cfg_function):
        82             methods[rank_method_code] = {}
        83             methods[rank_method_code]["function"] = cfg_function
---->   84             methods[rank_method_code]["prefix"] = 
config.get(cfg_function, "relevance_number_output_prologue")
        85             methods[rank_method_code]["postfix"] = 
config.get(cfg_function, "relevance_number_output_epilogue")
        86             
methods[rank_method_code]["chars_alphanumericseparators"] = 
r"[1234567890\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~]"
        87         else:
*******************************************************************************
               bibrank_meths =  "(('citation',), ('citerank_citation_t',), 
('citerank_pagerank_c',), ('citerank_pagerank_t',), ('demo_jif',), ('wrd',))"
            rank_method_code =  "'citation'"
                      config =  '<ConfigParser.ConfigParser instance at 
0xa1c3c8c>'
                cfg_function =  "'citation'"
                        file =  
"'/cdsware/cds-invenio/etc/bibrank/citation.cfg'"

>>>> Frame get in /usr/lib/python2.4/ConfigParser.py at line 520
*******************************************************************************
       517         try:
       518             value = d[option]
       519         except KeyError:
---->  520             raise NoOptionError(option, section)
       521 
       522         if raw:
       523             return value
*******************************************************************************
                           d =  "{'__name__': 'citation', 
'reference_via_report_number': '999C5r', 'reference_via_pubinfo': '999C5s', 
'primary_report_number': '037__a'}"
                        vars =  'None'
                        self =  '<ConfigParser.ConfigParser instance at 
0xa1c3c8c>'
                         raw =  'False'
                     section =  "'citation'"
                      option =  "'relevance_number_output_prologue'"


Reply via email to