Hi Alexander,
In data martedì, 15 maggio 2012 15.31:43, Alexander Wagner ha scritto:
> The collegues have actually set up a box already and from the first
> glance it works. However, you know, Invenio involves some lines of code.
> So there could be some hidden goodies they didn't hit yet and of which
> you're well aware already. Just wanted to make sure that this isn't the
> case, and if we should probably stumble upon something there could be a
> helping hand. :)
so, heavy usage of system software happens especially in the websubmit_*.py
modules. In particular:
* the websubmit_file_converter.py is using quite some shell magic (to use
gzip, pdftotext, communicating with Libre/OpenOffice). You might wish to try
some testing with the CLI:
$ sudo -u www-data python /opt/invenio/lib/python/websubmit_file_converter.py
In particular, you need to call this as Apache user because it will try to
generate temporary file in /opt/invenio/var/tmp
(In case you want to test LibreOffice you will have to install the headless
version with all the core components and pyuno, and run
$ sudo -u www-data /opt/invenio/bin/inveniocfg --check-openoffice
which will guide you on how to properly setup a dedicated scratch space and
sudo rights to safely run LibreOffice as a server.
Anyway this module is fully optional and is basically needed out-of-the-box
only for text extraction for fulltext indexing.
* In general system calls are performed through the shellutils module of
Invenio. You might then want to try out their unit test
$ sudo -u www-data python /opt/invenio/lib/python/invenio/shellutils_tests.py\
--yes-i-know
and check the results.
* Also intbitset is pecurial but comes with nice testing so just have a:
$ sudo -u www-data python /opt/invenio/lib/python/invenio/intbitset_tests.py\
--yes-i-know
to see if everything is fine.
This are the most OS specific things that came to my mind.
In the past BibSched/BibTask communication was based on UNIX signals, but this
is no longer the case (it now uses the DB as a way to communicate).
Still you may want to start a long task by hand (such as bibindex --reindex)
and then hit Ctrl-C or Ctrl-Z to see if it well go to stop or to sleep in a
clean way...
Cheers!
Sam
--
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>