Search results

  1. D

    Trouble shooting LSAPI, limiting children

    Hi and thanks for the reply, I found the code, and it is the rails builtin function that writes to its logs. I think it is some lower level library that crashes and breaks the open pipe to development.log which in turn breaks LSAPI protocol when the web server tries to write to the log the next...
  2. D

    Trouble shooting LSAPI, limiting children

    Looks like I spoke to soon. My application crashes with LSWS even if I replaced the require_dependency statements. Here is a snippet from a strace on a RailsRunners that bailes. I have no clue what it can be. Have never had this problem before and works in webrick. UPDATED: Added complete...
  3. D

    Trouble shooting LSAPI, limiting children

    Hi again, I did a new strace with the method you suggesten and got more data. Before sending it in I decided to make a fresh rails app to limit the amount of code. I then noticed that my app worked as expected. After looking at what I made different I noticed that I could solve the problem by...
  4. D

    Trouble shooting LSAPI, limiting children

    Hmm interesting with the STDOUT problem. I do have some backend scripts that issue a IO.popen but that haven't messed up anything before. Btw here is the strace. henke@cubiq-test:/application# ps ax | grep Rails 8888 ? SNs 0:03 ruby /usr/local/lsws/fcgi-bin/RailsRunner.rb 8895 ...
  5. D

    Trouble shooting LSAPI, limiting children

    OK, I think I managed to limit the number of railsrunners by also setting max connection = 1 under the VirtualTemplates -> Context -> Rails tab. But the railsrunner still dies and complains about Broken PIPE. I also see this error. 2008-09-26 15:51:36.958 [WARN] [10.168.1.130:56850-0#safecube]...
  6. D

    Trouble shooting LSAPI, limiting children

    Hello, I'm having problem with a rails application with LSWS. The applications runs fine with webrick but running with lsws I get a bunch of 503 and 500 errors and I can see that raisrunner childer dies. To be able to debug I try to limit the number of railsrunners but even after setting...
  7. D

    Serving large files through X-LiteSpeed-Location

    Hi, I'm using Litespped with rails and serving downloads through X-Litespeed-Location header. It works flawlessly with small files but not with larges files. I have not yet tested where the limit is but 10GB files does not work :). I get that the resource cannot be found on this server...
  8. D

    File download with send_file

    Thanks for the quick response! I now use internal redirect but instead of static context I set upp an symlink within the public root which points to a download area. This works perfectly but maybe not as security safe as the static context you mentioned. I will check that out also. Thanks!
  9. D

    File download with send_file

    Hello, I'm using rails send_file function to download files but it doesn't work with big files because of the max response body limit. Is there anyway around that? I need to be able to download files from arbitrary locations because my docroot folder is on a read only file system. BTW the files...
  10. D

    Railsrunner eating CPU on custom kernel

    It was a long shot I know. I'll look into the ruby performance of the kernel more thoroughly. Thank you for your quick response!
  11. D

    Railsrunner eating CPU on custom kernel

    Hi list, I'm having problems with Litespeed after recompiling my linux kernel 2.6.18. I can understand if you think that I should ask this in a kernel hacking forum but everything else works perfectly except the Litespeed /Railsrunner process. Usually the railsrunner eats between...
  12. D

    Permissions in /opt/lsws

    Hello list, This is maybe an odd question but I want to know exactly what files need to be writeable in the lsws directory. I need to do know this because I'm testing loading a webserver to a ram disk and some parts of the ram disk is read only for security reasons. I've already...
  13. D

    Force run as root

    Ahh OK so this warning message is just a warning. The commands will still be executed by the user owning the /application/public correct? [config:vhost:testserver] Uid of /application/public/ is smaller than minimum requirement 11, use server uid!
  14. D

    Force run as root

    Thanks for the quick reply! OK, but as I understand it you can only use UIDs above 10, correct? Cheers
  15. D

    Force run as root

    Hello, Is it possible to force run as root? I'm testing Litespeed in a very special custom OS simulating an embedded environment and I need to be able to run it as root as the webserver need to execute commands as root in the OS. Cheers, henke
  16. D

    rails lsapi wiki clarification

    Hello, I just wonder if I need the dispatcher.lsapi if I use the Easy Configuration Wiki vhost setup with EasyRailsWithSuEXEC template? The guide doesn't mention if I need to copy dispatcher.lsapi to my directory or not? That setp is only mentioned in the Step by Step configuration guide...
Top