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

getting an error when running a web hook #36

Closed
warroyo opened this issue Jul 31, 2014 · 4 comments
Closed

getting an error when running a web hook #36

warroyo opened this issue Jul 31, 2014 · 4 comments

Comments

@warroyo
Copy link

warroyo commented Jul 31, 2014

here is the error I am getting whenever I run a web hook form gitlab

TypeError - cannot convert instance of class org.jruby.RubyException to class java.lang.Throwable:
org/jruby/RubyMethod.java:130:in call' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/api.rb:53:inprocess_projects'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/api.rb:30:in POST /build_now' org/jruby/RubyMethod.java:118:incall'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:1265:in compile!' org/jruby/RubyProc.java:249:incall'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in route!' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:851:inroute_eval'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in route!' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:872:inprocess_route'
org/jruby/RubyKernel.java:1174:in catch' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:870:inprocess_route'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:834:in route!' org/jruby/RubyArray.java:1613:ineach'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:833:in route!' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:936:indispatch!'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:769:in call!' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:921:ininvoke'
org/jruby/RubyKernel.java:1174:in catch' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:921:ininvoke'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:769:in call!' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:755:incall'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in call' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:incall'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in call' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:incall'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in call' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/rack-1.4.1/lib/rack/nulllogger.rb:9:incall'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/rack-1.4.1/lib/rack/head.rb:9:in call' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/showexceptions.rb:21:incall'
/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:99:in call' /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/root_action.rb:16:incall'
file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-rack-1.1.13.1.jar!/rack/handler/servlet.rb:22:in `call'

@elvanja
Copy link
Owner

elvanja commented Jul 31, 2014

Can you supply more details? E.g. the payload and the URL that has been called from Gitlab? Or even logs?

@warroyo
Copy link
Author

warroyo commented Jul 31, 2014

sure ,

from gitlab my webhook is calling this url:
http://myip:8081/gitlab/build_now
that is my jenkins server(they are on the same server right now)

all I am seeing in the jenkins logs are what I have provided above.

if there is a specific log you would like to see please let me know.

@warroyo
Copy link
Author

warroyo commented Jul 31, 2014

this turned out to be an issue with gitlab not sending a payload. sorry for the confusion.

@warroyo warroyo closed this as completed Jul 31, 2014
@elvanja
Copy link
Owner

elvanja commented Aug 1, 2014

Sure thing :-) Actually this probably means I'll need to add some sort of check and log a nicer message so this kind of issue is resolved faster. Thanks!

javiplx referenced this issue in jenkinsci/gitlab-hook-plugin Feb 23, 2015
Refactor project.matches_branch? prototype
Conflicts:
	models/values/project.rb
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