Missing 'unicode.data' issue with logstash-1.1.6.dev-flatjar
Description
Gliffy Diagrams
Activity

Richard Pijnenburg September 21, 2013 at 3:18 PM
If im not mistaken this was fixed in 1.1.13
If this is still an issue in 1.1.13 or 1.2.1 please open a new ticket.

Boyd Meier May 21, 2013 at 10:11 PMEdited
The matching of the Windows root string in the JRUBY-6970.rb patch is case sensitive. For whatever reason, windows is reporting the drive as c:\ instead of C:\, which causes the match to fail. I made the following change:

Boyd Meier May 20, 2013 at 10:12 PM
The unicode.data source is evident in the stack trace from the expanded jar:
c:\nightowl>java -cp temp logstash.runner agent -f logstash.conf
Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (ENOENT) No such file or directory - C:/nightowl/data/unicode.data
at org.jruby.RubyFile.initialize(org/jruby/RubyFile.java:333)
at org.jruby.RubyIO.open(org/jruby/RubyIO.java:1179)
at RUBY.IDNA(C:/nightowl/temp/addressable/idna/pure.rb:328)
at RUBY.Addressable(C:/nightowl/temp/addressable/idna/pure.rb:20)
at RUBY.(root)(C:/nightowl/temp/addressable/idna/pure.rb:19)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(C:/nightowl/temp/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(C:/nightowl/temp/addressable/idna.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(C:/nightowl/temp/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(C:/nightowl/temp/addressable/idna.rb:24)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(C:/nightowl/temp/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(C:/nightowl/temp/addressable/uri.rb:1)
at RUBY.(root)(C:/nightowl/temp/addressable/uri.rb:20)
at org.jruby.ext.thread.Mutex.synchronize(org/jruby/ext/thread/Mutex.java:149)
at RUBY.(root)(C:/nightowl/temp/logstash/inputs/file.rb:1)
at RUBY.register(C:/nightowl/temp/logstash/inputs/file.rb:62)

Boyd Meier May 20, 2013 at 10:10 PM
This error still occurs on windows 2008 R2 server with the 1.1.12 build when a file input is defined.
c:\nightowl>java -cp logstash-1.1.12-flatjar.jar logstash.runner agent -f logstash.conf
{:expand_path=>["jar:file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/logstash/../../locales/en.yml", "jar:file:/C:/nightowl/logstash-1.1.12-flatjar.jar!c:/locales/en.yml"]}
{:expand_path=>["file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/META-INF/jruby.home/lib/ruby/gems/shared/gems/rake-10.0.3", "file:/C:/nightowl/logstash-1.1.12-flatjar.jar!c:/META-INF/jruby.home/lib/ruby/gems/shared/gems/rake-10.0.3"]}
{:expand_path=>["file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/META-INF/jruby.home/lib/ruby/gems/shared/gems/rake-10.0.3", "file:/C:/nightowl/logstash-1.1.12-flatjar.jar!c:/META-INF/jruby.home/lib/ruby/gems/shared/gems/rake-10.0.3"]}
{:expand_path=>["file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/../../../data/unicode.data", "file:/C:/nightowl/logstash-1.1.12-flatjar.jar!c:/data/unicode.data"]}
{:expand_path=>["file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/../../../data/unicode.data", "file:/C:/nightowl/logstash-1.1.12-flatjar.jar!c:/data/unicode.data"]}
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:36 warning: already initialized constant UNICODE_TABLE
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:40 warning: already initialized constant ACE_PREFIX
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:42 warning: already initialized constant UTF8_REGEX
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:53 warning: already initialized constant UTF8_REGEX_MULTIBYTE
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:304 warning: already initialized constant HANGUL_SBASE
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:305 warning: already initialized constant HANGUL_LBASE
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:306 warning: already initialized constant HANGUL_LCOUNT
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:307 warning: already initialized constant HANGUL_VBASE
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:308 warning: already initialized constant HANGUL_VCOUNT
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:309 warning: already initialized constant HANGUL_TBASE
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:310 warning: already initialized constant HANGUL_TCOUNT
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:311 warning: already initialized constant HANGUL_NCOUNT
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:312 warning: already initialized constant HANGUL_SCOUNT
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:314 warning: already initialized constant UNICODE_DATA_COMBINING_CLASS
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:315 warning: already initialized constant UNICODE_DATA_EXCLUSION
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:316 warning: already initialized constant UNICODE_DATA_CANONICAL
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:317 warning: already initialized constant UNICODE_DATA_COMPATIBILITY
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:318 warning: already initialized constant UNICODE_DATA_UPPERCASE
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:319 warning: already initialized constant UNICODE_DATA_LOWERCASE
file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:320 warning: already initialized constant UNICODE_DATA_TITLECASE
Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (IOError) The filename, directory name, or volume label syntax is incorrect
at org.jruby.RubyFile.initialize(org/jruby/RubyFile.java:333)
at org.jruby.RubyIO.open(org/jruby/RubyIO.java:1179)
at RUBY.IDNA(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:328)
at RUBY.Addressable(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:20)
at RUBY.(root)(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna/pure.rb:19)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/idna.rb:24)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/uri.rb:1)
at RUBY.(root)(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/addressable/uri.rb:20)
at org.jruby.ext.thread.Mutex.synchronize(org/jruby/ext/thread/Mutex.java:149)
at RUBY.(root)(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/logstash/inputs/file.rb:1)
at RUBY.register(file:/C:/nightowl/logstash-1.1.12-flatjar.jar!/logstash/inputs/file.rb:62)
Jordan Sissel January 18, 2013 at 7:55 PM
e9953458d9ace8e1c390165fe9664b8089f824fa
While this version of logstash is given a input { file {...} }, it complains about a missing unicode.data file. input { stdin {...} } gives no error.