Hello,

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

CFG_BATCHUPLOADER_WEB_ROBOT_RIGHTS = {
    '202.122.39.27': ['INDICOSEARCH'],
    }

202.122.39.27 is my indico server.

2. create collections


  *   INDICOSEARCH
     *   INDICOSEARCH.EVENTS: 980__a:'*' -970__a:'.*.'
        *   INDICOSEARCH.PUBLIC.EVENTS: 980__a:"INDICOSEARCH.PUBLIC" 
-970__a:'.*.'
        *   INDICOSEARCH.PRIVATE.EVENTS: 980__a:"INDICOSEARCH.PRIVATE" 
-970__a:'.*.'
     *   INDICOSEARCH.CONTRIBS: 980__a:'*' 970__a:'.*.'
        *   INDICOSEARCH.PUBLIC.CONTRIBS: 980__a:"INDICOSEARCH.PUBLIC" 
970__a:'.*.'
        *   INDICOSEARCH.PRIVATE.CONTRIBS: 980__a:"INDICOSEARCH.PRIVATE" 
970__a:'.*.'
     *   INDICOSEARCH.PUBLIC: 980__a:"INDICOSEARCH.PUBLIC"
        *   INDICOSEARCH.PUBLIC.EVENTS
        *   INDICOSEARCH.PUBLIC.CONTRIBS
     *   INDICOSEARCH.PRIVATE: 980__a:"INDICOSEARCH.PRIVATE"
        *   INDICOSEARCH.PRIVATE.EVENTS
        *   INDICOSEARCH.PRIVATE.CONTRIBS

3. when I did webupload , Igot the error
indico_livesync agent inv2 export
MainThread 2014-07-18 16:24:08,946 - root - INFO - Generating metadata
MainThread 2014-07-18 16:24:09,483 - root - INFO - Metadata ready
MainThread 2014-07-18 16:24:09,581 - root - ERROR - Records: 
[(<MaKaC.conference.Conference object at 0x2dbb2a8>, '', 2)] output: [ERROR] 
Sorry, the invenio_connector useragent cannot use the service.

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 server log,
more /opt/invenio/var/log/webupload.log
2014-07-18 16:32:53 --> [ERROR] Sorry, the invenio_connector useragent cannot 
use the service

I have started bibsched, bibindex, bibrank, webcoll, bibreformat, bibsort works 
fine.
I also closed firewall at both server.  What cause the problem?

Please help.

Thanks a lot,
Lanxin


Reply via email to