Displaying 20 results from an estimated 900 matches similar to: "Rails with Apache and FastCGI under Windows and strange errors"
2007 Mar 01
1
ActiveRecord::StatementInvalid error
When I try to run my webserver in the production environment I just
get an application error message. This is all I can find in the log:
ActiveRecord::StatementInvalid
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/
connection_adapters/sqlite_adapter.rb:274:in `table_structure''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/
2005 Dec 06
4
Errno::E232 (The pipe is being closed.)
I get this error on occasion using both Webrick and Apache2/FCGI:
Webrick Debug:
[06/Dec/2005:07:46:19 :: 216] Dispatcher failed to catch: The pipe is
being closed. (Errno::E232)
[06/Dec/2005:07:46:19 :: 216] Dispatcher failed to catch: The pipe is
being closed. (Errno::E232)
C:/MyApp/Server/public/../config/../vendor/rails/actionpack/lib/action_controller/cgi_process.rb:158:in
2006 Aug 16
3
problems with fastcgi, apache2 and debian sarge
Apache conf:
FastCgiServer /var/www/gissmoh.de/public/dispatch.fcgi -initial-env
RAILS_ENV=prod
uction -processes 5 -idle-timeout 60
<virtualhost 212.87.142.234:80>
ServerName www.gissmoh.de
DocumentRoot /var/www/gissmoh.de/public
CustomLog /var/log/apache2/gissmoh.de/access.log
combined
SetEnv RAILS_ENV production
2006 Aug 08
0
EAGAIN error in production.log
Hello,
I''m seeing quite a few of the following errors in my production log:
Errno::EAGAIN (Resource temporarily unavailable):
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/cgi_process.rb:184:
in `write''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/cgi_process.rb:184:
in `out''
2006 Jan 09
3
FCGI and Apache2 on win performance problem
Hi all,
I am having problems with FCGI and Apache2 on windows.
The error I often receive is 500 error code response with logs listed
down. I successfully use Webrick server and CGI (very slow). I had
configured apache as is described in these document:
http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows.
Any suggestions?
Logs:
> Errno::E232 (The pipe is being
2007 Mar 01
0
FastCGI and Apache. Anybody know what can cause this error?
Does anybody know what could possibly be causing my error?
Somehow action_controller got into a state where it was retuning not
found for about 4 out of every 5 requests, seemingly arbitrarily.
Has anybody else ever experienced this? I''ve heard that apache and
fastcgi is not the best solution, do you think this is fcgi''s fault?
Could it be a bug in my ruby code? Could it be a
2008 Feb 07
2
FAILSAFE error with uploads
I''ve just upgraded a production web site with some new code to handle
file uploads, using both the standard post technique and swfupload.
This code was working perfectly in my development environment, and I''m
not sure what I should ever start to look for. Here''s the stack dump:
/!\ FAILSAFE /!\ Wed Feb 06 19:13:41 -0700 2008
Status: 500 Internal Server Error
2005 Aug 06
0
Re: Error when going to Fastcgi.
I fixed that missing comma, now I get this error:
Processing Base#index (for 24.94.221.205 at Sat Aug 06 14:40:47 GMT
2005)
Parameters: {}
NoMethodError (undefined method `before_filter'' for #<Object:
0x80859b8>):
/app/controllers/loginadmin_controller.rb:1
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require__''
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 Jun 13
0
Yet Another Apache/FastCgi Setup Issue
I have set up FastCGI on the server and added 2 servers/processes and
increased the timeout from 30seconds to 60seconds. I _think_ I did
that properly because I now have to wait the full 60 seconds like
clockwork until I get the "Rails application failed to start" when I
browse to my URL. Before it was 30 seconds like clockwork.
When I run "ruby dispatch.fcgi" I get the
2008 Jan 05
7
Error! Ruby on Rails based on FastCGI, Hello world !
Hey,
I try to do my first steps in Ruby, and designed an "Hello World!"
Application. Now I want to install this Application on an Apache server.
I copied it to the "/public_html/" Directory here: (the application is
called "rubyapp")
http://sn00p.profusehost.net/rubyapp/
I ran http://sn00p.profusehost.net/rubyapp/public/dispatch.fcgi and get
an Error. So I looked
2006 Apr 06
1
Strange message in fastcgi.crash.log
Hi,
I just installed Ruby 1.8.4 and Rails using the HiveLogic instructions
(I had been using Locomotive, and decided to make the big leap).
Everything seems to go well, I set up a simple test app and it does
run using script/server (using a sqlite3 database).
I am noticing that when I use Control-C to stop the server, I''m seeing
this message in the fastcgi.crash.log file:
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 Apr 13
4
Apache/fastcgi setup can''t find custom config/*.yml file!
All,
Apache 2/FastCGI on Linux
My fastcgi config. file is set up to run the "test" RAILS_ENV.
When I go to access a view associated with a particular controller, I
keep getting a ENOENT (file not found) error on a custom config. file
that I am attempting to load.
What I can''t figure out is why it can''t find the file.
Here''s the code that loads it in my
2006 Jan 26
0
fastcgi crash
My web browser won''t load/display a controller page. (It worked
yesterday.)
I''m getting this in my fastcgi.crash.log:
[26/Jan/2006:16:33:05 :: 29839] starting
[26/Jan/2006:16:37:18 :: 29839] Dispatcher failed to catch: (Interrupt)
/usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each''
/usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi''
2006 Nov 04
0
Marshal Data Too Short Error
I am using Ruby 1.8.2 on WinXP and am receiving a "Marshal Data Too Short"
error. I havent been able to repeat the error as it seems to happen randomly
in my rails program. However, the version of Ruby I''m using already has the
file.binmode lines outlined in:
http://wiki.rubyonrails.com/rails/pages/MarshalDataTooShort.
If possible I''d like to avoid switching to active
2006 Mar 14
5
Apache2 + FastCGI + SSL: File upload fails with HTTPS
All,
I have run into a road block with my RoR project. The app works fine
without SSL but when I try to upload a file with the site running in
HTTPS, cgi.rb throws an EOFError:
[13/Mar/2006:23:05:48 :: 22982] Dispatcher failed to catch: bad content
body (EOFError) /usr/lib/ruby/1.8/cgi.rb:981:in `read_multipart?
2006 Aug 26
1
Marshal Data Too Short Error
I am using Ruby 1.8.2 on WinXP and am receiving a "Marshal Data Too
Short" error. I havent been able to repeat the error as it seems to
happen randomly in my rails program. However, the version of Ruby I''m
using already has the file.binmode lines outlined in:
http://wiki.rubyonrails.com/rails/pages/MarshalDataTooShort.
If possible I''d like to avoid switching to
2007 Aug 19
3
fastcgi issue on production
I just deployed my rails app to my production server. It''s all working
locally, but when I switched it over to the production server (at
dreamhost) I get this error:
# Logfile created on Sun Aug 19 15:22:48 -0700 2007 by logger.rb/
1.5.2.9
[19/Aug/2007:15:22:48 :: 1841] starting
[19/Aug/2007:15:22:48 :: 1841] Dispatcher failed to catch: You have a
nil object when you didn''t
2010 Jul 21
0
cgi_process.rb:22:in `__send__': undefined method `env_table
.htaccess is like this...
AddHandler fcgid-script .fcgi
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ dispatch.cgi [QSA,L] <--- commented
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
if I run....
./dispatch.rb
./../config/environment.rb:35: warning: already initialized constant
MONTHNAMES