Displaying 20 results from an estimated 8000 matches similar to: "fastcgi approach?"
2005 Sep 28
2
fastcgi timeout settings
I have few lengthly processes in my application, and I''m getting fastcgi
timeout after 30 seconds.
From apache log:
FastCGI: comm with (dynamic) server
"D:/projects/MojAlbum/public/dispatch.fcgi" aborted: (first read) idle
timeout (30 sec), referer: http://mojalbum.4dva.hr/albumi/moji
I tried to set timeout in apache conf by:
<IfModule>
FastCgiConfig
2005 Mar 07
2
Threaded logging?
Is the logging system thread-safe? I have a process that takes about 5
hours, and twice, it has stopped, giving me no errors at all... but the
process hasnt been finished... The second time, I loaded the status
page, and it gave me a 500 error, at the same time the process stopped.
I have a sneaking suspicion that the cause is two processes trying to
write to the log-file at the same
2005 Dec 23
1
FastCGI and large file uploads
I use dreamhost for my hosting provider, and I am working on app where
it requires large files (max 10 MB) to be uploaded to the server. As
of right now the fastcgi processes are configured with:
FastCgiConfig -autoUpdate -initial-env RAILS_ENV=production \
-idle-timeout 120 -maxClassProcesses 5 -killInterval 300
My problem is that I try and upload a file via the web that is around
5 MB
2006 Jan 13
4
FastCGI processes sometimes ''hang''
I am running a RoR application on Apache 1.3/RedHat 7.3/MySQL 3.1.23
(Old versions I know, but upgrading to latest versions are not practical
for a number of reasons). There are 5 RoR FastCGI processes configured
using FastCgiServer.
What I am finding is that, after a while, some of the FastCGI processes
seem to ''hang''. They no longer process requests, and the only way to
2006 Jan 14
4
Rails URLs always try to open non-existent files
The lighttpd config file is set up like this...
Rails url: //host/controller/method/id
Lighttpd tries to open the file ''controller/method/id'' from the document root.
Of course this doesn''t work and generates an error 404
This gets caught with: server.error-handler-404 = "/dispatch.fcgi"
Which turns the request into "/dispatch.fcgi"
That gets caught
2005 Mar 10
5
dispatch.fcgi dieing randomly
Recently my application has refused to start on my production
environment. The setup is debian(unstable)/apache2/fastcgi/mysql
Rails 0.10 (upgrading to 0.10.1 as we speak)
When I first start up apache the machine grinds to a crawl starting up
the dispatch.cfi processes. It''s a VPS with 256M of ram, but still
(in addition to user time) it''s spending 30% of time in system
2005 Jun 24
14
apache2 fastcgi (fcgi) internal server errors, still :(
hi all,
I can blab, but here is a sample of my /var/log/apache2/error.log, it
has all the info:
any ideas what I can do prevent 500s from hitting my users? (besides
redirecting them with javascript to the same URL which will be fine on
the next request? :)
thanks,
_alex
[Fri Jun 24 12:30:45 2005] [error] [client 172.20.0.175] FastCGI:
incomplete headers (0 bytes) received from
2006 Jan 06
3
fastcgi on apache
Running on Fedora Core
I have been playing with some of the tutorials and one of them had me
install lighttpd and lighttpd-fastcgi and that was much faster than
apache seems to be.
How do I get fastcgi stuff to work on apache...
I have this setup for my tutorial environment in httpd.conf
<VirtualHost *>
DocumentRoot /home/craig/cookbook/public
ServerName cookbook
<Directory
2007 Feb 18
1
FastCGI without ScriptAlias
Hi,
I made some experiments with the sample blog application, my index.fcgi
file contains the following:
require ''camping/fastcgi''
Camping::Models::Base.establish_connection(
:adapter => ''sqlite3'',
:database => ''database/camping.db''
)
Camping::FastCGI.serve(''blog.rb'')
Without ScriptAlias the application works fine,
2005 Jul 28
1
Rails+Apache 2+FastCGI on Fedora Core 3 Linux: Has anyone got it working well?
Hi All,
I have a Rails application that needs to be served from a
Fedora Core 3 Linux server. The application runs well as a
"plain" CGI application.
My next step was to speed things up with FastCGI installed
via "gem install fcgi". (version 0.8.6.1).
That approach lead to this error in the fastcgi.crash.log:
Dispatcher failed to catch: undefined method
2005 Dec 20
1
trouble with fastcgi and "undefined method `is_cgi?''"
I''m trying to get started with fastcgi on apache 2.0.54 on Fedora Core 4.
I''ve created a really simple Rails app that doesn''t do any database actions.
It works fine when I call it as CGI, but when I try to switch to fastCGI, I
have problems.
I get the following error in log/fastcgi.crash.log:
[20/Dec/2005:10:16:53 :: 26912] Dispatcher failed to catch: undefined
2006 Jan 13
2
FastCGI problems
I''m having a lot of problems with my Typo install. My fastcgi fails horribly
after a reboot:
[13/Jan/2006:16:55:28 :: 19796] Dispatcher failed to catch: (Interrupt)
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each''
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi''
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in
`process!''
2006 Apr 03
1
Setting up FastCGI for RoR under Apache 1.3.34
All,
I have all of the components that I need to install RoR under FCGI for
Apache 1.3.34. I have:
mod_fcgi 2.4.2
fcgi 2.4.0 (developer''s kit)
ruby-fcgi-0.8.6
I am comfortable up to the point of installing mod_fcgi, however, I
don''t understand how fcgi and ruby-fcgi will be used by mod_fcgi.
How does mod_fcgi connect to fcgi and ruby-fcgi. I assume that there
are
2005 Aug 24
1
FastCGI timeout problem
Hi everybody,
after more than 18 hours trying to get Ruby Rails running, i ran into this
problem that i cannot solve. I want to mention that with normal CGI the test app
was running fine. FastCGI is making me problems.
I receive in the browser:
"Application error
Rails application failed to start properly"
and in apache2 log files i have:
[Thu Aug 25 00:13:49 2005] [error] [client
2006 May 11
3
LightHTTPD FastCgi Error in Production Mode
I''ve been banging my head against the following for about 8 hours now,
and have exhausted my web research options:
/usr/home/matthew.feadler/rails/avclfc/public/dispatch.fcgi:21:in
`require'': no such file to load --
/usr/home/matthew.feadler/rails/avclfc/public/../config/environment
(LoadError)
from
/usr/home/matthew.feadler/rails/avclfc/public/dispatch.fcgi:21
2006 Apr 08
3
FastCGI issues
I am attempting to get Rails running on Windows with an Apache 2 server.
I seem to be having some trouble, and in spite of my best efforts to
find a solution, I could not.
I believe that I configured Apache correctly. I have included
EnableSendfile Off
EnableMMAP Off
Win32DisableAcceptEx
FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1
-processSlack 1 \
-initial-env
2006 Jan 18
7
FastCgi issue
Hi,
I know that Apache2 + fastcgi is sometimes difficult to setup, but I was
wondering if anyone has come across this error and if yes what did you
do to resolve it?
[Wed Jan 18 14:58:12 2006] [error] [client 77.123.19.115] FastCGI: comm
with server "/var/htdocs/ot/public/dispatch.fcgi" aborted: idle timeout
(120 sec)
[Wed Jan 18 14:58:12 2006] [error] [client 77.123.19.115]
2006 Mar 02
6
Lighttpd and fastcgi problems...
Hi,
I''m having difficulty getting ruby running via Lighttpd and fastcgi. My
lighttpd.conf reads:
server.port = 81
server.pid-file = "/tmp/test_lighttpd.pid"
server.modules = ( "mod_redirect", "mod_access", "mod_fastcgi",
"mod_accesslog", "mod_simple_vhost" )
server.document-root = "/tmp/mis/public"
2006 Mar 23
5
[OT] building fastcgi
Following the instructions on Hivelogic, everything works flawlessly on my
Powerbook until I do the ''sudo gem install fcgi.
I''m getting no-definition errors all over the place. Any thoughts how to
resolve this?
Example of errors:
No definition for fcgi_s_accept
No definition for fcgi_s_each
No definition for fcgi_s_each
No definition for fcgi_s_iscgi
--
View this message in
2006 Jan 11
3
Idle Apache+FastCGI sleeping?
Wondering: Does Apache shut down inactive FastCGI processes if it
doesn''t get any requests for a while? My app works fine if it''s being
used regularly, but it will respond very slowly to the first request
after an hour of zero traffic.
Is there a way to keep FastCGI ready all the time, even when there
haven''t been any requests for a while? We''re deploying