Conversion failed

Ask all your questions regarding OC 7.x Please read the Support Forum Rules
Forum rules
Before you post; make sure you are using at least PHP Version 5.3.x - Also read Support Forum - Read this before posting

Re: Conversion failed

Postby RandolphCarter » Thu Aug 07, 2014 3:18 pm

Then it might be a problem with the CentOS libreoffice binaries as I said above; check with their community.
90 % of all forum questions could be solved if posters did what
90 % of those posting answers to their questions are doing: enter their question into google and read...

-- shamelessly copied/translated from user xxMuahdibxx in computerbase.de forums
RandolphCarter
Inventory
 
Posts: 4806
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 7.0.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Conversion failed

Postby Adderdawn » Thu Aug 07, 2014 8:31 pm

Hi all -

I was having exactly this problem too running a fedora 20 server. Looking into it, I learned here to install libreoffice-headless binaries.
Code: Select all
yum install libreoffice-headless


Now when I select 'Apply and test', the conversion seems to hang. I believe it is a SE-Linux denial. When I kill the apache owned soffice PID manually (after several minutes), I get this error in OC:
Conversion failed. Raw output:javaldx: Could not find a Java Runtime Environment! Warning: failed to read path from javaldx mkstemp("/usr/share/httpd/.execoooXRy8O3") failed: Permission denied


Reviewing the SELinux logs, I have access denials associated with gij, java and httpd. A good tutorial on SELinux is here.

After updating my policy, it continues to hang but I think a reboot may fix it since I don't seem to be getting additional entries in my SELinux log-file.

Hope that helps,

Ad.
Adderdawn
Newbie
 
Posts: 1
Joined: Thu Aug 07, 2014 6:36 pm
ownCloud version: 7.0.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.14

Re: Conversion failed

Postby fraksken » Sat Aug 09, 2014 10:30 pm

Dear Adderdawn,

You made me very happy today. You solved my issue :)
fraksken
Beginner
 
Posts: 18
Joined: Fri Aug 30, 2013 9:03 pm
ownCloud version: 7.0.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4

Re: Conversion failed

Postby badbod » Sun Aug 10, 2014 1:00 pm

yep, installing libreoffice-headless worked for me too.

Centos 7, ownCloud 7.1
badbod
Newbie
 
Posts: 1
Joined: Sun Aug 10, 2014 12:58 pm
ownCloud version: 7.0.1
Webserver: Apache
Database: SQLite
OS: Linux
PHP version: 5.4.16

Re: Conversion failed

Postby avg2014 » Thu Aug 14, 2014 11:14 am

Adderdawn wrote:Now when I select 'Apply and test', the conversion seems to hang. I believe it is a SE-Linux denial.


Thanks, fixing SElinux got me up and running.
--
//AvG
avg2014
Beginner
 
Posts: 13
Joined: Fri Feb 28, 2014 11:40 am
Location: Uppsala, Sweden
ownCloud version: 7.0.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5

Re: Conversion failed

Postby dschulte01 » Mon Aug 18, 2014 7:13 pm

I am experiencing the same issue. After installing libreoffice-headless I am not able to "Apply and Test" I receive the following error. I placed SELinux in permissive mode to allow it to run but that's not an option.

Code: Select all
Conversion failed. Raw output:javaldx: Could not find a Java Runtime Environment! Warning: failed to read path from javaldx mkstemp("/usr/share/httpd/.execoooHLT25h") failed: Permission denied


Code: Select all
type=AVC msg=audit(1408380472.166:421): avc:  denied  { setattr } for  pid=2715 comm="soffice.bin" name="tmp" dev="dm-1" ino=68506653 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir
type=SYSCALL msg=audit(1408380472.166:421): arch=c000003e syscall=90 success=no exit=-13 a0=7fff5ed0d540 a1=1c0 a2=1c1 a3=7fff5ed0d300 items=0 ppid=2684 pid=2715 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="soffice.bin" exe="/usr/lib64/libreoffice/program/soffice.bin" subj=system_u:system_r:httpd_t:s0 key=(null)


Now I know this is an SELinux problem with libreoffice but I just don't know how to change the permission on soffice.bin to allow it to run. I have reviewed centOS SELinux page but I don't know enough about SELinux to interperut it yet. http://wiki.centos.org/HowTos/SELinux

Any help would be greatly appreciated
User avatar
dschulte01
Beginner
 
Posts: 12
Joined: Fri Aug 15, 2014 11:09 pm
Location: Sheridan
ownCloud version: 7.0.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.16

Re: Conversion failed

Postby dschulte01 » Fri Aug 22, 2014 4:55 pm

