LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Ruby On Rails 503 Service Unavailable Bug

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2007, 02:36 PM
mroberto mroberto is offline
New Member
 
Join Date: Mar 2007
Posts: 4
Exclamation 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 .
Reply With Quote
  #2  
Old 03-23-2007, 09:25 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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?
Reply With Quote
  #3  
Old 03-23-2007, 11:57 PM
mroberto mroberto is offline
New Member
 
Join Date: Mar 2007
Posts: 4
The file does get uploaded to the directory just gives the error if i update the form without the picture it works fine.

Roberto
Reply With Quote
  #4  
Old 03-24-2007, 07:32 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
I think it is the memory limit for ruby process.
You need to increase the Memory soft/hard limit under "Ruby" tab.
Reply With Quote
  #5  
Old 03-24-2007, 05:42 PM
mroberto mroberto is offline
New Member
 
Join Date: Mar 2007
Posts: 4
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
Reply With Quote
  #6  
Old 03-24-2007, 05:42 PM
mroberto mroberto is offline
New Member
 
Join Date: Mar 2007
Posts: 4
Yes there is Rmagick process i believe
Reply With Quote
  #7  
Old 03-24-2007, 07:06 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You can try increasing the global memory limit under "server"->"security" as well.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:18 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.