#256: something in 5c425ab4fa breaks bibsched
-------------------------+--------------------------------------------------
Reporter: jblayloc | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: *general* | Version:
Keywords: Invenio bug |
-------------------------+--------------------------------------------------
Something in 5c425ab4fa07d5776ab1c3402e280ba9411dbff2 makes bibsched
misbehave under peculiar circumstances. When you run it on an otherwise
freshly installed system, nothing apparent happens.
So for example, drop your cdsinvenio tables from mysql and remove /opt
/cds-invenio. Check out d277958c9e4dc256e50aab92e5970ec4ad5686ac and
install it, then run
sudo -u apache /opt/cds-invenio/bin/bibsched # to bring up the monitor
mode
and you'll see the monitor. But if you drop the cdsinvenio tables and
remove /opt/cds-invenio and check out
5c425ab4fa07d5776ab1c3402e280ba9411dbff2 and install it, then when you run
bibsched as above you'll see nothing happen.
Obviously s/apache/$WEBUSER/g for appropriate value of $WEBUSER (www-admin
comes to mind.)
I've attached a script which elucidates the specific manner in which I've
tickled this bug. Check out d277958 and run the script with ~/src/cds-
invenio as your current working directory, then run bibsched, and
everything should appear to be normal. Check out 5c425ab4f and run the
script in the same manner, run bibsched, and (at least on the two
different RHEL5 hosts I've tried it on) nothing happens.
The script contains several values hardcoded: the database user, database
password, mysql root password, apache user and group names. These, too,
are intended to be instructive, showing the exact way this bug arises on
the systems I've tested with. The bughunter who wants to use this script
will have to edit these values to match their own system.
Good hunting!
--
Ticket URL: <http://invenio-software.org/ticket/256>
Invenio <http://invenio-software.org>