avg2014 wrote:
Adderdawn wrote:Now when I select 'Apply and test', the conversion seems to hang. I believe it is a SE-Linux denial.


Thanks, fixing SElinux got me up and running.


avg2014 how did you correct your SELinux issue? I have the same problem going on
User avatar
dschulte01
Beginner
 
Posts: 12
Joined: Fri Aug 15, 2014 11:09 pm
Location: Sheridan
ownCloud version: 7.0.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.16

Re: Conversion failed

Postby avg2014 » Mon Aug 25, 2014 8:24 am

dschulte01 wrote:
avg2014 wrote:
Adderdawn wrote:Now when I select 'Apply and test', the conversion seems to hang. I believe it is a SE-Linux denial.


Thanks, fixing SElinux got me up and running.


avg2014 how did you correct your SELinux issue? I have the same problem going on


Yeah, sort of. I turned off SElinux altogether... :?

This problem was first seen on my own private owncloud at home, so had no qualms about disabling it.
The setup at work, which is basically the same, except for it running in a virtual guest, didn't display this problem. As far as I can tell libreoffice works fine there and SElinux is enabled. Go figure... :roll:

Sorry I can't be of more help.

Edit: I run CentOS 6.5 x64 on both instances. A poster previously mentioned it might be the CentOS libreoffice libs.
What did you run OC off of?
--
//AvG
avg2014
Beginner
 
Posts: 13
Joined: Fri Feb 28, 2014 11:40 am
Location: Uppsala, Sweden
ownCloud version: 7.0.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5

Re: Conversion failed

Postby dschulte01 » Mon Aug 25, 2014 8:42 pm

Disabeling SELinux in my case was not going to be an option, I also wouldnt advise anyone, to disable SELinux since it is a great security feature. Though after a few hours of troubleshooting and reading pages on SELinux permissions and fuctions I was able to determine a safe way to get libreoffice-headless to run without SELinux complaining.

NOTE: If you want to check and see if SELinx is causing an issue you can set it into permissive mode instead of disabeling it.
Code: Select all
setenforce 0

To see if SELinux is enforcing or permissive mode you can run
Code: Select all
sestatus


I wanted to see what SELinux was trying to block exactly because i needed to know what I needed to allow in SELinux. Running the following commands lead me to believe that SELinux was trying to access soffice.bin located at /user/lib64/libreoffice/program .

Code: Select all
ls -Z /var/log/audit/audit.log


Code: Select all
type=AVC msg=audit(1408380472.166:421): avc:  denied  { setattr } for  pid=2715 comm="soffice.bin" name="tmp" dev="dm-1" ino=68506653 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir
type=SYSCALL msg=audit(1408380472.166:421): arch=c000003e syscall=90 success=no exit=-13 a0=7fff5ed0d540 a1=1c0 a2=1c1 a3=7fff5ed0d300 items=0 ppid=2684 pid=2715 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="soffice.bin" exe="/usr/lib64/libreoffice/program/soffice.bin" subj=system_u:system_r:httpd_t:s0 key=(null)


The context on soffice.bin was system_u:system_r:httpd_t:s0.....now I dont know enough about SELinux to understand what this context was so I decided to just recontext this file to see if that was the issue.
Code: Select all
restorecon -v /user/lib64/libreoffice/program/soffice.bin

This wasn't the issue as nothing changed when it re-contexted the file

So I was able to properly and permently give SELinux permission to soffice.bin with the following commands.

Code: Select all
grep soffice /var/log/audit/audit.log | audit2allow -M soffice.bin

Code: Select all
semodule -i soffice.bin.pp


What this does is allow the soffice.bin file into the SELinux allowed moduals. By placing it in the allowed moduals list, SELinux will now trust this program. Now why it was not in the allowed moduals list is beyond me but this was essentially the case.

I hope this is helpful to anyone who might be having the same issues that I was.
Last edited by dschulte01 on Tue Aug 26, 2014 4:53 pm, edited 2 times in total.
User avatar
dschulte01
Beginner
 
Posts: 12
Joined: Fri Aug 15, 2014 11:09 pm
Location: Sheridan
ownCloud version: 7.0.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.16

Re: Conversion failed

Postby RealRancor » Mon Aug 25, 2014 11:55 pm

Hi,

thanks for posting this. Feel free to add this with a new post to our FAQ here: viewtopic.php?f=17&t=22948
*inactive*
RealRancor
OwnCloud master
 
Posts: 8599
Joined: Sat May 26, 2012 3:00 pm

Previous

Return to ownCloud Community Edition 7.x

Who is online

Users browsing this forum: RandolphCarter and 6 guests