Link to home
Start Free TrialLog in
Avatar of lhrslsshahi
lhrslsshahi

asked on

LibreOffice not working when installed in Owncloud 7.0.2 Appliance (Opensuse 13.2)

Hello Experts,

I have been asked to install LibreOffice in Owncloud please see below error logs and other details


Documents
MS Word support (requires openOffice/libreOffice)
 Local
openOffice/libreOffice is installed on this server. Path to binary is provided via preview_libreoffice_path in config.php
 External
openOffice/libreOffice is installed on external server running a format filter server

Conversion failed. Check log for details.

Log file;

Conversion failed. Raw output:[Java framework] Error in function createSettingsDocument (elements.cxx). javaldx failed! Warning: failed to read path from javaldx
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

whereis libreoffice
libreoffice: /usr/bin/libreoffice /usr/lib/libreoffice /usr/share/libreoffice /usr/share/man/man1/libreoffice.1.gz

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
linux-k2jb:/srv/www/htdocs/config # vi config.php
<?php
$CONFIG = array (
  'instanceid' => 'oc85acb0b335',
  'passwordsalt' => '299c741592bd575a6c9aeadb8b3221',
  'trusted_domains' =>
  array (
    0 => 'file.sal.com',
  ),
  'datadirectory' => '/srv/www/owncloud/data',
  'dbtype' => 'sqlite3',
  'version' => '7.0.2.1',
  'installed' => true,
  'forcessl' => true,
  'mail_smtpmode' => 'smtp',
  'mail_from_address' => 'do_not_reply',
  'mail_domain' => 'sal.com',
  'mail_smtphost' => '192.168.219.17',
  'mail_smtpport' => '25',
  'user_webdavauth_url' => 'https://file.sal.com/remote.php/webdav/',
  'loglevel' => '0',
   
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
);
Avatar of noci
noci

Avatar of lhrslsshahi

ASKER

The below is from the owncloud.log

{"reqId":"55341ff5d9931","app":"documents","message":"Conversion failed. Raw output:[Java framework] Error in function createSettingsDocument (elements.cxx).\njavaldx failed!\nWarning: failed to read path from javaldx\n","level":2,"time":"2015-04-19T21:36:54+00:00","method":"POST","url":"\/index.php\/apps\/documents\/ajax\/admin.php"}
{"reqId":"55341ff951907","app":"PHP","message":"fopen(\/etc\/tmp\/5de8cbca65f96d24e3518df6783ada7a): failed to open stream: No such file or directory at \/srv\/www\/htdocs\/lib\/private\/helper.php#580","level":3,"time":"2015-04-19T21:36:57+00:00","method":"POST","url":"\/index.php\/apps\/documents\/ajax\/admin.php"}
{"reqId":"55341ff951907","app":"PHP","message":"fclose() expects parameter 1 to be resource, boolean given at \/srv\/www\/htdocs\/lib\/private\/helper.php#581","level":3,"time":"2015-04-19T21:36:57+00:00","method":"POST","url":"\/index.php\/apps\/documents\/ajax\/admin.php"}
{"reqId":"55341ff951907","app":"PHP","message":"mkdir(): No such file or directory at \/srv\/www\/htdocs\/lib\/private\/helper.php#621","level":3,"time":"2015-04-19T21:36:57+00:00","method":"POST","url":"\/index.php\/apps\/documents\/ajax\/admin.php"}
{"reqId":"55341ff951907","app":"PHP","message":"file_put_contents(\/etc\/tmp\/5de8cbca65f96d24e3518df6783ada7a): failed to open stream: No such file or directory at \/srv\/www\/htdocs\/apps\/documents\/ajax\/admin.php#49","level":3,"time":"2015-04-19T21:36:57+00:00","method":"POST","url":"\/index.php\/apps\/documents\/ajax\/admin.php"}
{"reqId":"55341ff951907","app":"documents","message":"Conversion failed. Raw output:[Java framework] Error in function createSettingsDocument (elements.cxx).\njavaldx failed!\nWarning: failed to read path from javaldx\n","level":2,"time":"2015-04-19T21:36:57+00:00","method":"POST","url":"\/index.php\/apps\/documents\/ajax\/admin.php"}
{"reqId":"553420002cc9e","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2015-04-19T21:37:04+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/"}
{"reqId":"5534200165c4d","app":"PHP","message":"mkdir(): No such file or directory at \/srv\/www\/htdocs\/lib\/private\/cache\/fileglobal.php#15","level":3,"time":"2015-04-19T21:37:05+00:00","method":"GET","url":"\/cron.php"}
Please run ldconfig (as root) and restart webserver running ownclud.

Are you running owncloud on OpenSUSE or in some sort of blackbox virtual machine?
I have ran ldconfig and restarted apache2.  I am running owncloud on OpenSUSE from the virtual appliance that is downloadable.

Still getting the same issue.
Which out of four VMs?
I am also trying it out BUT:
install CentOS 7 mini
install epel-release
install owncloud-sqlite

result looks like a cloud. i did not get as far as to libreoffice, but it looks like using java uno connector from error message
On embedded mashup device it will be hard to get it right...
It's the owncloud 7.0.2 appliance VM which comes with openSuse 13.1 however I upgraded to 13.2

https://susestudio.com/a/TadMax/owncloud-in-a-box?version=7.0.2
Does it work adding libreoffice to default opensuse evergreen?
Why you stopped at 13.2? You could go to factory release...
I have never tried installing LibreOffice on default Opensuse evergreen.


Evergreen latest version is 13.1.

I only upgraded to 13.2 as the 13.1 came up with vulnerabilities on the Qualys SSL Labs scan.
Does not stand any criticism.
Please get v13.1 reinstalled and stay with it as it will be supported longer than 13.2.
Now when you have consistent and repeatable software environment - is there *ANY* problem with enabling libreoffice in owncloud?
ASKER CERTIFIED SOLUTION
Avatar of lhrslsshahi
lhrslsshahi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be closed as follows:

Accepted answer: 0 points for lhrslsshahi's comment #a40800868

for the following reason:

This is the solution that worked for me.
openoffice is alias that installs libreoffice ...
It is your choice to not follow advice and get ORIGINAL software 13.1 that works.