General help

Does Moodle Require Ghostscript?

 
Picture of Natassia Stelmaszek
Does Moodle Require Ghostscript?
 

CentOS 7, Moodle 3.3

Does Moodle require Ghostscript?  The CPU activity on my system has jumped recently even when there are no users.  I found error messages tucked away in the root user's mailbox saying.

Conversion failed with error:errorgenerateimage
Convert 1 submission attempt(s) for assignment 1499
sh: /usr/bin/gs: No such file or directory
sh: /usr/bin/gs: No such file or directory

The messages are almost continuous and call out about 36 different assignment numbers.  The system has been operating without this issue for over a year and it is only within the last week or so that we had this increase in activity.

The system has no GUI, no printer and nothing like LibreOffice installed. 

Do any of you know what sort of activity might be generating these errors?  How to isolate the cause?

Natassia


 
Average of ratings: -
Picture of Ken Task
Re: Does Moodle Require Ghostscript?
Particularly helpful Moodlers

If you have the path to unoconv config Moodle thinks you want to use the new Annotation of assignments.

Ghostscript is used to make the cross, frownie, smilie, and tick icons, etc. the teacher might use in annotating.

It doesn't hurt to install it:

as root user:

yum -y install ghostscript ... your error will go away concerning ghostscript and then you can tinker with using tbe new annotations when grading ... which you don't have to use, if you take out the path to unoconv.

https://yoursite/admin/settings.php?section=fileconverterunoconv

https://yoursite/admin/settings.php?section=assignfeedback_editpdf

'spriit of sharing', Ken


 
Average of ratings: -
Picture of Natassia Stelmaszek
Re: Does Moodle Require Ghostscript?
 

Ken,

Thanks, once again you have given me the solution to my problem. 

Yesterday I tried deleting the contents of the https://yoursite/admin/settings.php?section=assignfeedback_editpdf entry that was pointing to /usr/bin/gs but it didn't seem to make a difference.  This morning I installed Ghostscript and replaced the entry.  For a while I thought that it had made the problem worse, the system activity was holding at over 50% even though I was the only user on the system.  I guess that it was catching-up on tasks that had been delayed by the missing gs issue.

Looking back it appears that this problem originated with my failed update attempt on Monday morning.  On reviewing my records I see that the automated course backups were taking an extra 4 - 5 hours to complete.  I suspect that all of the Moodle cron jobs were impacted.

Natassia

 
Average of ratings: -
Picture of Howard Miller
Re: Does Moodle Require Ghostscript?
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

It's not quite true. The annotation thing is nothing to do with unoconv. Unoconv is used to convert documents to PDF. Then the annotation feature can be applied to them. The annotation still works without unoconv as long as the student uploads PDFs. 

Ghostscript is required for the annotation. 

So, to cut a long story short, if you want to mark in Assignment you need ghostscript.

 
Average of ratings: Useful (1)
Picture of Sergio Renato Aldana Alvarez
Re: Does Moodle Require Ghostscript?
 

Can I have PDF convert to assignments files without annotation activate? 

 
Average of ratings: -