Rails error: Errno::EIO (Input/output error)

Tagged:

All of a sudden one of my apps (still under development) started throwing the error "Errno::EIO (Input/output error)", coming from different controllers, but always tripping on a 'write' command.  No amount of googling turned up anything useful, but after a little digging, I realized that the offending line was using puts instead of logger.debug to spit out some tracing information.  I guess Rails (2.3.2) doesn't like that and was blowing up. 
 
Changing the appropriate lines to use logger.debug resolved it.
 
Hope this helps someone else save a few minutes ....

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>, <shell>, <c>, <drupal6>, <java>, <javascript>, <objc>, <perl>, <php>, <python>, <rails>, <ruby>, <sql>, <xmlcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.