Page 1 of 1

Permission denied error on AWS

Posted: 2019-04-02T01:16:03-07:00
by ramki
Hi, we are getting below error on aws windows machines but not on dev boxes or our non aws testing env or non aws prod.

Can someone please help? And these errors are random and no pattern.

We are using this for a webservice, and using same IIS settings everywhere but fails with below error only in AWS windows machines.

Get: Error for image magick:PDFDelegateFailed `[ghostscript library 9.04] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 ""-sDEVICE=pamcmyk32"" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 ""-r300x300"" -dUseCIEColor -dFirstPage=1 -dLastPage=1 ""-sOutputFile=C:/Temp/magick-2796RXhArdbZEPpO%d"" ""-fC:/Temp/magick-2796ttewTj1GHQEw"" ""-fC:/Temp/magick-2796DTzOGXVHrOoE""': Error: /ioerror in --showpage--
Operand stack:
1 true
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1926 1 3 %oparray_pop 1925 1 3 %oparray_pop 1909 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- 1809 0 9 %oparray_pop --nostringval-- --nostringval--
Dictionary stack:
--dict:1172/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:82/200(L)-- --dict:108/127(ro)(G)-- --dict:291/300(ro)(G)-- --dict:23/30(L)-- --dict:6/8(L)-- --dict:21/40(L)--
Current allocation mode is local
Last OS error: Permission denied
GPL Ghostscript 9.04: Unrecoverable error, exit code 1
@ error/pdf.c/InvokePDFDelegate/276 InnerError = "

Re: Permission denied error on AWS

Posted: 2019-04-02T21:58:32-07:00
by dlemstra
You might be using a newer version of Ghostscript in yourbother environments? 9.04 is ancient

Re: Permission denied error on AWS

Posted: 2019-04-02T22:28:28-07:00
by ramki
Yeah, its ancient version but we are using exact same version in all places.

Re: Permission denied error on AWS

Posted: 2019-04-02T22:42:34-07:00
by ramki
Or is there any other diagnostics tool or sample code, i can run and provide you better logs?

Re: Permission denied error on AWS

Posted: 2019-04-03T09:51:13-07:00
by fmw42
Try running your conversion with simply Ghostscript and see if that works.

Re: Permission denied error on AWS

Posted: 2019-04-03T19:36:42-07:00
by ramki
Thanks for inputs, i will try. One more data point, it fails randomly. i.e. out of 2500 requests, it failed 56 times. And when it failed, it brings down w3wp.exe making server dead for sometime. IIS relaunches\revives w3wp.exe and things starts working again.

Re: Permission denied error on AWS

Posted: 2019-04-03T19:40:01-07:00
by fmw42
Sorry, I know little about IIS or PCs or AWS. My point was just to see if it was a Ghostscript issue or ImageMagick or your OS.