![]() |
Ruby On Rails 503 Service Unavailable Bug
Hello I have a ruby on rail application and it upload thumbnails(pictures) but when i upload the picture the picture gets uploaded to the directory but then give me the error
503 Service Unavailable in the sterrros.log it tell me the following. /pathtorails/name_controller.rb:35: [BUG] Segmentation fault ruby 1.8.5 (2006-12-04) [x86_64-linux] So i look at the source and this is what its doing not sure what it causing the problem running fine with webbrick and mongrel pic = Magick::Image.read(tmpfile).first^M Is it Rmagick causing the problem or what Also the distrubution is Fedora 6 rmagick was compiles manually as the gem dosent work . |
Since Ruby LSAPI fork children process off a parent process, so the child process might hold something invalid that inherits from the parent process.
Is there any Rmagick opteration during Rails framework initialization? Does it leave a core file somewhere? have you check the core file with GDB? |
The file does get uploaded to the directory just gives the error if i update the form without the picture it works fine.
Roberto |
I think it is the memory limit for ruby process.
You need to increase the Memory soft/hard limit under "Ruby" tab. |
Umm I have it setup for
Memory Soft Limit (bytes) 250M Memory Hard Limit (bytes) 300M Shoulden't that be plenty. Anything else i should look into? Thanks |
Yes there is Rmagick process i believe
|
You can try increasing the global memory limit under "server"->"security" as well.
|
| All times are GMT -7. The time now is 03:42 PM. |