# Errors when writing to logs (A Errno::EIO, Input/output erro

**URL:** <https://www.ruby-forum.com/t/errors-when-writing-to-logs-a-errno-eio-input-output-erro/85927>\
**Category:** Deployment\
**Created:** [February 17, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/errors-when-writing-to-logs-a-errno-eio-input-output-erro/85927 "2007-02-17T18:56:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vixiom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/a698b9/32.png) [@vixiom](https://www.ruby-forum.com/u/vixiom)\
**Post date:** [February 17, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/errors-when-writing-to-logs-a-errno-eio-input-output-erro/85927/1 "2007-02-17T18:56:58Z")

</div>

Hi,

I’m getting write errors randomly (about 5% of the time) whenever  
Rails writes to the production log or caches a page, at first I  
thought it was every time it wrote a file but it will happily spit out  
95% of cached pages then throw out an error like the one below:

A Errno::EIO occurred in answers#new:

Input/output error - /home/4927/containers/rails/what2tip/current/  
config/…/log/production.log  
/usr/lib/ruby/1.8/logger.rb:513:in `write’

or

A Errno::EIO occurred in pages#index:

Input/output error - {pathtosite}/current/config/…/public/  
index.html  
{pathtogems}/rubygems/gems/gems/actionpack-1.13.1/lib/  
action\_controller/caching.rb:90:in `initialize’

thanks!
