Alessio Caiazza is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

nolith / redmine-bitbucket

Allow your Redmine installation to be notified when changes have been pushed to a Bitbucket repository.

Clone this repository (size: 55.0 KB): HTTPS / SSH
hg clone https://bitbucket.org/nolith/redmine-bitbucket
hg clone ssh://hg@bitbucket.org/nolith/redmine-bitbucket

Issues

#3 Redmine 500 Internal Server Error.

Reported by mauroartizzu

Ciao Alessio,

I'm trying to install the hook and I'm getting into some problem. I succesfully installed the plugin, restarted redmine and it currently sees it.

Configured a project and linked to a local clone of a bitbucket repository which just works fine. Manual commits and pushes are showed correctly on redmine.

When I try to manually go to http://www.myserver.it/redmine/bitbucket_hook I receive a 500 error and this is what shows up on my logs

Processing BitbucketHookController#index (for xxx.xxx.xxx.xxx at 2011-09-26 22:36:00) [GET]
  Parameters: {"action"=>"index", "controller"=>"bitbucket_hook"}

TypeError (can't convert nil into String):
  json (1.5.1) lib/json/common.rb:148:in `initialize'
  json (1.5.1) lib/json/common.rb:148:in `new'
  json (1.5.1) lib/json/common.rb:148:in `parse'
  vendor/plugins/nolith-redmine-bitbucket/app/controllers/bitbucket_hook_controller.rb:8:in `index'
  config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'

Rendering /opt/redmine-1.2.1-1/apps/redmine/public/500.html (500 Internal Server Error)

Any clues?

Thank you

Status: new Responsible: Alessio Caiazza Type: task Priority: trivial
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 mauroartizzu

    written

    • Changed priority from major to trivial.
    • Changed type from bug to task.

    NVM it works when triggered by the POST...

    Just one thing, It does not fully works because my repo is private. Where do I put in the credentials?

    Thank you

  2. #2 mauroartizzu

    written

    I think I partially solved it. Now it communicates correctly with bitbucket and sends the command right away. The problem is that it does not update the repo. It just pulls it. Think I might add a line on the code like {{{

    1. !bash

    && hg update }}}.

  3. #3 phoenixh

    written

    Hello, i got the same error when going to url "http://ip.of.server/redmine/bitbucket_hook" than i receive a 500 Error.

    The plugin installed and should work.

    Any ideas? Thanks!

  4. #4 Alessio Caiazza

    written

    @phoenixh Maybe you are using redmine >= 1.3

    Today I accepted a pull request that fix issues with redmine 1.3+ so please try to update to the tip and let me know.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?