Comments (13)
From honglilai on May 05, 2008 02:57:07
Could you paste the contents of your environment.rb here?Could you paste the contents
of your environment.rb here?
from passenger.
From albert.ramstedt on May 07, 2008 01:00:34
I dont know how this is relevant, because the error occurs on several completely
different apps. This is the environment.rb from the app that had the backtrace though:
Be sure to restart your webserver when you modify this file.
Uncomment below to force Rails into production mode
(Use only when you can't set environment variables through your web/app server)
ENV['RAILS_ENV'] = 'production'
require 'rubygems'
Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(FILE), 'boot')
Rails::Initializer.run do |config|
Skip frameworks you're not going to use
config.frameworks -= [ :action_web_service, :action_mailer ]
Add additional load paths for your own custom dirs
config.load_paths += %W( #{RAILS_ROOT}/app/services )
Force all environments to use the same logger level
(by default production uses :info, the others :debug)
#config.log_level = :debug
Use the database for sessions instead of the file system
(create the session table with 'rake create_sessions_table')
config.action_controller.session_store = :active_record_store
Enable page/fragment caching by setting a file-based store
(remember to create the caching directory and make it readable to the application)
config.action_controller.page_cache_directory = RAILS_ROOT+"/public/cache/"
config.active_record.allow_concurrency = false
Activate observers that should always be running
config.active_record.observers = :cacher, :garbage_collector
Make Active Record use UTC-base instead of local time
config.active_record.default_timezone = :utc
Use Active Record's schema dumper instead of SQL when creating the test database
(enables use of different database adapters for development and test environments)
config.active_record.schema_format = :ruby
See Rails::Configuration for more options
end
from passenger.
From honglilai on May 07, 2008 02:19:46
Your environment.rb looks OK.
Does this problem occur with Mongrel as well?
from passenger.
From albert.ramstedt on May 07, 2008 02:26:52
No it does not.
Hm, I would be interested in if any other people are experiencing this problem, which
occurs seemingly random for me, but it does occur on all my passenger apps across
three different machines with different distros installed (debian sarge / ubuntu
7.10), and across different applications and rails versions. I only notice it because
I have the mail notification plugin installed.
from passenger.
From honglilai on May 07, 2008 14:35:49
Could you try the latest development version (git repository)? The problem should be
solved if you set "RailsSpawnMethod" to "conservative". This config option is
documented in the users guide: http://www.modrails.com/documentation/Users%20guide%20latest.html#_railsspawnmethod_lt_string_gt
Status: Started
Labels: NeedsConfirmation Milestone-1.1.0
from passenger.
From honglilai on May 07, 2008 14:39:52
Labels: Compatibility
from passenger.
From albert.ramstedt on May 07, 2008 15:00:30
as stated in irc:
[00:01:06] soma- | alright, ive installed it then, but my issues are sporadic
as mentioned, and i cannot reliably reproduce them
│
[00:01:18] soma- | i guess ill have to wait and report back in the ticket
from passenger.
From jeroen%[email protected] on May 09, 2008 05:56:24
I've noticed this too when I was using PG. I think it's a problem of the PG driver.
The first request after a deploy caused some problems. After that everything would be
fine. This was over a year ago (at least). Think I was using mongrel at that time.
from passenger.
From honglilai on May 09, 2008 07:33:12
Status: Fixed
Labels: -NeedsConfirmation SolvedWithConservativeSpawning
from passenger.
From anthony.pilger on May 15, 2008 20:46:05
I am experiencing this as well, I've have vanilla install of osx on my macbook, and I've installed passenger.
after setting up the virtual directory and creating a rails app "rails apptest" i can load up the index just fine. but
none of the controllers.
if i do a ./script/server with webrick or mongrel everything works fine :(
from passenger.
From honglilai on May 16, 2008 01:29:20
anthony.pilger, have you already tried conservative spawning, as suggested earlier?
from passenger.
From anthony.pilger on May 17, 2008 10:10:54
actually the problem I had was me. :( I didn't have a production database set up for my app :(
I'm really sorry to have issued a false bug.
from passenger.
From honglilai on June 11, 2008 00:33:44
Labels: -Milestone-1.1.0 Milestone-1.9.0
from passenger.
Related Issues (20)
- Fails to recognise Nestjs app start HOT 2
- Uninitialized constant Rackup::Handler::Rack (NameError) [Rack 3] HOT 1
- Error loading libssl.so.1.1 when starting Phusion Passenger Standalone HOT 1
- Bad Signing Key for Debian Bullseye HOT 3
- Restarting doesn't remove deleted environment variables in rbenv-vars HOT 1
- Hooks not being registered HOT 4
- String conversion while handling native Ruby support lib LoadErrors can cause errors HOT 1
- Feature request: Ability to configure path to error renderer template
- Deprecation warning with ActiveRecord 7.1.2
- passenger-install-nginx-module is running after installation as a dynamic module HOT 8
- Security update without published advisory HOT 2
- Memory leak HOT 3
- Crash when starting Ruby 3.3.0 Rails 7 application HOT 3
- Disable secure headers option for GLS HOT 1
- HTTP3/QUIC breaks passenger Python apps ( Nginx + HTTP3 + Passenger ) HOT 2
- Cannot build passenger nginx dynamic module HOT 1
- Out of memory leads to passenger shutdown and ensuing 502 error on nginx HOT 3
- Out of memory leads to passenger shutdown and ensuing 502 error on nginx HOT 1
- Cannot upgrade to 1.24.0-1: unmet dependencies HOT 2
- Cannot find nginx module on Amazon Linux 2023 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passenger.