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