02-04-2021 07:32 AM
I'm using nuxeo with docker, when I create a document with pdf, nuxeo fails to create a thumbnail, the following error occurs:
2021-02-04T09:20:07,314 WARN [ThumbnailDocumentFactory] Cannot compute document thumbnail
org.nuxeo.ecm.core.convert.api.ConversionException: Thumbnail conversion failed
at org.nuxeo.ecm.platform.thumbnail.converter.ThumbnailDocumentConverter.convert(ThumbnailDocumentConverter.java:88) ~[nuxeo-thumbnail-10.10.jar:?]
at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10.jar:?]
at org.nuxeo.ecm.platform.thumbnail.converter.AnyToThumbnailConverter.convert(AnyToThumbnailConverter.java:77) ~[nuxeo-thumbnail-10.10.jar:?]
at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10.jar:?]
at org.nuxeo.ecm.platform.thumbnail.factories.ThumbnailDocumentFactory.computeThumbnail(ThumbnailDocumentFactory.java:92) [nuxeo-thumbnail-10.10.jar:?]
at org.nuxeo.ecm.core.api.thumbnail.ThumbnailServiceImpl.computeThumbnail(ThumbnailServiceImpl.java:99) [nuxeo-core-api-10.10.jar:?]
at org.nuxeo.ecm.core.api.thumbnail.ThumbnailAdapter.computeThumbnail(ThumbnailAdapter.java:58) [nuxeo-core-api-10.10.jar:?]
at org.nuxeo.ecm.platform.thumbnail.listener.UpdateThumbnailListener.processDoc(UpdateThumbnailListener.java:67) [nuxeo-thumbnail-10.10.jar:?]
at org.nuxeo.ecm.platform.thumbnail.listener.UpdateThumbnailListener.handleEvent(UpdateThumbnailListener.java:137) [nuxeo-thumbnail-10.10.jar:?]
at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork.work(AsyncEventExecutor.java:221) [nuxeo-core-event-10.10.jar:?]
at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:437) [nuxeo-core-event-10.10.jar:?]
at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:357) [nuxeo-core-event-10.10.jar:?]
at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-10.10.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
Caused by: org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: convert -define registry:temporary-path=#{nuxeo.tmp.dir} -quiet -strip -thumbnail #{size} -background transparent -gravity center -format png -quality 75 #{inputFilePath}[0] #{outputFilePath}
convert-im6.q16: unable to read image data `/opt/nuxeo/server/tmp/magick-409oY_FD4xC3xp91' @ error/pnm.c/ReadPNMImage/1346.
convert-im6.q16: no images defined `/opt/nuxeo/server/tmp/nxblob-7663601739992468709.png' @ error/convert.c/ConvertImageCommand/3258.
at org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.<init>(ExecResult.java:62) ~[nuxeo-platform-commandline-executor-10.10.jar:?]
at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor.exec(ShellExecutor.java:82) ~[nuxeo-platform-commandline-executor-10.10.jar:?]
at org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:173) ~[nuxeo-platform-commandline-executor-10.10.jar:?]
at org.nuxeo.ecm.platform.thumbnail.converter.ThumbnailDocumentConverter.convert(ThumbnailDocumentConverter.java:81) ~[nuxeo-thumbnail-10.10.jar:?]
... 15 more
Here is my docker compose:
version: '3.1'
services:
nuxeo:
container_name: local-nuxeo
image: nuxeo:10.10
restart: unless-stopped
volumes:
- /etc/hosts:/etc/hosts:ro
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./data:/var/lib/nuxeo/data
ports:
- 8500:8080
environment:
- NUXEO_DB_TYPE=postgresql
- NUXEO_DB_HOST=[db-url]
- NUXEO_DB_NAME=[db-name]
- NUXEO_DB_USER=[db-user]
- NUXEO_DB_PASSWORD=[db-pass]
- NUXEO_PACKAGES=nuxeo-dam nuxeo-web-ui nuxeo-jsf-ui
How to solve this?
02-11-2021 03:38 AM
Hello,
I guess you should apply all hotfixes, this error rings me a bell.
Regards
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.