Dear Surendran,
In data sabato 22 novembre 2014 09:23:56, Surendran Karippadath ha scritto:
> $sudo -u www-data /opt/invenio/bin/inveniocfg --run-unit-tests
>
> FAIL: test_async_download
> (websearch_external_collections_getter_unit_tests.AsyncDownloadTest)
> websearch_external_collections_getter - asynchronous download
I think you can ignore for the moment this error as this is one that might
happen from time to time due to timing issues. The test should probably be
improved.
> Also, even when openoffice.python was correctly configured
> $ sudo -u www-data /opt/invenio/bin/inveniocfg --check-openoffice
>
> >>> Checking if Libre/OpenOffice.org is correctly integrated...No handlers
>
> could be found for logger "InvenioWebSubmitFileConverterLogger"
>
> ****************************************************************************
> ***** ** OpenOffice.org can't properly create files in the
> OpenOffice.org **
> ** temporary directory /opt/invenio/var/tmp/ooffice-tmp-files, as
> the **
> ** user www-data (as configured in
> CFG_OPENOFFICE_USER **
> ** invenio(-local).conf
> variable): **
> **
> **************************************************************************
> **
> ** OpenOffice.org can't properly create files in the
> OpenOffice.org **
> ** **** temporary directory
> /opt/invenio/var/tmp/ooffice-tmp-files, **
> ** as the **** user www-data (as configured in
> CFG_OPENOFFICE_USER **
> ** **** invenio(-local).conf variable): ERROR: Error in
> running **
> ** **** ['/opt/invenio/bin/inveniounoconv', '-vvv', '-k']
> stdout: **
> ** **** stderr:Traceback (most recent call last):
> File **
> ** **** "/opt/invenio/bin/inveniounoconv", line 48, in
> <module> **
> ** from **** invenio.websubmit_file_converter
> import **
> ** CFG_OPENOFFICE_TMPDIR **** II ****
> . **
> ** **** **
> **
> **************************************************************************.
> **
> ** In your /etc/sudoers file, you should authorize the www-data
> user **
> ** to run /opt/invenio/bin/inveniounoconv as www-data user as
> in: **
> **
> **
> ** www-data ALL=(www-data) NOPASSWD:
> /opt/invenio/bin/inveniounoconv **
> **
> **
> ** You should then run the following
> commands: **
> ** $ sudo mkdir -p
> /opt/invenio/var/tmp/ooffice-tmp-files **
> ** $ sudo chown -R www-data
> /opt/invenio/var/tmp/ooffice-tmp-files **
> ** $ sudo chmod -R 755
> /opt/invenio/var/tmp/ooffice-tmp-files **
> ****************************************************************************
> ****> I get the same error(!) after running all the commands and editing
> sudoers file.
>
> $ ls -la /opt/invenio/var/tmp/ooffice-tmp-files
> total 36
> drwxr-xr-x 2 www-data www-data 4096 Dec 16 2013 .
> drwxr-xr-x 19 www-data www-data 28672 Nov 22 08:57 ..
>
> What does that mean?
Mmh.. That's a bit strange... what is the output of:
$ ls -ld /opt/invenio/var/tmp/ooffice-tmp-files
(i.e. is the actual ooffice-tmp-files directory having the correct rights?)
And is there any useful exception registered in
/opt/invenio/var/log/invenio.err?
Best regards,
Samuele
--
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>
INSPIRE Service Manager ** <http://inspirehep.net/>