# Git plugin problems

**URL:** <https://discuss.elastic.co/t/git-plugin-problems/81424>\
**Category:** Logstash\
**Created:** [April 6, 2017, 7:11am UTC](https://discuss.elastic.co/t/git-plugin-problems/81424 "2017-04-06T07:11:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adriannuix](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adriannuix/32/17117_2.png) [@adriannuix](https://discuss.elastic.co/u/adriannuix)\
**Post date:** [April 6, 2017, 7:11am UTC](https://discuss.elastic.co/t/git-plugin-problems/81424/1 "2017-04-06T07:11:21Z")

</div>

I'm trying to use the git plugin but I get:

C:\work\jiras\logstash\ls522\>bin/logstash -f gitlogstash3.conf  
C:\work\development-environment\Tools\GnuWin32\bin\stty.exe: standard input: Function not implemented  
Could not find log4j2 configuration at path /work/jiras/logstash/ls522/config/log4j2.properties. Using default config which logs to console  
16:55:24.136 [[main]-pipeline-manager] INFO logstash.pipeline - Starting pipeline {"id"=\>"main", "pipeline.workers"=\>24, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>5, "pipeline.max\_inflight"=\>3000}  
16:55:24.571 [[main]-pipeline-manager] INFO logstash.pipeline - Pipeline main started  
16:55:24.650 [Api Webserver] INFO logstash.agent - Successfully started Logstash API endpoint {:port=\>9600}  
#\<NoMethodError: undefined method `headers_' for #<FTW::Request:0x322b1385>> C:/work/jiras/logstash/ls522/vendor/bundle/jruby/1.9/gems/logstash-input-github-3.0.1/lib/logstash/inputs/github.rb:32:in`run'  
org/jruby/RubyProc.java:281:in `call' C:/work/jiras/logstash/ls522/vendor/bundle/jruby/1.9/gems/ftw-0.0.45/lib/ftw/webserver.rb:77:in`handle\_request'  
C:/work/jiras/logstash/ls522/vendor/bundle/jruby/1.9/gems/ftw-0.0.45/lib/ftw/webserver.rb:59:in `handle_connection' C:/work/jiras/logstash/ls522/vendor/bundle/jruby/1.9/gems/ftw-0.0.45/lib/ftw/webserver.rb:29:in`run'  
16:58:31.249 [LogStash::Runner] FATAL logstash.runner - An unexpected error occurred! {:error=\>#\<NoMethodError: undefined method `headers_' for #<FTW::Request:0x322b1385>>, :backtrace=>["C:/work/jiras/logstash/ls522/vendor/bundle/jruby/1.9/gems/logstash-input-github-3.0.1/lib/logstash/inputs/github.rb:32:in`run'", "org/jruby/RubyProc.java:281:in `call'", "C:/work/jiras/logstash/ls522/vendor/bundle/jruby/1.9/gems/ftw-0.0.45/lib/ftw/webserver.rb:77:in`handle\_request'", "C:/work/jiras/logstash/ls522/vendor/bundle/jruby/1.9/gems/ftw-0.0.45/lib/ftw/webserver.rb:59:in `handle_connection'", "C:/work/jiras/logstash/ls522/vendor/bundle/jruby/1.9/gems/ftw-0.0.45/lib/ftw/webserver.rb:29:in`run'"]}  
16:58:31.344 [[main]\<github] ERROR logstash.pipeline - A plugin had an unrecoverable error. Will restart this plugin.  
Plugin: \<LogStash::Inputs::GitHub port=\>8083, id=\>"04388f32709d653b85caa29a820e09609393f127-1", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_e1b9d3c3-c580-47f0-9663-ea4eb1f21bfa", enable\_metric=\>true, charset=\>"UTF-8"\>, ip=\>"0.0.0.0", drop\_invalid=\>false\>  
Error: Bad file descriptor - Bad file descriptor

my config is:  
input {  
github {  
port =\> 8083  
}  
}

output {  
stdout {  
codec =\> rubydebug  
}  
}

It's obvious that the plugin get something but it does not seem to be able to parse it. The hook is just listenting for push events at and posts to [http://10.10.12.86:8083/](http://10.10.12.86:8083/)

My webhooks are configured properly to handle events and I can see that working when substituting the logstash git plugin with a web server and checking the logs for the webhooks Posts.

Did anybody get this plugin to listen to git hooks?

The C:\work\development-environment\Tools\GnuWin32\bin\stty.exe: standard input: Function not implemented is a not a problem as I get it everywhere with all my working plugins.

Cheers

---

<div class="post-metadata">

**Author:** ![suyograo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suyograo/32/44898_2.png) [@suyograo](https://discuss.elastic.co/u/suyograo)\
**Post date:** [April 7, 2017, 7:04am UTC](https://discuss.elastic.co/t/git-plugin-problems/81424/2 "2017-04-07T07:04:18Z")

</div>

This has been fixed and a new git plugin v3.0.2 has been published.

---

<div class="post-metadata">

**Author:** ![suyograo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suyograo/32/44898_2.png) [@suyograo](https://discuss.elastic.co/u/suyograo)\
**Post date:** [April 7, 2017, 7:04am UTC](https://discuss.elastic.co/t/git-plugin-problems/81424/3 "2017-04-07T07:04:27Z")

</div>


