Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7608697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:59:04+00:00 2026-05-31T00:59:04+00:00

I wrote a demo HelloWorld Rails app and tested it with WEBrick (it doesn’t

  • 0

I wrote a demo HelloWorld Rails app and tested it with WEBrick (it doesn’t even use a DB, it’s just a controller which prints “hello world”). Then I tried to deploy it to a local Apache powered with Passenger. In fact this test is just to get Passenger working (it’s my first deploy on Apache). Now I’m not even sure that Passenger works, but I don’t get any error on the Apache side.

When I fire http://rails.test/ the browser shows the Rails 500 error page – so I assume that Passenger works. I want to investigate the logs, but it happens that production.log is empty! I don’t think it’s a permission problem, because if I delete the file, it is recreated when I reload the page. I tried to change the log level in conf/environments/production.rb, tried to manually write to log file with Rails console production and

 Rails.logger.error('asdf')

it returns true but nothing gets written to production.log. The path (obtained per Rails.logger.inspect) is correct, and I remark that the file is recreated if I manually remove it. How can I know what’s going on?

(I already checked the Apache logs, plus I set the highest debug level for Passenger but it seems a Rails problem, so is not logged by the server)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T00:59:05+00:00Added an answer on May 31, 2026 at 12:59 am

    Assuming you’re running Rails 3.2.1, this is a bug. It was patched in 3.2.2.

    If you can’t upgrade to 3.2.2 for any reason, this comment on GitHub has a workaround:

    # config/initializers/patch_rails_production_logging.rb
    Rails.logger.instance_variable_get(:@logger).instance_variable_get(:@log_dest).sync = true if Rails.logger
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have been working on a small demo and i wrote a function which
I wrote a small app to allow the user to choose which language he
I want to make a little in-app demo like Tapbots does in Convertbot. Maybe
I am trying to get a simple demo of Ruby on Rails working on
I wrote a flex demo, customized spark TextInput skin with rounded corners and a
Is there any RealBasic studio like for GNU C language, Where i just wrote
I'm trying to write a simple demo application in C++. I just want to
I'm trying to write a 3D demo for a client which will simply display
I am using outStream = ctext.openFileOutput(demo.jpg,0); outStream.write(data); outStream.close(); If I use the emulator the
I wrote some java classes, to evaluate/demo different Sorting algorithms. However I got confused

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.