Forums / Setup & design / Deamon reported error

Deamon reported error

Author Message

Vicente Olivan

Thursday 17 May 2007 10:52:01 am

Im working with import MS Word documents

I configured all steps for make this thing but, when I import a document

In browser:

 

     Deamon reported error. Error: (3) - Unknown failure converting document 
 

in console

     [root@web htdocs]# php extension/ezodf/daemon.php
Started OpenOffice.org deamon
got new connection
Converting document with convertToOOo
sh: openoffice.org-2.0: command not found

Error: (3) - Unknown failure converting document
 Data Recieved on child 27899

 

Somebody proved this?

Thanks a lot

Philip K.

Thursday 16 July 2009 3:37:26 am

Hi,

did you got any Feedback to solve this Problem.
we got the same error here.

Website output:

Export eZ Publish content to OpenOffice.org
Fehler: Unable to open file /var/websites/html/var/plain_site/cache/ooo_converted_6978d60fe89bd434d0209a4dc7c85a3a.pdf on server side

Here you can export any eZ Publish content object to an OpenOffice.org Writer document format. 

Console output:

php extension/ezodf/daemon.php
Started OpenOffice.org daemon
got new connection
Converting document with convertToPDF
/usr/lib/openoffice/program/soffice.bin X11 error: Can't open display: :99
   Set DISPLAY environment variable, use -display option
   or check permissions of your X-Server
   (See "man X" resp. "man xhost" for details)

Error: (3) - Unknown failure converting document
 Data Recieved on child 19748

greetings

Linux is like a wigwam; no windows, now gates, and apache inside!

Gaetano Giunta

Thursday 16 July 2009 10:05:58 am

@Philip: the error message you got gives some helpful hints to get you going:

"Set DISPLAY environment variable, use -display option or check permissions of your X-Server"

The problem is that the openoffice sw, to start and execute its conversion macro, needs a graphical Xwindows environment running. It will possibly not even display a single application window on that environment, but it refuses to start without one.

Solutions:

- install and keep running on the server the standard xwindows server - chews up a lot of memory, but probably the easiest one to set up. Plus you will have a chance to see what is actually happening on that graphical screen

- install an xwnindows server on a remote machine and use the DISPLAY environment variable on the eZP server to redirect its visual output to the remote machine - it will save on ram but introduce a dependency on one more machine, which is generally bad

- install and run xvfb on the eZP server (or, as a variant, run xvnc) - saves on ram and introduces no external dependencies

google for 'openoffice headless' for more details

Principal Consultant International Business
Member of the Community Project Board

Heath

Friday 17 July 2009 3:39:22 am

@Vicente

In your case based on your reported error text you should add the program binary to your shell path and try executing the program again. [0]

Also you may wish to change the program to work for you directly.
eZpedia mentions an issue [1] which caused one popular ez
developer to change the variable containing the path to the desired executable.

then follow docs ( install marcro etc.) but before starting the daemon with cli, open extension/ezodf/daemon.php with a PHP editor and change line 40:

$ooexecutable = "openoffice.org-2.0";
 
into
 
$ooexecutable = "/Applications/NeoOffice.app/Contents/MacOS/soffice";

We think the ezodf extension at this point truly belongs imported into projects.ez.no so the community can continue to maintain this product and extended to meet our day to day needs.

One of which might be to change the ooexecuteable variable to a setting file variable(s) (path/binary) to prevent having to modify the source code in this way directly.

Cheers,
Heath

[0] <i>http://ubuntuforums.org/showthread.php?t=650327</i>
[1] <i>http://ezpedia.org/ez/ezodf</i>

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

kracker (the)

Friday 17 July 2009 4:02:30 am

Hello All,

We've seen threads like this over the years while the ezodf extension remains largely unknown, underutilized, poorly documented and all around a disappointment to the common eZ Publish developer.

Perhaps it's time for someone to just import the current version and continue.

Like where's the documentation on how to create an odf file it can actually successfully import from scratch or at all, otherwise, this is not documented publicly. :P

It's pathetic, contemptuous, marked by sorrow (in all our day to day lives), pitifully inferior or inadequate, with a side of absurd and laughable.

<i>//kracker</i>

<i>{concat('We know you can\'t even hear me', ' :P', ' Curse Ze')|internet}</i>

<b>Sole : Dear Elpee!!!
http://www.youtube.com/watch?v=XP3Rc7CxSf4 (1999, me)
http://www.youtube.com/watch?v=HJrQwvEVtMw (2009, you)</b>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Vicente Olivan

Friday 17 July 2009 4:32:50 am

@ Healt
I reviewed the documentation, good post, it works
Thanks