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

Failed to process the file #4325

Open
sridhar99 opened this issue Nov 20, 2016 · 3 comments
Open

Failed to process the file #4325

sridhar99 opened this issue Nov 20, 2016 · 3 comments
Labels

Comments

@sridhar99
Copy link

sridhar99 commented Nov 20, 2016

Version: jruby 1.7.18 (1.9.3p551) 2014-12-22 625381c on Java HotSpot(TM) 64-Bit Server VM1.8.0_111-b14 +jit [Windows Server 2012 R2-amd64]

Description:
Processing : testfile.txt.zip
Errno::ENOENT: No such file or directory - D:\testfile.txt.zip20161120-4968-evv7e2 or D:\testfile.txt.zip
rename at org/jruby/RubyFile.java:956
mv at D:/jruby/lib/ruby/1.9/fileutils.rb:519
fu_each_src_dest at D:/jruby/lib/ruby/1.9/fileutils.rb:1525
fu_each_src_dest0 at D:/jruby/lib/ruby/1.9/fileutils.rb:1541
fu_each_src_dest at D:/jruby/lib/ruby/1.9/fileutils.rb:1523
mv at D:/jruby/lib/ruby/1.9/fileutils.rb:508
on_success_replace at D:/jruby/lib/ruby/gems/shared/gems/zip-2.0.2/lib/zip/zip
.rb:1575
commit at D:/jruby/lib/ruby/gems/shared/gems/zip-2.0.2/lib/zip/zip
.rb:1483
close at D:/jruby/lib/ruby/gems/shared/gems/zip-2.0.2/lib/zip/zip
.rb:1498
open at D:/jruby/lib/ruby/gems/shared/gems/zip-2.0.2/lib/zip/zip
.rb:1389
open at D:/jruby/lib/ruby/gems/shared/gems/zip-2.0.2/lib/zip/zip
.rb:1386
zip at D:/jruby/lib/zipper.rb:11
process at data_file_dater.rb:63
each at org/jruby/RubyArray.java:1613
process at data_file_dater.rb:40
(root) at data_file_dater.rb:123

Expected Behavior

Files should process

@enebo
Copy link
Member

enebo commented Nov 21, 2016

Can you try this again with jruby 1.7.26. We have fixed many issues since 1.7.18: http://jruby.org/download

@sridhar99
Copy link
Author

sridhar99 commented Nov 21, 2016

I am seeing the below error after upgrading to 1.7.26

D:\jruby>jruby data.rb
D:/jruby/lib/ruby/1.9/psych.rb:228 warning: already initialized constant LIBYAML
_VERSION
LoadError: no such file to load -- zip/zip

require at org/jruby/RubyKernel.java:1071
require at D:/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
(root) at D:/jruby/lib/zipper.rb:1
require at org/jruby/RubyKernel.java:1071
require at D:/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
(root) at data_file_dater.rb:4

@enebo enebo added the windows label Nov 21, 2016
@enebo
Copy link
Member

enebo commented Nov 21, 2016

@sridhar99 can you attach a small script where we can try this along with which directory/env it is run? Your particular output is not giving me many thoughts on what the issue could be.

One thing I see is you are on D: so I am curious if this is related to us improperly handling drive letters. If it is simple to try running from C: I might have been a lucky guesser :) This is just a random question based on seeing D: but it could be many things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants