# Logstash error while starting!

**URL:** <https://discuss.elastic.co/t/logstash-error-while-starting/61792>\
**Category:** Logstash\
**Created:** [September 29, 2016, 8:40am UTC](https://discuss.elastic.co/t/logstash-error-while-starting/61792 "2016-09-29T08:40:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amits](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@amits](https://discuss.elastic.co/u/amits)\
**Post date:** [September 29, 2016, 8:40am UTC](https://discuss.elastic.co/t/logstash-error-while-starting/61792/1 "2016-09-29T08:40:38Z")

</div>

Hi,

I am facing a logstash issue on starting it.

[amits@localhost bin]$ ./logstash -e 'input { stdin { } } output { stdout {} }'  
LoadError: no such file to load -- logstash/util/wrapped\_synchronous\_queue  
require at org/jruby/RubyKernel.java:1040  
require at /home/amits/ELK/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:65  
(root) at /home/amits/ELK/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/outputs/base.rb:7  
require at org/jruby/RubyKernel.java:1040  
require at /home/amits/ELK/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:65  
(root) at /home/amits/ELK/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:1  
require at org/jruby/RubyKernel.java:1040  
(root) at /home/amits/ELK/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:11  
require at org/jruby/RubyKernel.java:1040  
(root) at /home/amits/ELK/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/agent.rb:1  
call at org/jruby/RubyProc.java:281  
(root) at /home/amits/ELK/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/agent.rb:10  
call at org/jruby/RubyProc.java:281  
(root) at /home/amits/ELK/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/runner.rb:1

Please help me in this regard and explain it also why it is bothering me for .rb files in logstash/util/wrapped\_synchronous\_queue folder.

Actually, their extension is NOT .rb by default its .r and I changed it to .rb, then it is working.

@magnusbaeck: How to resolve this issue?

thanks in advance.

---

<div class="post-metadata">

**Author:** ![amits](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@amits](https://discuss.elastic.co/u/amits)\
**Post date:** [September 29, 2016, 9:05am UTC](https://discuss.elastic.co/t/logstash-error-while-starting/61792/2 "2016-09-29T09:05:43Z")

</div>

Now it is giving following ERROR:

[amits@localhost bin]$ ./logstash -f logstash.conf  
fetched an invalid config {:config=\>"input { stdin { } } output { stdout {} }\n\n", :reason=\>"uninitialized constant LogStash::Util::WrappedSynchronousQueue", :level=\>:error}

What can be the reason?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:36am UTC](https://discuss.elastic.co/t/logstash-error-while-starting/61792/3 "2017-07-06T04:36:27Z")

</div>


