Hello,


Thank you for your answer.



I have got 'bibrank' problem now.   I have installed invneio from the last 
souce from GIT.  I started 'bibsched' daemon, it is running.

I also started  other daemons



sudo -u apache /opt/invenio/bin/bibindex -f50000 -s5m
sudo -u apache /opt/invenio/bin/bibreformat -oHB -s5m
sudo -u apache /opt/invenio/bin/webcoll -v0 -s5m
sudo -u apache /opt/invenio/bin/bibrank -f50000 -s5m
sudo -u apache /opt/invenio/bin/bibsort -s5m

But, 'bibrank' daemon has problem.  It seems 'bibrank' cannot be re-submitted. 
The error is



Light emergency from 
http://invenio-test.ihep.ac.cn:<http://invenio-test.ihep.ac.cn/> BibTask 
failed: BibTask with ERRORS:
    #13 bibrank -> CERROR

Here is the error log



2014-06-23 15:30:35 --> Task #13 finished but not resubmitted. [RUNNING]
2014-06-23 15:30:36 --> Unexpected error occurred: .
2014-06-23 15:30:36 --> Traceback is:
2014-06-23 15:30:36 -->   File 
"/usr/lib64/python2.6/site-packages/invenio/bibtask.py", line 606, in task_init
2014-06-23 15:30:36 -->     ret = _task_run(task_run_fnc)
2014-06-23 15:30:36 -->   File 
"/usr/lib64/python2.6/site-packages/invenio/bibtask.py", line 1146, in _task_run
2014-06-23 15:30:36 -->     if callable(task_run_fnc) and task_run_fnc():
2014-06-23 15:30:36 -->   File 
"/usr/lib64/python2.6/site-packages/invenio/bibrank.py", line 159, in 
task_run_core
2014-06-23 15:30:36 -->     func_object(key)
2014-06-23 15:30:36 -->   File 
"/usr/lib64/python2.6/site-packages/invenio/bibrank_tag_based_indexer.py", line 
443, in citation
2014-06-23 15:30:36 -->     return bibrank_engine(run)
2014-06-23 15:30:36 -->   File 
"/usr/lib64/python2.6/site-packages/invenio/bibrank_tag_based_indexer.py", line 
356, in bibrank_engine
2014-06-23 15:30:36 -->     func_object(rank_method_code, cfg_name, config)
2014-06-23 15:30:36 -->   File 
"/usr/lib64/python2.6/site-packages/invenio/bibrank_tag_based_indexer.py", line 
68, in citation_exec
2014-06-23 15:30:36 -->     dic, index_update_time = 
get_citation_weight(rank_method_code, config)
2014-06-23 15:30:36 -->   File 
"/usr/lib64/python2.6/site-packages/invenio/bibrank_citation_indexer.py", line 
141, in get_citation_weight
2014-06-23 15:30:36 -->     weights = process_and_store(updated_recids, config, 
chunk_size)
2014-06-23 15:30:36 -->   File 
"/usr/lib64/python2.6/site-packages/invenio/bibrank_citation_indexer.py", line 
194, in process_and_store
2014-06-23 15:30:36 -->     store_weights_cache(weights)
2014-06-23 15:30:36 -->   File 
"/usr/lib64/python2.6/site-packages/invenio/bibrank_citation_indexer.py", line 
202, in store_weights_cache
2014-06-23 15:30:36 -->     redis.set('citations_weights', 
serialize_via_marshal(weights))
2014-06-23 15:30:36 -->   File 
"/usr/lib/python2.6/site-packages/nydus/db/base.py", line 133, in __call__
2014-06-23 15:30:36 -->     return self.__cluster.execute(self.__path, args, 
kwargs)
2014-06-23 15:30:36 -->   File 
"/usr/lib/python2.6/site-packages/nydus/db/base.py", line 86, in execute
2014-06-23 15:30:36 -->     conn = self.__connections_for(path, 
retry_for=conn.num, args=args, kwargs=kwargs)[0]
2014-06-23 15:30:36 -->   File 
"/usr/lib/python2.6/site-packages/nydus/db/routers/base.py", line 26, in wrapped
2014-06-23 15:30:36 -->     return func(*args, **kwargs)
2014-06-23 15:30:36 -->   File 
"/usr/lib/python2.6/site-packages/nydus/db/base.py", line 121, in 
__connections_for
2014-06-23 15:30:36 -->     return [self[n] for n in 
self.router.get_dbs(attr=attr, args=args, kwargs=kwargs, **fkwargs)]
2014-06-23 15:30:36 -->   File 
"/usr/lib/python2.6/site-packages/nydus/db/routers/base.py", line 26, in wrapped
2014-06-23 15:30:36 -->     return func(*args, **kwargs)
2014-06-23 15:30:36 -->   File 
"/usr/lib/python2.6/site-packages/nydus/db/routers/base.py", line 78, in get_dbs
2014-06-23 15:30:36 -->     self._handle_exception(e)
2014-06-23 15:30:36 -->   File 
"/usr/lib/python2.6/site-packages/nydus/db/routers/base.py", line 128, in 
_handle_exception
2014-06-23 15:30:36 -->     raise e
2014-06-23 15:30:36 --> Exiting.



How do fix the problem? Please giv eme some clue.



Thanks a lot,



Best regards,

Lanxin









________________________________
From: Miguel Martín [[email protected]]
Sent: 19 June 2014 12:40
To: Lanxin Ma; Robert Atkinson; project-invenio-general (Invenio users)
Subject: Re: invenio based SL6.x

