本文介绍了Errno::EIO: 输入/输出错误 - <STDOUT>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

class FaxFetchWorker
  include Sidekiq::Worker
  sidekiq_options :retry => false

  def perform(job_id=0)
    logger.warn "perform is invoked."

    FaxSource.all.each do |source|
      ...
    end
  end
end

出现错误 Errno::EIO:输入/输出错误 - 第 6 行

Getting Error Errno::EIO: Input/output error - <STDOUT> on Line # 6

推荐答案

代码中的 #6 行是这样的

The #6 line in your code is this

    logger.warn "perform is invoked."

此代码需要打开 STDOUT 流,并且您的错误名称为 Errno::EIO.

This code needs opened STDOUT stream and your error name is Errno::EIO.

在 linux EIO 中,意味着尝试读取/写入当前不可用的流.这可能是由于物理错误或孤立进程(其父进程已死亡)尝试从父进程获取 stdio 或流关闭时发生的.

In linux EIO means, that there was made an attempt to read/write to stream which is currently unavailable. This could happen because of physical error or when orphaned process (whose parent has died) attempts to get stdio from parent process, or when stream is closed.

这篇关于Errno::EIO: 输入/输出错误 - &lt;STDOUT&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-16 00:45