Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fileutils.rb copy_stream io error when transpec run #96

Closed
ermacaz opened this issue Dec 26, 2014 · 2 comments
Closed

fileutils.rb copy_stream io error when transpec run #96

ermacaz opened this issue Dec 26, 2014 · 2 comments

Comments

@ermacaz
Copy link

ermacaz commented Dec 26, 2014

Hi,

When trying to run transpec 3.0.6 I get the following error

$ transpec -f
Copying the project for dynamic analysis...
/home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/fileutils.rb:1393:in `copy_stream': Input/output error - sendfile (Errno::EIO)
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/fileutils.rb:1393:in `block (2 levels) in copy_file'
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/fileutils.rb:1392:in `open'
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/fileutils.rb:1392:in `block in copy_file'
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/fileutils.rb:1391:in `open'
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/fileutils.rb:1391:in `copy_file'
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/fileutils.rb:485:in `copy_file'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/lib/transpec/directory_cloner.rb:37:in `copy'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/lib/transpec/directory_cloner.rb:25:in `block in copy_recursively'
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/find.rb:48:in `block (2 levels) in find'
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/find.rb:47:in `catch'
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/find.rb:47:in `block in find'
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/find.rb:42:in `each'
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/find.rb:42:in `find'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/lib/transpec/directory_cloner.rb:22:in `copy_recursively'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/lib/transpec/dynamic_analyzer.rb:57:in `block in in_copied_project'
    from /home/ermacaz/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tmpdir.rb:88:in `mktmpdir'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/lib/transpec/dynamic_analyzer.rb:56:in `in_copied_project'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/lib/transpec/dynamic_analyzer.rb:25:in `initialize'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/lib/transpec/cli.rb:73:in `new'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/lib/transpec/cli.rb:73:in `run_dynamic_analysis'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/lib/transpec/cli.rb:53:in `process'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/lib/transpec/cli.rb:38:in `run'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/lib/transpec/cli.rb:19:in `run'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/gems/transpec-3.0.6/bin/transpec:7:in `<top (required)>'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/bin/transpec:23:in `load'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/bin/transpec:23:in `<main>'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/bin/ruby_executable_hooks:15:in `eval'
    from /home/ermacaz/.rvm/gems/ruby-2.2.0@mdme/bin/ruby_executable_hooks:15:in `<main>'

I have tried with ruby 2.1.1 and 2.2.0 with both producing the same error. Any help in fixing the error would be appreciated.

@yujinakayama
Copy link
Owner

I just released transpec 3.0.7, which shows the problematic file path on failure of project copy. Please try again with 3.0.7, and when you met the same error you should see while copying "/path/to/problematic/file" in the error message. Then report result of ls -l /path/to/problematic/file to this issue.

@ermacaz
Copy link
Author

ermacaz commented Dec 28, 2014

Hi,

It turns it it was having problems coping a log file, according to the extra while copying output you provided. After investigating it looks like the log file has come become corrupted. After deleting the file, transpec ran successfully.

Thankyou for the help.

@ermacaz ermacaz closed this as completed Dec 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants