Topic: 500 resulting from production.log I/O Error

I have been randomly getting Application Error's on any given page sporadically as I use my app in production. This is the error message that I get, does anyone know what is causing this?


Errno::EIO (Input/output error - /config/../log/production.log):
    /usr/lib/ruby/1.8/logger.rb:513:in `write'
    /usr/lib/ruby/1.8/logger.rb:513:in `write'
    /usr/lib/ruby/1.8/monitor.rb:229:in `synchronize'
    /usr/lib/ruby/1.8/logger.rb:505:in `write'
    /usr/lib/ruby/1.8/logger.rb:335:in `add'
    /usr/lib/ruby/1.8/logger.rb:383:in `info'
    /gems/actionpack-1.12.5/lib/action_controller/base.rb:934:in `log_processing_without_query_stats'
    /vendor/plugins/query_stats/lib/query_stats.rb:21:in `log_processing'
    /gems/actionpack-1.12.5/lib/action_controller/base.rb:407:in `process_without_filters'
    /gems/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
    /gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
    /gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
    /gems/mongrel-0.3.13.4-i386-linux/lib/mongrel/rails.rb:84:in `process'
    /usr/lib/ruby/1.8/sync.rb:229:in `synchronize'
    /gems/mongrel-0.3.13.4-i386-linux/lib/mongrel/rails.rb:83:in `process'
    /gems/mongrel-0.3.13.4-i386-linux/lib/mongrel.rb:580:in `process_client'
    /gems/mongrel-0.3.13.4-i386-linux/lib/mongrel.rb:579:in `process_client'
    /gems/mongrel-0.3.13.4-i386-linux/lib/mongrel.rb:686:in `run'
    /gems/mongrel-0.3.13.4-i386-linux/lib/mongrel.rb:686:in `run'
    /gems/mongrel-0.3.13.4-i386-linux/lib/mongrel.rb:673:in `run'
    /gems/mongrel-0.3.13.4-i386-linux/lib/mongrel/configurator.rb:267:in `run'
    /gems/mongrel-0.3.13.4-i386-linux/lib/mongrel/configurator.rb:266:in `run'
    /gems/mongrel-0.3.13.4-i386-linux/bin/mongrel_rails:127:in `run'
    /gems/mongrel-0.3.13.4-i386-linux/lib/mongrel/command.rb:211:in `run'
    /gems/mongrel-0.3.13.4-i386-linux/bin/mongrel_rails:231


Thanks for any help.

Last edited by blweiner (2007-02-12 04:30:21)

Re: 500 resulting from production.log I/O Error

That's pretty weird.  Is the disk full?

Re: 500 resulting from production.log I/O Error

Nope. Everything goes fine and things get logged to production.log for 90% of the requests. Just randomly for any given request I will get a 500, check the log, and I see that error.

Re: 500 resulting from production.log I/O Error

I'm getting a similar error. Seems like 5% of the time the error pops up when writing a file (I get it for production.log and writing of cached pages).

setup:
rails 1.2.2
deployed with capistrano
on Media Temple's grid server

If you find a fix let me know, thanks!

Re: 500 resulting from production.log I/O Error

Vixiom, I am also running 1.2.2, deployed with cap, on a Media Temple container.

Re: 500 resulting from production.log I/O Error

I found this thread while searching for the same error. I'm also getting the same thing. Depending on the traffic on my site, this error writing to the log pops up as frequently as every 15 minutes. It appears to happen randomly on any controller/action.

I'm also running on MediaTemple's grid server (RoR container). I sent a support ticket to MT, so far they have only replied with a canned response.

If anyone figures it out, please let me know, too!

Re: 500 resulting from production.log I/O Error

This sounds terribly like an MT issue.  If you can all open tickets with them and point them to this thread you might get some help.

Good luck!

Re: 500 resulting from production.log I/O Error

Danger (and others)

I had a ticket open with MT for a day or so and then updated it with a link to this thread this morning when I found it. I just got this response back from MT support. I guess we'll wait and see ...


Nate,

Actually, this is most likely related to the known (gs) Grid-Server issues.  We are currently in the process of resolving this issue and will be posting an update very soon regarding this issue.

Please check:
http://weblog.mediatemple.net/weblog/

If you have any further questions regarding your (mt) Media Temple services, please feel free to contact us at any time.

Re: 500 resulting from production.log I/O Error

Nice! It looks like this problem should be solved when (mt) rolls out GMR 1.2 starting on March 3. Check out (mt)'s comment to my blog post yesterday:

http://blog.wamily.com/articles/2007/02 … -so-sneaky