Hi everybody I want to install add-on "Document Viewer" (http://plone.org/products/document-viewer) for word, excel, powerpoint file view online.
Install requirements have setted followed http://plone.org/products/document-viewer and http://documentcloud.github.com/docsplit/ .Added collective.documentviewer to eggs and zcml, re-build , turn on it in Plone, everythins seems fine. Upload PDF files,the online view is ok, but got errorr when try to convert word files(also excel,powerpoint).The "Document Viewer Conversion Error" is: +++++ error messages begin ++++++ …… Exception: Command /usr/bin/docsplit pdf /usr/local/Plone.B/dvpdffiles/9/2/9229882623514927837dbcae4d06ab40/dump.doc --output /usr/local/Plone.B/dvpdffiles/9/2/9229882623514927837dbcae4d06ab40 finished with return code 1 and output: Exception in thread "main" org.artofsolving.jodconverter.office.OfficeException: failed to start and connect …… Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not establish connection …… Caused by: org.artofsolving.jodconverter.office.OfficeException: could not establish connection …… Caused by: org.artofsolving.jodconverter.office.OfficeException: office process died with exit code 134 …… +++++ error messages end ++++++ the source codes can found at http://code.google.com/p/jodconverter/source/browse/trunk/jodconverter-core/src/main/java/org/artofsolving/jodconverter/office/ManagedOfficeProcess.java?r=215 I had try to solve it with: 1. # ln -s libreoffice /usr/bin/soffice # ls -l /usr/bin/ | grep office lrwxrwxrwx 1 root root 34 May 3 08:42 libreoffice -> ../lib/libreoffice/program/soffice -rwxr-xr-x 1 root root 53 May 3 07:38 loffice lrwxrwxrwx 1 root root 11 Mar 1 20:03 openoffice.org -> libreoffice lrwxrwxrwx 1 root root 11 May 23 14:20 soffice -> libreoffice 2.start soffice in terminal #/usr/bin/soffice --headless --nologo --nofirststartwizard --invisible --accept="socket,host=127.0.0.1,port=8100;urp" & > /dev/null # ps aux | grep office root 16116 0.0 0.0 127976 2288 pts/0 Sl 14:25 0:00 /usr/lib/libreoffice/program/oosplash --headless --nologo --nofirststartwizard --invisible --accept=socket,host=127.0.0.1,port=8100;urp root 16135 0.0 0.3 604344 129144 pts/0 Sl 14:25 0:02 /usr/lib/libreoffice/program/soffice.bin --headless --nologo --nofirststartwizard --invisible --accept=socket,host=127.0.0.1,port=8100;urp root 16229 0.0 0.0 6496 608 pts/0 S+ 15:17 0:00 grep --color=auto office (the port of zeo-server had changed before) but nothing changed. So what should i do now ? other infomastions (maybe useful) 1.Plone 4.1.5 (4114) This Plone is new setup,and is upgrade from 4.1.4 2.eggs added ++++++++++++++++++++ eggs = # Products.LinguaPlone==4.1.1 Products.LinguaPlone # Products.PloneFormGen==1.7.0 Solgema.fullcalendar collective.z3cform.norobots webcouturier.dropdownmenu collective.ckeditor Products.FCKeditor collective.documentviewer Products.OpenXml zcml = # plone.reload Solgema.fullcalendar collective.z3cform.norobots webcouturier.dropdownmenu collective.ckeditor Products.FCKeditor collective.documentviewer +++++++++++++++++++++++++ 3. Installed graphicsmagick & ghostscript with source code Installed docsplit with gem Installed others with apt-get 4. ++++++++++++++++ # ruby -v ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] ++++++++++++++++ ++++++++++++++++ # gem -v 1.8.24 ++++++++++++++++ ++++++++++++++++ # gs -v GPL Ghostscript 9.05 (2012-02-08) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. +++++++++++++++++ +++++GraphicsMagick+++++++ # gm version GraphicsMagick 1.3.15 2012-04-28 Q8 http://www.GraphicsMagick.org/ Copyright (C) 2002-2012 GraphicsMagick Group. Additional copyrights and licenses apply to this software. See http://www.GraphicsMagick.org/www/Copyright.html for details. Feature Support: Thread Safe yes Large Files (> 32 bit) yes Large Memory (> 32 bit) yes BZIP yes DPS no FlashPix no FreeType yes Ghostscript (Library) no JBIG no JPEG-2000 yes JPEG yes Little CMS yes Loadable Modules no OpenMP yes (200805) PNG yes TIFF yes TRIO no UMEM no WMF yes X11 yes XML yes ZLIB yes Host type: x86_64-unknown-linux-gnu Configured using the command: ./configure Final Build Parameters: CC = gcc -std=gnu99 CFLAGS = -fopenmp -g -O2 -Wall -pthread CPPFLAGS = -I/usr/include/freetype2 -I/usr/include/libxml2 CXX = g++ CXXFLAGS = -pthread LDFLAGS = -L/usr/lib -L/usr/lib LIBS = -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng12 -lwmflite -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread +++++++++++++++++++++++++++++ 5.The full messages of error +++++++++++++++++++++++++++++ Traceback (most recent call last): File "/usr/local/Plone.B/buildout-cache/eggs/collective.documentviewer-2.0.1-py2.6.egg/collective/documentviewer/convert.py", line 477, in __call__ pages = self.run_conversion() File "/usr/local/Plone.B/buildout-cache/eggs/collective.documentviewer-2.0.1-py2.6.egg/collective/documentviewer/convert.py", line 373, in run_conversion return docsplit.convert(self.storage_dir, **args) File "/usr/local/Plone.B/buildout-cache/eggs/collective.documentviewer-2.0.1-py2.6.egg/collective/documentviewer/convert.py", line 283, in convert self.convert_to_pdf(path, filename, output_dir) File "/usr/local/Plone.B/buildout-cache/eggs/collective.documentviewer-2.0.1-py2.6.egg/collective/documentviewer/convert.py", line 255, in convert_to_pdf self._run_command(cmd) File "/usr/local/Plone.B/buildout-cache/eggs/collective.documentviewer-2.0.1-py2.6.egg/collective/documentviewer/convert.py", line 116, in _run_command raise Exception(error) Exception: Command /usr/bin/docsplit pdf /usr/local/Plone.B/dvpdffiles/9/2/9229882623514927837dbcae4d06ab40/dump.doc --output /usr/local/Plone.B/dvpdffiles/9/2/9229882623514927837dbcae4d06ab40 finished with return code 1 and output: Exception in thread "main" org.artofsolving.jodconverter.office.OfficeException: failed to start and connect at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:64) at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:101) at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:62) at org.artofsolving.jodconverter.cli.Convert.main(Convert.java:112) Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not establish connection at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:62) ... 3 more Caused by: org.artofsolving.jodconverter.office.OfficeException: could not establish connection at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:142) at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000(ManagedOfficeProcess.java:31) at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(ManagedOfficeProcess.java:58) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: org.artofsolving.jodconverter.office.OfficeException: office process died with exit code 134 at org.artofsolving.jodconverter.office.ManagedOfficeProcess$6.attempt(ManagedOfficeProcess.java:136) at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:40) at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:30) at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:120) ... 8 more +++++++++++++++++++++++++++++ -- View this message in context: http://plone.293351.n2.nabble.com/jodconverter-connect-error-When-try-to-setup-Document-Viewer-tp7555761.html Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com. _______________________________________________ Setup mailing list [email protected] https://lists.plone.org/mailman/listinfo/plone-setup
