dagwieers/unoconv — Issue #19: SElinux Problems When Running Indirectly
Author: dks
Created: 2012-01-06 06:25:32+00:00
State: open

Hi guys! Just wasted almost 2 days trying to run unoconv from PHP/Apache at server with Fedora 15, (had to install libreoffice-headless as well). Guess it's not really unoconv issue, but would be nice to warn others somewhere, that if they have some problem launching unoconv, try stop SElinux first (like setenforce 0) and see what happens. In my case it gave errors like:

[Java framework] Error in function createSettingsDocument (elements.cxx). javaldx failed!
Failed to connect to /usr/bin/soffice (pid=4478) in 6 seconds.
Connector : couldn't connect to socket (Success)
Error: Unable to connect or start own listener. Aborting.

Not a word about SElinux, heh?! Well I had to run audit2allow lots of time and generate big'n'ugly SElinux policy module opening whole bunch of security holes, but that's the best quick and dirty solution for those who does not want to fight with SElinux tutorials...