Ruby on Rails upload problem

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
shaan

Ruby on Rails upload problem

Post by shaan »

Hello,

My application is a rails-postgresql application which uses paperclip ("ImageMagick-6.5.4-10-Q16-windows-dll.exe" installed on WinXP).

The application's image uploading feature works consistently right on my development PC, however it is inconsistent on a different server PC (used for deployment).

There are certain observations below.

a) For the first time the file gets uploaded right.
b) The same file if attempted for again, twice, thrice, gets uploaded right.
c) At the fourth time (may not necessarily be at the fourth time, but often it is), it fails with this error - C:/...../stream.1644.0 is not recognized by the 'identify' command.
d) This happens with any file as such and the file is not at fault.
e) Some time after the occurrence of this error, I attempted again (w/o restarting my web server), it worked! But again in the next attempt - the same error gets shown. Then again, it worked.
f) There is a slightly uncertain behavior with this upload - it works if tried again (may be after some time).
g) However, on my development PC, this is not the case. It works right consistently.

The a few people have been saying that the cause of this error could be that the path to Imagemagick - identify.exe is incorrectly set. But, then the image upload works as well (can work right only if the path is correct) - so I do not suspect it to be a path problem.

Request any possible help with this situation. Thanks in advance.

love-n-peace,
@shaan
'Aal izz well' shaan
Post Reply