Permission denied error on AWS

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
ramki
Posts: 4
Joined: 2019-04-02T01:12:31-07:00
Authentication code: 1152

Permission denied error on AWS

Post by ramki » 2019-04-02T01:16:03-07:00

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 = "

User avatar
dlemstra
Posts: 1585
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Permission denied error on AWS

Post by dlemstra » 2019-04-02T21:58:32-07:00

You might be using a newer version of Ghostscript in yourbother environments? 9.04 is ancient
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

ramki
Posts: 4
Joined: 2019-04-02T01:12:31-07:00
Authentication code: 1152

Re: Permission denied error on AWS

Post by ramki » 2019-04-02T22:28:28-07:00

Yeah, its ancient version but we are using exact same version in all places.

ramki
Posts: 4
Joined: 2019-04-02T01:12:31-07:00
Authentication code: 1152

Re: Permission denied error on AWS

Post by ramki » 2019-04-02T22:42:34-07:00

Or is there any other diagnostics tool or sample code, i can run and provide you better logs?

User avatar
fmw42
Posts: 25751
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Permission denied error on AWS

Post by fmw42 » 2019-04-03T09:51:13-07:00

Try running your conversion with simply Ghostscript and see if that works.

ramki
Posts: 4
Joined: 2019-04-02T01:12:31-07:00
Authentication code: 1152

Re: Permission denied error on AWS

Post by ramki » 2019-04-03T19:36:42-07:00

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.

User avatar
fmw42
Posts: 25751
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Permission denied error on AWS

Post by fmw42 » 2019-04-03T19:40:01-07:00

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.

Post Reply