Hello,
I changed
CFG_BATCHUPLOADER_WEB_ROBOT_AGENTS = invenio_webupload,invenio_connector
to
CFG_BATCHUPLOADER_WEB_ROBOT_AGENTS = invenio_webupload|invenio_connector
I updated invenio config, restarted apache and bibsched.
When I re-did it, It seems that I have got a step forward. But I got another
error.
indico_livesync agent inv2 export
This will export all the data to the remote service using the agent (takes
LONG). Are you sure? [y/N] y
MainThread 2014-07-21 16:37:04,541 - root - INFO - Starting metadata/upload
cycle
| |-[1/1] 3 aaa
MainThread 2014-07-21 16:37:04,553 - root - INFO - Generating metadata
MainThread 2014-07-21 16:37:05,079 - root - INFO - Metadata ready
MainThread 2014-07-21 16:37:05,359 - root - ERROR - Records:
[(<MaKaC.conference.Conference object at 0x22712a8>, '', 2)] output: [ERROR]
MARCXML is not valid.
Traceback (most recent call last):
File
"/usr/lib/python2.6/site-packages/indico-1.1.2-py2.6.egg/indico/ext/livesync/console.py",
line 341, in main
return args.cmd().run(args)
File
"/usr/lib/python2.6/site-packages/indico-1.1.2-py2.6.egg/indico/ext/livesync/console.py",
line 59, in run
result = self._run(args)
File
"/usr/lib/python2.6/site-packages/indico-1.1.2-py2.6.egg/indico/ext/livesync/console.py",
line 243, in _run
self._export(args)
File
"/usr/lib/python2.6/site-packages/indico-1.1.2-py2.6.egg/indico/ext/livesync/console.py",
line 221, in _export
monitor=monitor)
File
"/usr/lib/python2.6/site-packages/indico-1.1.2-py2.6.egg/indico/ext/livesync/invenio/agent.py",
line 50, in _run
return uploader.iterateOver(records, dbi=dbi)
File
"/usr/lib/python2.6/site-packages/indico-1.1.2-py2.6.egg/indico/ext/livesync/agent.py",
line 434, in iterateOver
self._uploadBatch(currentBatch)
File
"/usr/lib/python2.6/site-packages/indico-1.1.2-py2.6.egg/indico/ext/livesync/invenio/agent.py",
line 95, in _uploadBatch
raise Exception('upload failed')
Exception: upload failed
At invenio side,
cat /opt/invenio/var/log/webupload.log
2014-07-21 16:37:53 --> [ERROR] MARCXML is not valid.
I do not know this error is at indico side or at invenio side.
What should I check ?
Thanks a lot,
Lanxin
________________________________________
From: Samuele Kaplun
Sent: 18 July 2014 11:54
To: Lanxin Ma
Cc: project-invenio-general (Invenio users)
Subject: Re: webupload error
Dear Lanxin,
In data venerdì 18 luglio 2014 11:41:14, Lanxin Ma ha scritto:
> I have a question about webupload.
>
> I am setting up invenio 1.1.1 as my indico search engine.
>
> What I did are:
>
> 1. configure invenio-local.conf
>
> CFG_BATCHUPLOADER_WEB_ROBOT_AGENTS = invenio_webupload,invenio_connector
This configuration variable is interpreted as a regular expression:
[...]
## CFG_BATCHUPLOADER_WEB_ROBOT_AGENTS -- Regular expression to specify the
## agents permitted when calling batch uploader web interface
## cdsweb.cern.ch/batchuploader/robotupload
## if using a curl, eg: curl xxx -A invenio
CFG_BATCHUPLOADER_WEB_ROBOT_AGENTS = invenio_webupload|Invenio-.*
[...]
therefore you should amend its value to be somethings such as:
CFG_BATCHUPLOADER_WEB_ROBOT_AGENTS = invenio_webupload|invenio_connector
This should fix the particular issue you at hand.
Best regards,
Samuele
--
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>
INSPIRE Service Manager ** <http://inspirehep.net/>