Project

General

Profile

Woes Integrating With GitHub

Added by Thomas Jones over 8 years ago

In looking at my logs, it feels like I'm really close. So, hopefully it's something small/stupid I missed. Any way, background:

I'm trying to set up RedMine to integrate with several GitHub projects I'm working on. For now, I've set up a test account on GitHub and enabled the pre-canned web-hook service for RedMine. When I look in my apache logs, I see:

10.0.43.164 - - [14/Dec/2015:22:48:32 +0000] "GET /sys/fetch_changesets?id=private-test-integration&key=XXXXXXXXXX HTTP/1.1" 200 - "-" "GitHub-Hookshot/3a9cbcf"

When I look at my RedMine log, I see plenty of entries that make it look like things are working correctly:
Started GET "/projects/private-test-integration" for 96.231.24.117 at 2015-12-14 22:48:55 +0000
Processing by ProjectsController#show as HTML
  Parameters: {"id"=>"private-test-integration"}
  Current user: admin (id=1)
  Rendered projects/_members_box.html.erb (1.0ms)
  Rendered projects/_sidebar.html.erb (0.4ms)
  Rendered projects/show.html.erb within layouts/base (4.8ms)
Completed 200 OK in 65ms (Views: 16.5ms | ActiveRecord: 28.9ms)

However, when I go to the repository page for my test-repository, I'm not seeing any actual updates to the file lists, graphs, etc. The only way I can seem to force the RedMine-displayed repo contents to update is to manually run my project's hooks/post-receive script (it doesn't appear to be getting executed, otherwise). When I look at my git log output prior to a manual run of my post-receive, it doesn't contain the expected updates. After a manual fetch, the log updates to include the expected content.

My RedMine about information looks like looks like:

# bin/about
/usr/lib64/ruby/gems/2.2.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot" 

sh: darcs: command not found
sh: hg: command not found
sh: cvs: command not found
sh: bzr: command not found
Environment:
  Redmine version                3.1.2.stable
  Ruby version                   2.2.3-p173 (2015-08-18) [x86_64-linux]
  Rails version                  4.2.4
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.7.14
  Git                            1.8.3.1
  Filesystem
  GitRemote                      1.8.3.1
Redmine plugins:
  redmine_git_remote             0.0.1

The above is running on a CentOS 7.1 host with SELINUX (currently) disabled.

So: am I as close as it feels - or am I still off in left field, somewhere? Any way, any suggestions are much appreciated.


Replies (1)

RE: Woes Integrating With GitHub - Added by Ben Blanco over 8 years ago

Hi Thomas,

I recommend to avoid using Github's built-in redmine_hook service. The times I tried it.. it never worked.

Instead, I use https://www.redmine.org/plugins/redmine_github_hook with redmine 3.2.0, & it works perfectly.

    (1-1/1)