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 »

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: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Permission denied error on AWS

Post by dlemstra »

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 »

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 »

Or is there any other diagnostics tool or sample code, i can run and provide you better logs?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Permission denied error on AWS

Post by fmw42 »

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 »

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: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Permission denied error on AWS

Post 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.
Post Reply