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/libreo ffice.1.gz
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -----
linux-k2jb:/srv/www/htdocs /config # vi config.php
<?php
$CONFIG = array (
'instanceid' => 'oc85acb0b335',
'passwordsalt' => '299c741592bd575a6c9aeadb8 b3221',
'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',
);
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/libreo
--------------------------
linux-k2jb:/srv/www/htdocs
<?php
$CONFIG = array (
'instanceid' => 'oc85acb0b335',
'passwordsalt' => '299c741592bd575a6c9aeadb8
'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'
);
ASKER
The below is from the owncloud.log
{"reqId":"55341ff5d9931"," app":"docu ments","me ssage":"Co nversion 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 \/document s\/ajax\/a dmin.php"}
{"reqId":"55341ff951907"," app":"PHP" ,"message" :"fopen(\/ etc\/tmp\/ 5de8cbca65 f96d24e351 8df6783ada 7a): failed to open stream: No such file or directory at \/srv\/www\/htdocs\/lib\/p rivate\/he lper.php#5 80","level ":3,"time" :"2015-04- 19T21:36:5 7+00:00"," method":"P OST","url" :"\/index. php\/apps\ /documents \/ajax\/ad min.php"}
{"reqId":"55341ff951907"," app":"PHP" ,"message" :"fclose() expects parameter 1 to be resource, boolean given at \/srv\/www\/htdocs\/lib\/p rivate\/he lper.php#5 81","level ":3,"time" :"2015-04- 19T21:36:5 7+00:00"," method":"P OST","url" :"\/index. php\/apps\ /documents \/ajax\/ad min.php"}
{"reqId":"55341ff951907"," app":"PHP" ,"message" :"mkdir(): No such file or directory at \/srv\/www\/htdocs\/lib\/p rivate\/he lper.php#6 21","level ":3,"time" :"2015-04- 19T21:36:5 7+00:00"," method":"P OST","url" :"\/index. php\/apps\ /documents \/ajax\/ad min.php"}
{"reqId":"55341ff951907"," app":"PHP" ,"message" :"file_put _contents( \/etc\/tmp \/5de8cbca 65f96d24e3 518df6783a da7a): failed to open stream: No such file or directory at \/srv\/www\/htdocs\/apps\/ documents\ /ajax\/adm in.php#49" ,"level":3 ,"time":"2 015-04-19T 21:36:57+0 0:00","met hod":"POST ","url":"\ /index.php \/apps\/do cuments\/a jax\/admin .php"}
{"reqId":"55341ff951907"," app":"docu ments","me ssage":"Co nversion 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 \/document s\/ajax\/a dmin.php"}
{"reqId":"553420002cc9e"," app":"webd av","messa ge":"Sabre \\DAV\\Exc eption\\No tAuthentic ated: No basic authentication headers were found","level":0,"time":"2 015-04-19T 21:37:04+0 0:00","met hod":"PROP FIND","url ":"\/remot e.php\/web dav\/"}
{"reqId":"5534200165c4d"," app":"PHP" ,"message" :"mkdir(): No such file or directory at \/srv\/www\/htdocs\/lib\/p rivate\/ca che\/fileg lobal.php# 15","level ":3,"time" :"2015-04- 19T21:37:0 5+00:00"," method":"G ET","url": "\/cron.ph p"}
{"reqId":"55341ff5d9931","
{"reqId":"55341ff951907","
{"reqId":"55341ff951907","
{"reqId":"55341ff951907","
{"reqId":"55341ff951907","
{"reqId":"55341ff951907","
{"reqId":"553420002cc9e","
{"reqId":"5534200165c4d","
Please run ldconfig (as root) and restart webserver running ownclud.
Are you running owncloud on OpenSUSE or in some sort of blackbox virtual machine?
Are you running owncloud on OpenSUSE or in some sort of blackbox virtual machine?
ASKER
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.
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...
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...
ASKER
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
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...
Why you stopped at 13.2? You could go to factory release...
ASKER
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.
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
It is your choice to not follow advice and get ORIGINAL software 13.1 that works.
there are more settings see the config documents:
https://doc.owncloud.org/server/7.0/admin_manual/configuration/config_sample_php_parameters.html?highlight=libreoffice
look for preview.
Also this about collaborative docs.
https://doc.owncloud.org/server/7.0/admin_manual/configuration/collaborative_documents_configuration.html?highlight=libreoffice