Displaying 20 results from an estimated 31 matches for "scgi_rails".
2005 Nov 15
11
Collecting thread: Too many open files (Rails+SCGI crash)
I have a problem with running Rails 0.13.1 with scgi_rails 0.4.3 and
Apache. After running for some time (more than a day), the SCGI
process stops with the following error (from scgi.log):
--
[ERR][24189] Collecting thread: Too many open files
[ERR][24189] /usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:188:in
`accept''
/usr/local/l...
2006 Mar 07
0
production.log says status 200, browser says 500?
...lib/action_controller/cgi_process.rb:161:in
`flush''
d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/cgi_process.rb:161:in
`out''
d:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/dispatcher.rb:38:in
`dispatch''
d:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_service:23:in
`process_request''
d:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_service:21:in
`synchronize''
d:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_service:21:in
`process_request''
d:/ruby/lib/ruby/gems/1.8/gems/scgi_rai...
2007 Jan 09
0
Production Mode with SCGI
...in
`process_without_session_management_support''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in
`process''
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in
`dispatch''
c:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_service:23:in
`process_request''
c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize''
c:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_service:21:in
`process_request''
c:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:291:in
`read_he...
2006 Apr 03
12
scgi?? do i need it for ruby?
This might be obvious to everyone but it is something that i haven''t
been able to find an answer to. Do I need to have either
scgi/fastcgi/cgi running on either lighttpd/apache for ruby scripts to
work? If yes, why? I have installed the scgi server and i can get the
service to run, i have also installed the following mod_fastcgi/2.4.2
mod_ruby/1.2.4 Ruby/1.8.2(2004-12-25) mod_scgi,
2006 Aug 02
0
Errno::ENXIO (Device not configured) when using net/https from rails
...without_session_management_support''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/session_management.rb:117:in
`process''
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in
`dispatch''
/usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_service:23:in
`process_request''
/usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize''
/usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_service:21:in
`process_request''
/usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:291:in...
2006 Feb 28
6
scgi+lighttpd+windows - why wont it work?
...t work to fix this!
I''m having trouble getting scgi and lighttpd running on windows - here''s
what I did:
On Win XP, I installed ruby, rubygems, and setup my rails app. All works
fine with webrick.
I then did: gem install cmdparse and gem install highline (as required
for the scgi_rails gem according to
http://www.zedshaw.com/projects/scgi_rails/)
Then I downloaded scgi_rails-0.4.3.gem and installed it.
I then ran scgi_ctrl config -S and entered a password (is this pwd
supposed to map to the db or something??).
When I cmd to my rails app and type scgi_service, i get the followi...
2006 May 26
0
SCGI + Lighttpd + SSL crashes - fine without SSL
...lems
occurred when we tried to rebuild Lighty with SSL
capabilities. With this build, even with SSL off in
the config file the application fails on the first
request. We are using Lighttpd 1.4.11, scgi 0.4.3.
The error we get is the following, any ideas:
[ERR][17968]
/usr/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:244:in
`<<''
/usr/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:244:in
`handle_client''
/usr/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:234:in
`handle_client''
/usr/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:188:in
`listen'...
2005 Sep 29
2
[BUG] Quick Fix for SCGI leaked DB connections
...different place. Normally it stores them in
Thread.current[''active_connections''] which means that, in single threaded
operation you don''t really get threaded_connections, and in multi-threaded
operation you get a heinous number of connections.
=== Implications ===
Since scgi_rails runs Rails inside a Synchronize block, you are *sort of*
getting sequential operation. The way AR uses Thread.current though means
that if you want multiple threads to do your work, then AR is actually
going to cause this exact leak problem. So, the only way around it is to:
1) Manage the conne...
2005 Sep 29
0
RE: Re: scgi_rails opens new a database connection for everyrequest?
It seems to me, by looking at the ActiveRecord code
(abstract_adapter.rb) that connections are opened and maintained by
default on a per Thread basis. This is because Rails is designed to
function either with single thread processes (fcgi) or with a pool of
Thread which are being reused. The connections are opened once for each
thread. If threads are created on each request, connections will be
2006 Feb 23
5
Help with SCGI please :(
...n help me :)
I installed Ruby 1.8.4 on Fedora Core 4, then Rails, then lighty, and
then SCGI.
I used yum to install lighty... and it already comes with mod_scgi.
I created my first application in /home/tango/ and I configured lighty
using the instructions here:
http://www.zedshaw.com/projects/scgi_rails/lighttpd.html
However, when I try to start lighty, I get the following error:
(mod_scgi.c.1050) missing key (short): scgi.server dispatch.scgi 0 port
2006-02-22 17:06:50: (server.c.834) Configuration of plugins failed.
Going down.
On lighttpd.conf I have the following relevant lines:
server.do...
2006 Jan 27
5
Multiple Apps running under Lighttpd with scgi on a Windows Box ... possible?
....rb:745:in `open_server''
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1286:in `initialize''
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1549:in `new''
from c:/ruby/lib/ruby/1.8/drb/drb.rb:1549:in `start_service''
from
c:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:402:in
`run''
from
c:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_service:61
from c:/ruby/bin/scgi_service:18:in `load''
from c:/ruby/bin/scgi_service:18
Thanks.
Eric
--
Eric Goodwin
http://www.ericgoodwin.com
2005 Oct 17
12
SCGI Rails Runner 0.4.1 (getting closer)
...lete except
the docs on my site aren''t written yet. There is however a full README
with RDoc documentation and several packages including a gem release.
Please check out the latest release at:
* Announcement:
http://www.zedshaw.com/
* README and RDoc:
http://www.zedshaw.com/projects/scgi_rails/rdoc/index.html
* gem, tar.bz2, tar.gz, zip:
http://www.zedshaw.com/downloads/scgi_rails/
* apache1-mod_scgi-1.7a-win32.zip
http://www.zedshaw.com/downloads/scgi_rails/apache1-mod_scgi-1.7a-win32.zip
* apache2-mod_scgi-1.7a-win32.zip
http://www.zedshaw.com/downloads/scgi_rails/apache2-mod_scg...
2006 May 22
1
configuring apache with scgi
i had been trying for weeks to get fcgi to play right with apache. i
finally got it working, but it''s far from stable. it was recommended to
me that i should try using SCGI and that it is much easier to set up.
being new to this stuff though, i''m not sure if there''s a lack of
documentation or if there are some things that are just assumed and not
known by a noob
2006 Feb 01
1
Bus error when running Hieraki
I have been trying to set up Hieraki 2.0.1 and I cannot seem to
get it running. I am running on FreeBSD 5.4, Ruby 1.8.4,
Apache 2.0.55, Mysql 4.1.16, ruby-mysql 2.7, mod_scgi 1.9,
scgi_rails 4.3 and Rails 1.0. I can start up the wiki, get
it to display the home page, and when I click on the signup link
the signup form displays. When I fill in the signup form and
click the signup button, the hieraki app crashes with a bus error.
When I look in the log, it appears that it has inserted...
2006 Feb 24
2
Help with the configuration of apache and fcgi
...ommended way to do it so far no luck.
I also tried the steps recomended on these websites for different things
(lighttpd, fcgi, etc.. etc..)
http://scottstuff.net/blog/articles/2005/07/20/apache-tuning-for-rails-and-fastcgi
http://www.kevinworthington.com:8181/?p=102
http://www.zedshaw.com/projects/scgi_rails/lighttpd.html
http://wiki.rubyonrails.org/rails/pages/HowToDeployWithLighttpdOnWindows
and bunch of other places. I am utterly confused and do not know what I am
doing.
Basically what I am asking is first and foremost
On a given windows xp (later to be moved to windows 2003 server), how do i
config...
2005 Nov 06
11
Ideal Rails / Apache config?
Hi All,
Just about to set up RoR on our server and was wondering what the
ideal setup for RoR is these days? Apache 1? Apache 2? fCgi?
Any guidance would be helpful!
Thanks,
-Adam
2005 Dec 16
25
I Would Really Like to Try RoR but...
it''s been a nightmare trying to set it up. I keep getting a an
Application Error message when I try to navigate to a url which should
be taken care of by my newly created controllers. For instance, I
wanted to test RoR out so I created a MyTest controller which should
allow me to navigate something like:
http://localhost/rubytest/MyTest
but it does not. I have no problem getting
2005 Nov 21
10
Anybody using SCGI in production?
Or does anybody prefer fastcgi/fcgi? I''m using webrick for development, but plan on using scgi
when I switch to production (because it appears to be an update to fastcgi, and I couldn''t get
fastcgi working anyhow).
thanks
csn
__________________________________
Yahoo! Mail - PC Magazine Editors'' Choice 2005
http://mail.yahoo.com
2005 Oct 12
7
www.mycookbook.com not working - just shows apache page
Curt,
This is really, really cool....
On hiccup for me though. All was well until I went to manage the cookbook
application. The Start SCGI command gave the following output:
D:\INSTAN~1\rails_apps\cookbook>..\..\ruby\bin\ruby.exe script\scgi_rails
start -p 9999 -e production -D
ERROR: Could not setup a SIGHUP handler. You won''t be able to get status.
Listening for connections on 127.0.0.1:9999 <http://127.0.0.1:9999>
Surfing to www.mycookbook.com <http://www.mycookbook.com> in my browser
yielded an Apache Test page indi...
2006 Apr 08
0
Typo and Instant Rails 1.2
...for
vendor/rails (frozen rails).
I like to see in the SCGI console which app is running, so I added the
following change which is just cosmetic.
To display the environment and the port in the SCGI console window, I
made the following changes:
C:\InstantRails-1.2\ruby\lib\ruby\gems\1.8\gems\scgi_rails-0.4.3\bin\scgi_service
<typo:code lang="ruby">
# Added Port for display -- Ed Gard
def configure_rails(environment, port)
ENV["RAILS_ENV"] = environment
# Added to display environment and port -- Ed Gard
STDERR.puts("Environment: #{environment}; Port: #{port...