After the Update of Open-Xchange from Version 7.8.3-22 to Version 7.8.3-23 the open-xchange-document-converter does not work anymore after the reboot of the Server. I can not see thumbnails and Previews of attached office-documents.

Error in log:

Documentconverter remote connection could not be established => please check remote converter setup (remoteurl=http://localhost:8008/documentconverterws, async_request=true)
2017-05-17T15:07:47,282+0200 ERROR [OXWorker-0000327] com.openexchange.ajax.requesthandler.DispatcherServlet.logException(
Error processing request.

netstat does not show something on this port anymore:

root@mail:~# netstat -tulpn |grep 80
tcp        0      0*               LISTEN      2166/python2.7
tcp6       0      0          :::*                    LISTEN      1080/java
tcp6       0      0 :::80                   :::*                    LISTEN      2722/apache2
tcp6       0      0          :::*                    LISTEN      1080/java
tcp6       0      0 :::42245                :::*                    LISTEN      1080/java
tcp6       0      0          :::*                    LISTEN      1080/java

Starting or restarting the open-xchange-documentconverter-server does not bring back something listening on that port.

i went back to an older snapshot on my testing-vm just to verify. The document-converter works as expected , the thumbnals of the attachments is created the preview works and netstat shows something listening on Port 8008:

root@ucs-8633:~# netstat -tulpn | grep 80
tcp        0      0*               LISTEN      31002/python2.7
tcp6       0      0 :::80                   :::*                    LISTEN      964/apache2
tcp6       0      0          :::*                    LISTEN      827/java
tcp6       0      0          :::*                    LISTEN      3350/java

After updating that machine again, the converter stopped working.

Any help would be appreciated.

Matthias Hütter

Hi! Could you please add your UCS version? Just run

univention-app info

and add the output :slight_smile:

root@mail:~# univention-app info
UCS: 4.2-0 errata15
App Center compatibility: 4
Installed: mailserver=11 open-xchange-text=7.8.3-17-ucs1 oxseforucs=7.8.3-17-ucs1

Open-xchange has identified the problem and is working on a fix.
I will share news here, when I get them.

Open-xchange just released a fix for this Problem:

Document previews work as expected in my Test-VM.

Thank you for your Help @troeder

Have a nice Weekend :sunny:

Sadly my production machine throws a new errror:

com.openexchange.exception.OXException: PREVIEW-0005 Categories=ERROR Message='Thumbnail image not available. Reason: PreviewDocument's thumbnail input stream is null' exceptionID=2100877259-75
        com.openexchange.exception.locale: de_DE
        at com.openexchange.exception.OXExceptionFactory.create(
        at com.openexchange.exception.OXExceptionFactory.create(
        at com.openexchange.exception.OXExceptionFactory.create(
        at com.openexchange.preview.PreviewExceptionCodes.create(
        at com.openexchange.ajax.requesthandler.converters.preview.PreviewImageResultConverter.convert(
        at com.openexchange.ajax.requesthandler.DefaultConverter.convert(
        at com.openexchange.ajax.requesthandler.customizer.ConversionCustomizer.outgoing(
        at com.openexchange.ajax.requesthandler.DefaultDispatcher.customizeResult(
        at com.openexchange.ajax.requesthandler.DefaultDispatcher.perform(
        at com.openexchange.ajax.requesthandler.DispatcherServlet.handle(
        at com.openexchange.ajax.requesthandler.DispatcherServlet.doGet(
        at javax.servlet.http.HttpServlet.service(
        at com.openexchange.ajax.AJAXServlet.doService(
        at com.openexchange.ajax.SessionServlet.doService(
        at com.openexchange.ajax.requesthandler.DispatcherServlet.service(
        at javax.servlet.http.HttpServlet.service(
        at com.openexchange.http.grizzly.service.http.OSGiServletHandler$FilterChainImpl.doFilter(
        at com.openexchange.http.grizzly.servletfilter.RequestReportingFilter.doFilter(
        at com.openexchange.http.grizzly.service.http.OSGiServletHandler$FilterChainImpl.doFilter(
        at com.openexchange.http.grizzly.servletfilter.WrappingFilter.doFilter(
        at com.openexchange.http.grizzly.service.http.OSGiServletHandler$FilterChainImpl.doFilter(
        at com.openexchange.http.grizzly.service.http.OSGiAuthFilter.doFilter(
        at com.openexchange.http.grizzly.service.http.OSGiServletHandler$FilterChainImpl.doFilter(
        at com.openexchange.http.grizzly.service.http.OSGiServletHandler$FilterChainImpl.invokeFilterChain(
        at org.glassfish.grizzly.servlet.ServletHandler.doServletService(
        at org.glassfish.grizzly.servlet.ServletHandler.service(
        at com.openexchange.http.grizzly.service.http.OSGiMainHandler.service(
        at org.glassfish.grizzly.http.server.HttpHandler.doHandle(
        at org.glassfish.grizzly.http.server.HttpHandlerChain.service(
        at org.glassfish.grizzly.http.server.HttpHandler.doHandle(
        at org.glassfish.grizzly.http.server.OXHttpServerFilter.handleRead(
        at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(
        at org.glassfish.grizzly.ProcessorExecutor.execute(
        at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(
        at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$
        at com.openexchange.threadpool.internal.CustomThreadPoolExecutor$
        at com.openexchange.threadpool.internal.CustomThreadPoolExecutor$Worker.runTask(
        at com.openexchange.threadpool.internal.CustomThreadPoolExecutor$
2017-05-19T14:35:12,203+0200 INFO  [OXTimer-0000098]

Still get no Previews in this Machine

Edit: this is the same Error as before, just a little bit later in the log.
The Service is still not running and listening on Port 8008

The Fix for the main Problem is in Post #5
but i did something really stupid.Before the patch was released i wanted to manually start on my Production Machine the commandline of the java-process which was listening on Port 8008 see if there is some Output which leads to any Solution.
Starting this commandlline which i figured out with ps -fp as root broke my installation.
I guess starting this as root changes some access rights. Could someone please tell me what to fix to get out of this situation.

After the update I had to manually restart the service:
systemctl status open-xchange-documentconverter-server.service
Then it worked.

I’m attaching the permissions I have in /opt/open-xchange.
ox_perms.txt (1.4 MB)

You can create the same listing with getfacl -R /opt/open-xchange > ox_perms_mine.txt and then use diff ox_perms.txt ox_perms_mine.txt to find differences.
(My favorite diff-viewer is meld.)

Thank you very much for you help!
I restarted already the complete server which did not help
There are that many differences in our Folders which makes it impossible to compare.
Even my working Testmachine differs so much (especially the order of the entries)
Maybe the logentry leads also to a solution?:

java.lang.RuntimeException: Error initializing storage.
<------>at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(
<------>at org.eclipse.osgi.launch.Equinox.<init>(
<------>at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(
<------>at org.eclipse.core.runtime.adaptor.EclipseStarter.main(
Caused by: Keine Berechtigung
<------>at Method)
<------>at org.eclipse.osgi.storagemanager.StorageManager.initializeInstanceFile(
<------>at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(
<------>... 4 more

The logfiles in /var/log/open-xchange/documentconverter/osgi.log lead me to permission-problems in
i could not find any differences to my working installation so i decided to move the complete Content of this folder away and restarted the document-converter-server.
After this the files and Folders in this Folder got recreated and the Document Preview in OX is working again.


Btw.: I found that using
find /opt/open-xchange -exec ls -ld {} + | awk {'printf "%s %s %s %s\n", $1,$3,$4,$9 '}
would make a nicely sorted listing, well suited for comparison, without clutter from file sizes and such.