Hi Samuele,
Meanwhile the following comments during the upgrade process:
>>> Following upgrade(s) have not been applied yet:
>>> * invenio_2013_09_10_new_param_
websubmit_function (New 'prefix', 'suffix', 'button_label', 'button_prefix'
and 'dates_conversion' parameters for Create_Modify_Interface WebSubmit
function)
>>> * invenio_2013_11_12_new_param_websubmit_function (New
'deferRelatedFormatsCreation' parameter for Create_Upload_Files_Interface
WebSubmit function)
>>> * invenio_2013_10_25_new_param_websubmit_function (New
'directRelationshipMARC', 'reverseRelationshipMARC' and 'bibuploadMode',
parameters for Link_Records WebSubmit function)
made me sit up and think that the newer features in the Websubmit function
may not after all be available. So I decided to have a clean 1.1.4
compilation. I did not understand the failure below:
$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
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/opt/invenio/lib/python/invenio/websearch_external_collections_getter_unit_tests.py",
line 64, in test_async_download
self.assertEqual(errors, [])
AssertionError: Lists differ: [{'url': 'http://rjfreijoiregj... != []
First list contains 1 additional elements.
First extra element 0:
{'url': 'http://rjfreijoiregjreoijgoirg.fr', 'result': False}
- [{'result': False, 'url': 'http://rjfreijoiregjreoijgoirg.fr'}]
+ []
----------------------------------------------------------------------
Ran 669 tests in 95.262s
FAILED (failures=1)
>>>
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?
Thank you for your attention.
Best wishes
On Sat, Nov 22, 2014 at 6:00 AM, Samuele Kaplun <[email protected]>
wrote:
> Dear Surendran,
>
> In data venerdì 21 novembre 2014 20:03:04, Surendran Karippadath ha
> scritto:
> > I edited( not allowed!) the /opt/invenio/etc/build/config.nice
>
> it's perfectly fine to edit that file :-) It is only a shortcut to recreate
> Invenio with the same parameters that were passed to the initial
> ./configure.
>
> > >>> Running pre-upgrade checks...
> > >>> pre_check_custom_templates: Checking custom templates...
> > >>> pre_check_bibsched: Checking bibsched process...
> > >>> ERROR: Pre-upgrade check for pre_check_bibsched failed with the
> >
> > following errors:
> > (-) Bibsched is running. Please stop bibsched using the command:
> > /opt/invenio/bin/bibsched stop
> >
> > >>> ERROR: Upgrade check failed. Aborting.
> >
> > make: *** [check-upgrade] Error 1
> >
> > How does one make bibsched stop?
>
> Sounds like a bug in bibsched. Can you fill in a Github issue?
>
> As a temporary workaround try the following:
>
> $ bibsched start
> $ bibsched (# to enter the monitor)
> from the monitor interface press "a" to switch to manual mode (e.g. for 5
> minutes).
> get out of the monitor and
> $ bibsched halt
>
> now no bibsched, ideally should run.
>
> Best regards,
> Samuele
> --
> Samuele Kaplun
> Invenio Developer ** <http://invenio-software.org/>
> INSPIRE Service Manager ** <http://inspirehep.net/>
>
>
--
Surendran K.K.
020-27298293