Hello,

Ihis helped me. Thank you .

Another question: how to check my Invenio_webupload work properly? use commans? 
or others ?
Could you please give me an example ?

Thank you very much!!
Regards,
Lanxin

________________________________________
From: Esteban Gabancho
Sent: 25 November 2016 09:08
To: Lanxin Ma
Cc: project-invenio-general (Invenio general)
Subject: Re: invenio_webupload ?

Hi Lanxin,

I think you have to put quotes around the value, something like

CFG_BATCHUPLOADER_WEB_ROBOT_AGENTS = r"invenio_webupload|invenio_connector"

I hope it helps.

Cheers,
Esteban
> On Nov 22, 2016, at 9:42 AM, Lanxin Ma <lanxin...@cern.ch> wrote:
>
> Hello,
>
> I have Invenio 1.1.1 installation.
>
> I add the lines below in /opt/invenio/etc/invenio-local.conf
>
> CFG_BATCHUPLOADER_WEB_ROBOT_AGENT = invenio_webupload | invenio_connector
> CFG_BATCHUPLOADER_WEB_ROBOT_RIGHTS = {
>     '202.122.39.28': ['INDICOSEARCH']
>     }
> then, I have ran
>
> sudo -u apache /opt/invenio/bin/inveniocfg --update-all
>
> sudo -u apache /opt/invenio/bin/bibsched start
> Traceback (most recent call last):
>   File "/opt/invenio/bin/bibsched", line 27, in ?
>     from invenio.bibsched import main
>   File "/usr/lib64/python2.4/site-packages/invenio/bibsched.py", line 36, in ?
>     from invenio.bibtask_config import \
>   File "/usr/lib64/python2.4/site-packages/invenio/bibtask_config.py", line 
> 25, in ?
>     from invenio.config import CFG_LOGDIR, CFG_PYLIBDIR
>   File "/usr/lib64/python2.4/site-packages/invenio/config.py", line 21, in ?
>     CFG_BATCHUPLOADER_WEB_ROBOT_AGENT = invenio_webupload | invenio_connector
> NameError: name 'invenio_webupload' is not defined
> I get the error "NameError: name 'invenio_webupload' is not defined".
> Does it mean that the module invenio_webupload is not installed ?
> Could somebody give me some clue what I should check?  How to fix it?
>
> Thank you very much!
>
> Regards,
> Lanxin

Reply via email to