Dear Tibor,

   On reading your reply I went back to the following lines in my post:
...
2016-11-25 20:07:23 -->  * Task(id=10L, proc='webcoll',
runtime=datetime.datetime(2016, 11, 25, 20, 8, 28), status='WAITING',
priority=0, host='', sequenceid=None
2016-11-25 20:07:23 -->  * Task(id=12L, proc='bibsort',
runtime=datetime.datetime(2016, 11, 25, 20, 7, 49), status='WAITING',
priority=0, host='', sequenceid=None
...

 I have to wait for two months to get back to that server from the forest I
am in.

Thanks and Happy New Year.

Surendran


On Mon, Jan 9, 2017 at 6:35 PM, Tibor Simko <[email protected]> wrote:

> Dear Surendran:
>
> On Fri, 25 Nov 2016, Surendran Karippadath wrote:
> > I repeated this 3 times. Check-upgrade says bibsched is running. What
> > is wrong?
>
> In order to make sure that everything is OK before launching the
> upgrade, the upgrader makes sure that the bibsched daemon is not run in
> an automatic mode and that there aren't any outstanding processes still
> running. In your case, the upgrader somehow mis-detects that the queue
> is in manual mode with no running processes. This seems like a bug.
>
> Please stop the bibsched daemon, stop any running tasks, quit any
> interactive bibsched monitor sessions you may have, possibly even stop
> Apache web server, and check via:
>
>   $ ps aux | grep bibsched
>   $ ps aux | grep www-data
>   $ sudo /usr/sbin/service apache2 stop
>
> that you have basically no Invenio related processes running.
>
> If indeed you do not have any, and if the upgrader still wrongly reports
> that you have to stop the daemon before proceeding, then we indeed have
> a bug in the bibsched job detection procedure.
>
> In this case, you could debug the `pre_check_bibsched()` function from
> `inveniocfg_upgrader.py`, or you can simply edit the file:
>
>   /opt/invenio/lib/python/invenio/inveniocfg_upgrader.py
>
> in order to introduce a quick `return` statement:
>
>    def pre_check_bibsched():
>       return True
>
> which will switch off those faulty bibsched checks, as it were,
> permitting you to run the upgrade. (And you can then revert back.)
>
> Best regards
> --
> Tibor Simko
>

Reply via email to