imagemagick stopped generating PDFs, broken connection to ghostscript

Asked by Jeremy O'Leary

We have an Ubuntu 14.04, Puppet managed environment where two of our servers (Drupal + Nginx/php-fpm) suddenly and quietly stopped being able to generate PDFs via the webapp. On either April 6th or 7th, the developers didn't mention anything because they didn't need the feature until now.

Here is the error message we are getting, and in general it appears that via PHP, imagemagick has lost it's connection to ghostscript. Any suggestions would be welcomed.

pdf_to_image_shell_exec did not create image
/var/www/sites/example.com/files/document_cover_image/3756-0.jpg as expected. convert: Postscript delegate failed
`/var/www/sites/example.com/files/document/
Metadataguidelines.pdf': No such file or directory @
error/pdf.c/ReadPDFImage/677. convert: no images defined
`/var/www/sites/example.com/files/document_cover_image/
3756-0.jpg' @ error/convert.c/ConvertImageCommand/3044.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu imagemagick Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; df -h

Thanks

Revision history for this message
Jeremy O'Leary (jeremy-oleary) said :
#2

lsb_release -a; uname -a; df -h
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
Linux gallery 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 148G 13G 129G 10% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 1.9G 12K 1.9G 1% /dev
tmpfs 377M 392K 377M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 0 1.9G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/xvdb 3.9G 8.1M 3.7G 1% /mnt

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

try:

convert /var/www/sites/example.com/files/document_cover_image/3756-0.jpg ~/test.pdf

Does it work OK?

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.