Dear Tibor, I run
$ sudo -u www-data inveniocfg --reset-recstruct-cache /usr/local/lib/python2.7/dist-packages/invenio/dbquery.py:258: Warning: Invalid utf8 character string: '9CAD57' rc = cur.execute(sql, param) ... done records 79/79 >>> recstruct cache generated successfully. $ sudo -u www-data ./bibindex now the error is 2018-05-16 10:52:22 --> idxWORD25F contains 0 words 2018-05-16 10:52:22 --> EMERGENCY: idxWORD25F needs to be repaired 2018-05-16 10:52:22 --> EMERGENCY: idxWORD25F inconsistencies detected... 2018-05-16 10:52:22 --> EMERGENCY: Errors found. You should check consistency of the idxWORD25F - idxWORD25R tables. Running 'bibindex --repair' is recommended. 2018-05-16 10:52:22 --> Exception caught: Errors found. You should check consistency of the idxWORD25F - idxWORD25R tables. Running 'bibindex --repair' is recommended. 2018-05-16 10:52:22 --> idxWORD25F normal wordtable flush started 2018-05-16 10:52:22 --> ...updating 0 words into idxWORD25F started 2018-05-16 10:52:22 --> ...updating 0 words into idxWORD25R ended 2018-05-16 10:52:22 --> ...updating reverse table idxWORD25R started 2018-05-16 10:52:22 --> ...updating reverse table idxWORD25R ended 2018-05-16 10:52:22 --> idxWORD25F normal wordtable flush ended 2018-05-16 10:52:22 --> Task #784 finished. [RUNNING] 2018-05-16 10:52:22 --> Unexpected error occurred: Errors found. You should check consistency of the idxWORD25F - idxWORD25R tables. Running 'bibindex --repair' is recommended.. 2018-05-16 10:52:22 --> Traceback is: 2018-05-16 10:52:22 --> File "/usr/local/lib/python2.7/dist-packages/invenio/bibtask.py", line 610, in task_init 2018-05-16 10:52:22 --> ret = _task_run(task_run_fnc) 2018-05-16 10:52:22 --> File "/usr/local/lib/python2.7/dist-packages/invenio/bibtask.py", line 1173, in _task_run 2018-05-16 10:52:22 --> if callable(task_run_fnc) and task_run_fnc(): 2018-05-16 10:52:22 --> File "/usr/local/lib/python2.7/dist-packages/invenio/bibindex_engine.py", line 2196, in task_run_core 2018-05-16 10:52:22 --> wordTable.add_recIDs(final_recIDs, task_get_option("flush")) 2018-05-16 10:52:22 --> File "/usr/local/lib/python2.7/dist-packages/invenio/bibindex_engine.py", line 1374, in add_recIDs 2018-05-16 10:52:22 --> self.chk_recID_range(i_low, i_high) 2018-05-16 10:52:22 --> File "/usr/local/lib/python2.7/dist-packages/invenio/bibindex_engine.py", line 1681, in chk_recID_range 2018-05-16 10:52:22 --> raise StandardError(error_message) 2018-05-16 10:52:22 --> Exiting. ESCOB ############## Thanks in advance Rita ----- Messaggio originale ----- Da: "Tibor Simko" <tibor.si...@cern.ch> A: "Ricceri Rita" <rita.ricc...@ct.infn.it> Cc: "project-invenio-devel" <project-invenio-devel@cern.ch> Inviato: Martedì, 15 maggio 2018 19:15:52 Oggetto: Re: Bibindex and bibencode error Dear Rita: On Tue, 15 May 2018, Ricceri Rita wrote: > sudo -u www-data /opt/invenio/bin/bibindex > > ############### > 2018-05-15 16:02:44 --> Unexpected error occurred: Name error: > 'abstract' field name not defined. Hmm, `abstract` is a standard field defined in Invenio's default data model configuration file `modules/bibfield/etc/bibfield.cfg`. (1) Are you using a different data model on your site? (2) If you have been upgrading your site, have you run something like: $ sudo -u www-data inveniocfg --load-bibfield-conf to apply field definition changes? (3) If you did change the data model and/or upgraded throughout several versions and/or changed your record serialisation rules, and if your MARC records are displayed otherwise OK, then you can also think of running: $ sudo -u www-data inveniocfg --reset-recjson-cache that should recreate your JSON record cache based on your MARC data. (after loading bibfield configuration) Note that there is also a sister command to reset your Python record structure cache: $ sudo -u www-data inveniocfg --reset-recstruct-cache P.S. Note the leading "if's"; I guess you should be mostly OK after you load the bibfield configuration. Best regards -- Tibor Simko