Using ImageMagick with AEM6.3 using commandline gives error 137
Posted: 2018-04-17T02:15:43-07:00
Hi,
There is an integration done with AEM 6.3 with ImageMagick as recommended in the below link.
https://helpx.adobe.com/experience-mana ... agick.html
This actually executes the below command.
convert, -define, jpeg:size=419x419, {fileName}, -thumbnail, 419x419, cq5dam.thumbnail.419.419.png
Some times this gives an error as below. Please note this is not consistent. The size of the image is around 1 GB.
17.04.2018 03:16:53.727 *ERROR* [JobHandler: /etc/workflow/instances/server0/2018-04-11/XXX_896:/content/dam/XXX/XXX/XXX/XXX/XXX/XXX/1234.tif] com.day.cq.dam.core.process.CommandLineProcess execute: failed to execute command [[convert, -define, jpeg:size=419x419, 35827483.tif, -thumbnail, 419x419, cq5dam.thumbnail.419.419.png]] for asset [/content/dam/XXX/XXX/XXX/XXX/XXX/XXX/1234.tif]:
org.apache.commons.exec.ExecuteException: Process exited with an error: 137 (Exit value: 137)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:153)
at com.day.cq.dam.core.process.CommandLineProcess$2.run(CommandLineProcess.java:276)
at com.day.cq.dam.core.impl.jmx.AssetUpdateMonitorImpl$UpdateStep.checkAndRun(AssetUpdateMonitorImpl.java:978)
at com.day.cq.dam.core.process.CommandLineProcess.execute(CommandLineProcess.java:194)
at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:189)
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:258)
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:500)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:291)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:58)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:227)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Since there was no details of the error 137, i am posting this message to get further details.
There is an integration done with AEM 6.3 with ImageMagick as recommended in the below link.
https://helpx.adobe.com/experience-mana ... agick.html
This actually executes the below command.
convert, -define, jpeg:size=419x419, {fileName}, -thumbnail, 419x419, cq5dam.thumbnail.419.419.png
Some times this gives an error as below. Please note this is not consistent. The size of the image is around 1 GB.
17.04.2018 03:16:53.727 *ERROR* [JobHandler: /etc/workflow/instances/server0/2018-04-11/XXX_896:/content/dam/XXX/XXX/XXX/XXX/XXX/XXX/1234.tif] com.day.cq.dam.core.process.CommandLineProcess execute: failed to execute command [[convert, -define, jpeg:size=419x419, 35827483.tif, -thumbnail, 419x419, cq5dam.thumbnail.419.419.png]] for asset [/content/dam/XXX/XXX/XXX/XXX/XXX/XXX/1234.tif]:
org.apache.commons.exec.ExecuteException: Process exited with an error: 137 (Exit value: 137)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:153)
at com.day.cq.dam.core.process.CommandLineProcess$2.run(CommandLineProcess.java:276)
at com.day.cq.dam.core.impl.jmx.AssetUpdateMonitorImpl$UpdateStep.checkAndRun(AssetUpdateMonitorImpl.java:978)
at com.day.cq.dam.core.process.CommandLineProcess.execute(CommandLineProcess.java:194)
at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:189)
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:258)
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:500)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:291)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:58)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:227)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Since there was no details of the error 137, i am posting this message to get further details.