ImagickException: FailedToExecuteCommand

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version: 14.0.4.2
Operating system and version: Debian 9.5
Apache or nginx version: nginx 1.15.7
PHP version: v7.2.13

The issue you are facing:

Multiple ImagickExceptions.
I’m not sure if it is caused by a “to old” GS oder a mistakt in the setup

ghostview ist installed (v9.26), as mentioned here
https://www.c-rieger.de/solution-for-imagickexception-in-nextcloud-log/

Is this the first time you’ve seen this error? (Y/N):Y

The output of your Nextcloud log in Admin > Logging:

ImagickException: FailedToExecuteCommand `'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -dFirstPage=1 -dLastPage=1 '-sOutputFile=/tmp/magick-2705pypdedEP2iHV%d' '-f/tmp/magick-2705Io1i09TEgxVV' '-f/tmp/magick-2705Y_xdkI6pCM9V'' (-1) @ error/delegate.c/ExternalDelegateCommand/462

Hi,

Have you managed with this error ? I faced with the same issue. But can’t find solution.

Ok, I found solution.

In my case apache couldn’t access the ghostscript path. It’s located in /usr/local/bin/gs and it should be symlinked to /usr/bin/gs by running this command:

ln -s /usr/local/bin/gs /usr/bin/gs.

1 Like