Errno::EIO - Input/output error

hi all,
my appl works well but i get the following error suddenly for few
pages. to resolve this, i had to restart the server everytime. then it
works fine for some time, but after some time it appears again. this is
happening contineously. i searched for solution on this, but didn’t get
much. can anybody help in this plaese? any help will be greatly
appreciated… i’ve pasted full trace below.

-Dhaval

TRACE:-
Errno::EIO in Reporter#index
Showing app/views/reporter/index.rhtml where line #4 raised:

Input/output error

Extracted source (around line #4):

1:


2:
3:

4: <% form_remote_tag( :url => {:controller => ‘reporter’, :action =>
‘add_stat’}, :html => {:id => ‘add_stat_form’}) do |f| %>
5: <%=select_tag(“stat_id”,
options_from_collection_for_select(@statistics, “id”, “name”))%>
6: <%= submit_tag ‘Add Stat’ %>
7: <% end %>

RAILS_ROOT: script/…/config/…

Application Trace | Framework Trace | Full Trace
/home/dphansalkar/temp_upload/MergeDemoTRY/app/views/reporter/index.rhtml:4:in
write' /home/dphansalkar/temp_upload/MergeDemoTRY/app/views/reporter/index.rhtml:4:in_run_rhtml_47app47views47reporter47index46rhtml’
/home/dphansalkar/temp_upload/MergeDemoTRY/app/views/reporter/index.rhtml:4:in
_run_rhtml_47app47views47reporter47index46rhtml' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/capture_helper.rb:108:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/capture_helper.rb:108:in
capture_erb_with_buffer' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/capture_helper.rb:67:incapture’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/form_tag_helper.rb:51:in
form_tag' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/prototype_helper.rb:180:inform_remote_tag’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/base.rb:325:in
send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/base.rb:325:incompile_and_render_template’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/base.rb:301:in
render_template' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/base.rb:260:inrender_file’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:812:in
render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:717:inrender_with_no_layout’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/layout.rb:247:in
render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:50:inrender’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:50:inrender’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:1102:in
perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:696:incall_filters’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:688:in
perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/rescue.rb:83:in
perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:435:insend’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:435:in
process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:684:inprocess_without_session_management_support’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/session_management.rb:114:in
process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:334:inprocess’
/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/dispatcher.rb:41:in
dispatch' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/rails.rb:76:inprocess’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/rails.rb:74:in
synchronize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/rails.rb:74:inprocess’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:626:in
process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:625:ineach’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:625:in
process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:751:inrun’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:751:in
initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:751:innew’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:751:in run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:735:ininitialize’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:735:in new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:735:inrun’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/configurator.rb:282:in
run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/configurator.rb:281:ineach’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/configurator.rb:281:in
run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/bin/mongrel_rails:122:inrun’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/command.rb:211:in
run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/bin/mongrel_rails:276 /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:inload’
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in
load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:innew_constants_in’
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in
load' /usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/servers/mongrel.rb:60 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:inrequire’
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in
new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:inrequire’
/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/server.rb:39
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
script/server:3
/home/dphansalkar/temp_upload/MergeDemoTRY/app/views/reporter/index.rhtml:4:in
write' /home/dphansalkar/temp_upload/MergeDemoTRY/app/views/reporter/index.rhtml:4:in_run_rhtml_47app47views47reporter47index46rhtml’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/capture_helper.rb:108:in
call' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/capture_helper.rb:108:incapture_erb_with_buffer’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/capture_helper.rb:67:in
capture' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/form_tag_helper.rb:51:inform_tag’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/prototype_helper.rb:180:in
form_remote_tag' /home/dphansalkar/temp_upload/MergeDemoTRY/app/views/reporter/index.rhtml:4:in_run_rhtml_47app47views47reporter47index46rhtml’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/base.rb:325:in
send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/base.rb:325:incompile_and_render_template’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/base.rb:301:in
render_template' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/base.rb:260:inrender_file’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:812:in
render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:717:inrender_with_no_layout’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/layout.rb:247:in
render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:50:inrender’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:50:inrender’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:1102:in
perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:696:incall_filters’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:688:in
perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/rescue.rb:83:in
perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:435:insend’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:435:in
process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:684:inprocess_without_session_management_support’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/session_management.rb:114:in
process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:334:inprocess’
/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/dispatcher.rb:41:in
dispatch' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/rails.rb:76:inprocess’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/rails.rb:74:in
synchronize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/rails.rb:74:inprocess’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:626:in
process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:625:ineach’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:625:in
process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:751:inrun’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:751:in
initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:751:innew’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:751:in run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:735:ininitialize’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:735:in new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel.rb:735:inrun’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/configurator.rb:282:in
run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/configurator.rb:281:ineach’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/configurator.rb:281:in
run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/bin/mongrel_rails:122:inrun’
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/lib/mongrel/command.rb:211:in
run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.3/bin/mongrel_rails:276 /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:inload’
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in
load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:innew_constants_in’
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in
load' /usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/servers/mongrel.rb:60 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:inrequire’
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in
new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:inrequire’
/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/server.rb:39
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
script/server:3

hi,
any help/solution on this? does anyone face the same prb?..

-Dhaval

hi all,
is this issue really a tough one or its not at all a prb? did i
forget something to mention? aren’t the details provided sufficient? can
somebody help me out please?

-Dhaval

hi all,
i don’t know how, but this resolved the prb. the prb was with the
line “<% form_remote_tag( :url
=>{:controller=>‘reporter’,:action=>‘add_stat’},:html=>{:id=>‘add_stat_form’})
do |f| %>”. i just removed “:html=>{:id=>‘add_stat_form’}” from it and
since then, didn’t get that error again. if somebody is having the same
prb can try this. if anybody knows the reason, pls pls pls share…

regards
Dhaval

hi…
I’m getting a similar error (Errno::EIO) on the following line in my
code…
<%= check_box (‘rooms’,‘record’,{},‘1’,‘0’) %>
I don’t get this error when i host my app locally…
Only when I have my application running on a server…then I get such
an error…
Can you please suggest to me…what can be the solution to this
problem…
Thank you so much

On Jul 10 2008, 9:50 am, Dhaval P. <rails-mailing-l…@andreas-

can you check the ror versions,environments on both, your local and
server machine? if both are same, can you paste the complete error trace
here that u get?

as i said in my previous post, i didn’t get the exact solution for this,
but the change that i made at that time, worked fine.

-Dhaval