Opened 11 years ago

Closed 11 years ago

#494 closed bug (worksforme)

Preview Not Available. Contact The System Administrator.

Reported by: Mario.Molih Owned by: Dominik Fakner
Priority: minor Milestone:
Component: Generic Version: 7.1.1
Keywords: thumbnail, preview Cc: jewgenij@…

Description

The preview of files seems to work only partially. Most of the time it shows above error message or a red "x" in an empty box. Both, via preview tab and thumbnail. Strangely, it does work with some files. But i don't see a pattern which files (or file-types) work and which don't.

Change History (11)

comment:1 by car031, 11 years ago

Milestone: 7.1.2

comment:2 by car031, 11 years ago

Thi may depend if you have an updated OpenOffice installed in your server, we suggest you to use the latest OpenOffice 4.1. Basically LogicalDOC uses OO to preview your files you could check if OO is able to open those files.

comment:3 by jewgenij.tarschis, 11 years ago

I have the similar looking problem, too. Creating of thumbnails is working, even if there are errors in log file like:
07.12.2014 21:08:38,852 WARN (com.logicaldoc.core.document.thumbnail.ThumbnailManager: 93) -- Error creating thumbnail for document: 3964929 Rechnung Anwalt
java.io.IOException: Thumbnail building Error in IMG to JPEG conversion
...
...
Caused by: java.io.IOException: Error in IMG to JPEG conversion

at com.logicaldoc.core.document.thumbnail.ImageThumbnailBuilder.buildThumbnail(ImageThumbnailBuilder.java:63)
at com.logicaldoc.core.document.thumbnail.PdfThumbnailBuilder.buildThumbnail(PdfThumbnailBuilder.java:33)
... 38 more

Caused by: java.lang.Exception: Empty thumbnail image

at com.logicaldoc.core.document.thumbnail.ImageThumbnailBuilder.buildThumbnail(ImageThumbnailBuilder.java:61)
... 39 more

But the PDF-preview does only work vor ?.0 versions. In the log file for the preview creation LD is looking at the wrong path:

07.12.2014 21:08:38,860 ERROR (com.logicaldoc.core.store.FSStorer: 176) -- /usr/local/logicaldoc/docs/396/492/9/doc/1.1 (No such file or directory)
07.12.2014 21:08:38,860 ERROR (com.logicaldoc.core.store.FSStorer: 294) --
07.12.2014 21:08:38,870 ERROR (com.logicaldoc.core.store.FSStorer: 176) -- /usr/local/logicaldoc/docs/396/492/9/doc/1.1-preview.swf (No such file or directory)

Is there probably a confusion between "version" (like 1.0, 1.1, 1.2, ...) and "file version" (like 1.0, 2.0, 3.0, ...). Because there is no need to create a preview of a version 1.1, because the difference between 1.0 and 1.1 is only meta information. The same file is stored, so of course the path .../doc/1.1 does not exist.

comment:4 by jewgenij.tarschis, 11 years ago

Cc: jewgenij@… added
Milestone: 7.1.3
Priority: MinorMajor

comment:5 by car031, 11 years ago

Milestone: 7.1.3
Priority: MajorMinor

Please upgrade your system to version 7.1.2. Locate a document for which you don't see the previer and upload it here, so we can perform deeper investigation.

We cannot confirm the problem reported by jewgenij.tarschis since there is no confusion between document version and file version and the preview is only generated if the file version changes.

comment:6 by jewgenij.tarschis, 11 years ago

Yes, you're absolutely right, that the preview is only generated if the file version changes. But there is no change in the file version, because only some meta data changed (e.g. date or other attribute). If I want to view the preview, LD looks for the latest document version (e.g. 1.3). Since the latest file version is still 1.0 I can see some exceptions like I posted above.

I would like to try 7.1.2 but how to upgrade without losing database and documents? Nothing found in wiki or other documentation.

comment:7 by car031, 11 years ago

The upgrades packages are only available for the commercial editions.

comment:8 by jewgenij.tarschis, 11 years ago

I don't need an upgrade package, but a kind of tutorial or how-to would be helpful (which files has to be replaced?).
Maybe it would be possible for community edition, too.

comment:9 by car031, 11 years ago

Sorry this is not possible, the Community is not directly supported so all kind of services require a commercial edition.

comment:10 by Mario.Molih, 11 years ago

I've upgraded the system to version 7.1.2 now and after a change in the path configuration to Open Office the preview now works with almost every file type.

I still have problems with .tif files (neither preview nor thumbnail works) and .html files (only thumbnail works).

comment:11 by car031, 11 years ago

Resolution: worksforme
Status: newclosed

The tifs are previewed in general, please try the attached document for a working file. Unfortunately the tiff format supports a huge set of compression algorythms, maybe SWFTools was not able to convert that specific type of tiff you are using.
In any case we close this issue because of the preview works, then if you will have issues with tiffs, you will create a new bug dedicated to this.

Note: See TracTickets for help on using tickets.