EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #05048
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Coversheets plugin - can't find OpenOffice
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Coversheets plugin - can't find OpenOffice
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Sat, 31 Oct 2015 12:16:47 +0000
Hi, I run libreoffice > libreoffice --version LibreOffice 4.2.8.2 420(Build:2) The only difference I have in lib/cfg.d/openofice.pl is: $c->{executables}->{openoffice} = '/usr/lib64/libreoffice/program/soffice.bin'; - with the '.bin' on the end. This seems to work OK... I normally do a: >ps -ef | grep 'Star' to see if it's running. Also, I normally start it from the command line - can't remember if this is for a specific reason, or just the way I do it... Cheers, John -----Original Message----- From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Robin Sylvestre Sent: 30 October 2015 21:02 To: eprints-tech@ecs.soton.ac.uk Subject: [EP-tech] Re: Coversheets plugin - can't find OpenOffice Thanks Adam, Yes we followed everything on the wiki. We first tried with the recommended OO version 3.4.1 but are now on LibreOffice 4.2.6.3. Here is the current state of /lib/cfg.d/openoffice.pl (after a bit of fiddling around) : $c->{executables}->{openoffice} = '/usr/lib64/libreoffice/program/soffice'; $c->{executables}->{python} = '/usr/bin/python'; $c->{executables}->{uno_converter} = '$c->{base_path}/bin/DocumentConverter.py'; $c->{invocation}->{openoffice} = '$(openoffice) "--accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" --norestore --nofirststartwizard --nologo --headless'; And where we are so far: - Under "Admin > System tools" I always have "Stop OpenOffice" whether or not it is running (when I click, it says "Failed to stop OpenOffice"). The log says "OpenOffice executable not found". I never have the option to "Start OpenOffice". - Running manually the command+invocation from /eprints/lib/cfg.d/openoffice.pl works: the OpenOffice process starts in background. - If I try running manually the script openoffice-local.pl from /eprints/archives/(ArchiveName)/bin with "start", I get a successful "OpenOffice started", the process runs in the background and an openoffice.pid file is created in var. The log says "OpenOffice starting". - Trying to "stop" the process with the same command returns "Failed to stop OpenOffice". The process still runs in the background. The log says "OpenOffice executable not found". - Killing manually all processes, and trying to run the command again with "start", I get "OpenOffice started", but the process doesn't start. The log is empty. - Deleting openoffice.pid from var, and running the command again with "start" works: "OpenOffice started", the process runs, and the log says "OpenOffice starting". A new pid file is created. - At this point, trying to generate a coversheet fails, with or without a running openoffice process (started manually from openoffice-local.pl). The log still says "OpenOffice executable not found". And the indexer log says "[Convert::AddCoversheet] Failed to add coversheet to document '12993' [Convert::AddCoversheet] Unexpected absence of coversheet files. [Event::AddCoversheet] Couldn't create coversheet document". From what I understand from the code, this error is triggered when the conversion of the coversheet failed and there is no PDF to append to the original document. Does that sound familiar to anyone? One thing that we observed, is that the OpenOffice.pid file contains the PID of the OpenOffice "Splash screen" instead of "soffice.bin". Is that normal? Robin -----Message d'origine----- De : Field A.N. [mailto:af05v@ecs.soton.ac.uk] Envoyé : 22 octobre 2015 06:27 À : eprints-tech@ecs.soton.ac.uk Objet : [EP-tech] Re: Coversheets plugin - can't find OpenOffice Our technical team have been keeping the Coversheets documentation up to date. It's at http://wiki.eprints.org/w/Coversheets ...perhaps it can give you some insight. -- Adam Field Business Relationship Manager and Community Lead EPrints Services +44 (0)23 8059 8814 On 21 Oct 2015, at 17:44, Robin Sylvestre wrote: > Are any of you familiar with the Coversheets plugin and OpenOffice > Toolkit? > > We are trying to make it work, but so far we are stuck, as we can’t get it > to find the OpenOffice executable. > > We followed instructions from the wiki > (http://wiki.eprints.org/w/Coversheets) and installed everything. I can > add coversheets to the admin interface under “manage records”, and they > are added to the task queue when the PDF is first requested. Everything > seems to work except the part where it actually tries to generate and > attach the coversheet. > > Looking at the /eprints/var/OpenOffice.log file, I get “OpenOffice > executable not found”, even though OpenOffice paths have been > correctly set in the file /eprints/lib/cfg.d/openoffice.pl > > Are we missing anything? > > Running EPrints 3.3.13 on CentOS 7. > > Thanks for your help! > > > > Robin Sylvestre > Technicien en documentation > Bibliothèque - Services techniques et systèmes informatisés École > Polytechnique de Montréal > Tél.: 514-340-4711 poste 3743 > > *** Options: > http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > *** Archive: http://www.eprints.org/tech.php/ > *** EPrints community wiki: http://wiki.eprints.org/ > *** EPrints developers Forum: http://forum.eprints.org/ *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/ *** EPrints developers Forum: http://forum.eprints.org/
- References:
- [EP-tech] Coversheets plugin - can't find OpenOffice
- From: Robin Sylvestre <robin.sylvestre@polymtl.ca>
- [EP-tech] Re: Coversheets plugin - can't find OpenOffice
- From: "Field A.N." <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: Coversheets plugin - can't find OpenOffice
- From: Robin Sylvestre <robin.sylvestre@polymtl.ca>
- [EP-tech] Coversheets plugin - can't find OpenOffice
- Prev by Date: [EP-tech] Re: Coversheets plugin - can't find OpenOffice
- Next by Date: [EP-tech] Plugins: enabled by default?
- Previous by thread: [EP-tech] Re: Coversheets plugin - can't find OpenOffice
- Next by thread: [EP-tech] EPrints Services - Community news
- Index(es):