"Unknown branch" + "Shit's being weird" messages when building
juandazapata opened this issue · comments
"Unknown branch" and "Shit's being weird"
When
me -> hubot ci setup $organization/$repo
It creates the build task in Jenkins correcty and outputs the work.
When
me -> hubot ci build $repo
hubot -> Unknown branch "master". Push again
hubot -> Can't go HAM on web/master, shit's being weird.
When
me -> hubot ci status $repo/$branch
Doesn't return anything
When
me -> hubot ci status
hubot -> $repo no build Publishing git@github.com:$organization/$repo
Our IT
- Hubot on Heroku
- Janky on Heroku
- Jenkins on Cloudbees
Any thoughts?
Anything in heroku logs
? Hopefully there's a stacktrace in there.
Have you pushed since?
@richoH Yes, I've pushed several times.
@sr Heroku logs tells me this
2012-01-04T15:08:09+00:00 app[web.1]: TypeError - can't convert nil into String:
2012-01-04T15:08:09+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.0/lib/rack/session/cookie.rb:152:in `hexdigest'
2012-01-04T15:08:09+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.0/lib/rack/session/cookie.rb:152:in `generate_hmac'
2012-01-04T15:08:09+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.0/lib/rack/session/cookie.rb:109:in `unpacked_cookie_data'
2012-01-04T15:08:09+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.0/lib/rack/session/abstract/id.rb:43:in `load_session_id!'
2012-01-04T15:08:09+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.0/lib/rack/session/cookie.rb:99:in `extract_session_id'
2012-01-04T15:08:09+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.0/lib/rack/session/abstract/id.rb:32:in `[]'
2012-01-04T15:08:09+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.0/lib/rack/session/abstract/id.rb:262:in `current_session_id'
2012-01-04T15:08:09+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.0/lib/rack/session/abstract/id.rb:268:in `session_exists?'
2012-01-04T15:08:09+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.0/lib/rack/session/abstract/id.rb:107:in `exists?'
2012-01-04T15:08:09+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.0/lib/rack/session/abstract/id.rb:122:in `load_for_read!'
2012-01-04T15:08:09+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.0/lib/rack/session/abstract/id.rb:64:in `has_key?'
However the JANKY_SESSION_SECRET
is setted up.
Any ideas?
@juandazapata Is that when hitting the dashboard? Receiving a post-receive hook from GitHub shouldn't involve any session business. Maybe try to tail the log with heroku logs -t
and hit "Test Hook" in on GitHub.
@sr I'm not getting the TypeError - can't convert nil into String:
anymore.
However it's still not working...when I hit "Test Hook" the log says:
2012-01-05T15:24:27+00:00 heroku[router]: Error H13 (Connection closed without response) -> POST janky.herokuapp.com/_github dyno=web.1 queue= wait= service= status=503 bytes=
Also I noticed that my Hubot logs says this when I run hubot ci status repo/branch
:
2012-01-05T15:30:18+00:00 app[app.1]: [Thu, 05 Jan 2012 15:30:18 GMT] ERROR Campfire error: 422
@juandazapata The heroku[router]
error means the app is throwing an exception. You should see something similar to the TypeError - can't convert nil into String
error you were getting earlier.
The hubot error is probably unrelated.
@sr Just after a git push I see the following on the Janky log:
2012-01-06T16:13:43+00:00 heroku[router]: Error H13 (Connection closed without response) -> POST janky.herokuapp.com/_hubot/repo/branch dyno=web.1 queue= wait= service= status=503 bytes= 2012-01-06T16:13:43+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/janky-0.9.0/lib/janky/build.rb:105:in 'rerun'
Double check the JANKY_BUILDER_DEFAULT
setting. It should look something like this: http://user:password@jenkins-ip
. Are you on IRC maybe? Should be easier to debug things on IM.
@sr Yes, the JANKY_BUILDER_DEFAULT
is correct.
Let's chat over IRC, I'm on FreeNode on the #jenkins room (juanda)
I'm having the same problem and it being solved over IRC isn't going to be of much help.. What was the problem?
JANKY_BUILDER_DEFAULT
was missing a trailing slash