Hi,

I also got a lot of 500 Internal Server Errors (using last source from GIT)

I got rid of them by:
1) Editing /opt/invenio/etc/invenio-local.conf and adding:

CFG_WEBSESSION_STORAGE = mysql

(then do not forget to run inveniocfg --update-all and then restarting Apache)


2) Modifying get_session function from 
/usr/lib64/python2.6/site-packages/invenio/session.py which ended being like:


def get_session(req, sid=None):
    """
    Obtain a session.

    If the session has already been created for the current request,
    returns the already existing session.

    @param req: the mod_python request object.
    @type req: mod_python request object
    @param sid: the session identifier of an already existing session.
    @type sid: 32 hexadecimal string
    @return: the session.
    @rtype: InvenioSession
    @raise ValueError: if C{sid} is provided and it doesn't correspond to a
        valid session.
    """

    # ADDED LINES TO AVOID ERRORS --------------------
    if CFG_WEBSESSION_STORAGE == 'mysql':
        InvenioSession = InvenioSessionMySQL
    elif CFG_WEBSESSION_STORAGE == 'redis':
        InvenioSession = InvenioSessionRedis
    # ------------------------------------------------

    if sid is not None:
        req._session = InvenioSession(req, sid)
        return req._session
    if not hasattr(req, '_session'):
        req._session = InvenioSession(req, sid)
    return req._session

It seems that somewhere in the code there is a "from invenio.session import 
get_session" and InvenioSession variable was not set.

Hope this helps.

Regards,
Miguel

El 19/06/14 12:08, Lanxin Ma escribió:
Hello,

I installed invenio using  invneio-kickstart script according the instruction.

Now, I can get the first web page. I can see the collections of demo sites.

But when I click a sub-collection, for example: Multimedia & Arts -> Pictures
It show me the following

Authorization failure
You are not authorized to view this collection

It seems it is permission problem. How to fix the problem?

Another problem: when I try to login with admin email  and  the empty password,
it shows me  that "500 Internal Server Error"
why? what's wrong?


Could you give me some clue?

Thanks a lot,

Lanxin





________________________________
From: Robert Atkinson
Sent: 10 June 2014 18:57
To: project-invenio-general (Invenio users)
Subject: Re: invenio based SL6.x

with a clean machine, go here:

http://invenio-software.org/wiki/Installation/Kickstart

install git and clone the git invenio-devscript repository as shown on the web 
page.

run the kickstart script as root.  It will bomb out but you have to run it to 
get some stuff done.  Then you can fix the problems and run it again:

you have to enable some repositories if they are not enabled already.  check 
/etc/yum.repos.d/

try grep "enabled=1" /etc/yum.repos.d/*.repo

or if you have puppet, grep "enabled=1" /etc/yum-puppet.repos.d/*.repo

CERN as a lot enabled but in other locations that may not be the case.

Here's what they have:

 $ grep "enabled=1" /etc/yum-puppet.repos.d/*.repo
/etc/yum-puppet.repos.d/ai6.repo:enabled=1
/etc/yum-puppet.repos.d/epel.repo:enabled=1
/etc/yum-puppet.repos.d/hardware-tools.repo:enabled=1
/etc/yum-puppet.repos.d/hw6.repo:enabled=1
/etc/yum-puppet.repos.d/lemon6.repo:enabled=1
/etc/yum-puppet.repos.d/lemon.repo:enabled=1
/etc/yum-puppet.repos.d/slc6-cernonly.repo:enabled=1
/etc/yum-puppet.repos.d/slc6-extras.repo:enabled=1
/etc/yum-puppet.repos.d/slc6-os.repo:enabled=1
/etc/yum-puppet.repos.d/slc6-scl.repo:enabled=1
/etc/yum-puppet.repos.d/slc6-updates.repo:enabled=1

you will at least need to enable epel

you may have to do:

#yum install hdf-devel?

or download and instal  hdf5-1.8.7-1.el6.rf.x86_64.rpm  from  
http://pkgs.repoforge.org/hdf5/ and download 
hdf5-devel-1.8.7-1.el6.rf.x86_64.rpm from same

you may run into:

Making install in po
/bin/sh: line 17: cd: po: No such file or directory
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2

that problem has to do with the script executing commands as apache.

apache's shell may be /bin/nologin

change it to /bin/bash

edit /etc/passwd to change apache’s shell from /bin/nologin to /bin/bash

also try going into /<your path to repository>/src/invenio/po and change the 
file permissions to ugo+x for everything.

another problem you may run into is if you do not have python 2.7.

iPython requires that.  If you don't want or need ipython  you can comment out 
the installation instruction for it to get past the py 2.7 requirement.
Commented Ipython out from /<path to your git 
repo>/src/invenio/requirements-extra.txt

I think I have covered all the "gotchas" with the kickstart script that we ran 
into at Fermilab.

The kickstart script is the only possible way to get invenio with scientific 
linux unless you have someone set it up for you.

Rob


On 06/10/2014 02:39 AM, Samuele Kaplun wrote:> Hi Lanxin,
>
> In data martedì 10 giugno 2014 04:33:24, Lanxin Ma ha scritto:
>> Can Invenio be installed / run on SL6.x X86_64 ?
>>
>> Does any body have experince on this ?
>
> at CERN we use SLC6.x X86_64 (derived from SL6.x) for our production server.
> Latest Invenio releases work perfectly there.
>
> Best regards,
>     Samuele
>

Reply via email to