Am 2013-11-04 um 23:36 schrieb Ludmila Marian <[email protected]>:
> There is a config variable in invenio.config:
> CFG_BIBUPLOAD_FFT_ALLOWED_LOCAL_PATHS that handles the allowed paths.
> CFG_TMPDIR should be by default allowed. Can you check what is CFG_TMPDIR in
> your config (I think by default is /opt/invenio/var/tmp).
> But from your example, the file is located under /opt/invenio/tmp. If this is
> a custom path that you defined, and has nothing to do with CFG_TMPDIR, then
> you can just add it to the list of allowed paths,
> CFG_BIBUPLOAD_FFT_ALLOWED_LOCAL_PATHS, in invenio-local.conf
Thanks, the settings was just the default:
CFG_BIBUPLOAD_FFT_ALLOWED_LOCAL_PATHS = /tmp,/home
Since /opt/invenio/var/tmp seems to be a bit more canon than my
/opt/invenio/tmp, I moved my files and added that directory, and it works.
Thank you again!
But now I run in to another error:
2013-11-05 10:13:07 --> Task #83 submitted.
2013-11-05 10:13:12 --> Task #83 started.
2013-11-05 10:13:12 --> Input file '/opt/invenio/var/tmp/upload/metadata.xml',
input mode 'insert'.
2013-11-05 10:13:13 --> Record 681 DONE
2013-11-05 10:13:13 --> Record 682 DONE
2013-11-05 10:13:13 --> Record 683 DONE
2013-11-05 10:13:13 --> Record 684 DONE
2013-11-05 10:13:13 --> Record 685 DONE
2013-11-05 10:13:13 --> Record 686 DONE
2013-11-05 10:13:13 --> Record 687 DONE
2013-11-05 10:13:13 --> Record 688 DONE
2013-11-05 10:13:13 --> Record 689 DONE
2013-11-05 10:13:13 --> Record 690 DONE
2013-11-05 10:13:13 --> Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/invenio/bibtask.py", line 984,
in _task_run
if callable(task_run_fnc) and task_run_fnc():
File "/usr/local/lib/python2.6/dist-packages/invenio/bibupload.py", line
2912, in task_run_core
results_for_callback=results_for_callback)
File "/usr/local/lib/python2.6/dist-packages/invenio/bibupload.py", line
2837, in bibupload_records
tmp_vers = tmp_vers)
File "/usr/local/lib/python2.6/dist-packages/invenio/bibupload.py", line 259,
in bibupload
error = record_add_field(record, '001', controlfield_value=rec_id)
File "/usr/local/lib/python2.6/dist-packages/invenio/bibrecord.py", line 351,
in record_add_field
error = validate_record_field_positions_global(rec)
File "/usr/local/lib/python2.6/dist-packages/invenio/bibrecord.py", line
1362, in validate_record_field_positions_global
for tag, fields in record.items():
AttributeError: 'NoneType' object has no attribute 'items'
2013-11-05 10:13:13 --> Task #83 finished. [CERROR]
/opt/invenio/var/log/bibsched_task_83.log (END)
What might that mean? Where should I look further?
Greetlings, Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)