Code Monkey home page Code Monkey logo

Comments (13)

FooBarWidget avatar FooBarWidget commented on May 24, 2024

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.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

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.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on May 07, 2008 02:19:46

Your environment.rb looks OK.

Does this problem occur with Mongrel as well?

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

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.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

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.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on May 07, 2008 14:39:52

Labels: Compatibility

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

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.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

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.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on May 09, 2008 07:33:12

Status: Fixed
Labels: -NeedsConfirmation SolvedWithConservativeSpawning

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

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.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on May 16, 2008 01:29:20

anthony.pilger, have you already tried conservative spawning, as suggested earlier?

from passenger.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

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.

FooBarWidget avatar FooBarWidget commented on May 24, 2024

From honglilai on June 11, 2008 00:33:44

Labels: -Milestone-1.1.0 Milestone-1.9.0

from passenger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.