Conversion failed

Ask all your questions regarding OC 7.x Please read the Support Forum Rules
Forum rules
ownCloud 7.x will be end of life soon. See maintenance and release schedule for more details.

Time to upgrade!

Before you post; make sure you are using at least PHP Version 5.3.x - Also read Support Forum - Read this before posting
Posts: 13
Joined: Mon Apr 04, 2016 3:39 pm
ownCloud version: 9.0.0
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.6

Re: Conversion failed

Postby Bonnet » Thu Apr 14, 2016 11:19 pm

dschulte01 wrote: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


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 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.

I'm trying to apply some of what they mention on their experiences for my case is Owncloud 9 under Centos 7, but after doing all the steps mentioned, I get this error

Code: Select all

Conversion test failed. Raw output:fopen /usr/lib64/libreoffice/program/pagein-writer: No such file or directory mkstemp("/usr/share/httpd/.execoooK0Rtpn") failed: Permission denied mkstemp("/usr/share/httpd/.execooolBbxja") failed: Permission denied Error: Please reverify input parameters... convert /tmp/oc_tmp_ATp6rQ -> /tmp/oc_tmp_da5tWI-folder//oc_tmp_ATp6rQ.odt using writer8

Do you have any idea?


  • Similar Topics
    Last post

Return to “ownCloud Community Edition 7.x”

Who is online

Users browsing this forum: No registered users and 3 guests