phlegx / redmine_gitlab_hook

This plugin allows you to update your local Git repositories in Redmine when changes have been pushed to GitLab.
MIT License
218 stars 73 forks source link

hook message Page not found #2

Closed kitsos closed 9 years ago

kitsos commented 10 years ago
Redmine 404 error

Page not found

The page you were trying to access doesn't exist or has been removed.

Back

I am getting this error when i am doing the post receive. Is there any hint on what point i am doing something wrong.

I follow all your instructions in Bitnami Redmine Stack. Have you ever try to run it in that installation? Any suggestion would be appreciated.

Kind regards, K.

henrylau commented 10 years ago

Same problem

donnykurnia commented 10 years ago

If you want to test it, use curl and pass the parameters using -d so curl do POST request:

curl 'http://redmine.server/gitlab_hook' -d 'project_id=[redmine-project-identifier]&key=[api-key]'

You should get OK response.

phlegx commented 10 years ago

Is this issue solved? Thank you @donnykurnia for the test example.

kitsos commented 10 years ago

I am going to test it tomorrow and i ll give you my feedback on this issue. Thank you in advance for your answers.

Kind Regards, K.

kitsos commented 10 years ago

even with curl i am getting the same internal error. Thnx anyway.

phlegx commented 10 years ago

Can you post the part of the log file with the error? What is your Redmine version? Have you activated the Web service in Redmine and created the Web service key?

kitsos commented 10 years ago

Environment: Redmine version 2.4.1.stable Ruby version 1.9.3-p484 (2013-11-22) [x86_64-linux] Rails version 3.2.15 Environment production Database adapter Mysql2 SCM: Subversion 1.6.17 Mercurial 2.0.2 Cvs 1.12.13 Git 1.8.5.4 Filesystem
Redmine plugins: redmine_gitlab_hook 0.0.1

I use the bitnami version. Yes i have activated the WS and created WS API key But after uninstall and reinstall the redmine_hook_plugin instead of getting this 500 Internal Error when i am doing curl, now hen i am doing curl i am geting this message "Access denied. Repository management WS is disabled or key is invalid." But WS is ENABLED and key exists. In addition, after reinstall i am getting internal error when trying to access plugin configuration page in redmine web interface (Administration->plugins->configure)

I follow exactly the intructions of your installation manual and exactly the bitnami plugin installation instructions on installing your plugin(http://wiki.bitnami.com/Applications/BitNami_Redmine#How_to_install_a_plugin_on_Redmine.3f), i doublechecked and nothing has been done wrong in this procedure. So i cannot understand why it is not working.

Kind Regards, K.

Logs from production log:

Started GET "/redmine/settings/plugin/redmine_gitlab_hook" for 83.212.140.124 at 2014-02-12 13:16:02 +0200 Processing by SettingsController#plugin as HTML Parameters: {"id"=>"redmine_gitlab_hook"} Current user: admin (id=1) Rendered plugins/redmine_gitlab_hook/app/views/settings/_gitlab_settings.html (0.7ms) Rendered settings/plugin.html.erb within layouts/admin (1.4ms) Completed 500 Internal Server Error in 3.5ms

ActionView::Template::Error (can't convert Symbol into Integer): 2: <%= l(:git_pull_type) %>^M 3:

^M 4: <%= content_tag(:label, l(:all_branches)) %>^M 5: <%= check_box_tag("settings[all_branches]", "yes", Setting.plugin_redmine_gitlab_hook[:all_branches] == "yes" ) %>^M 6:

^M 7: ^M app/views/settings/plugin.html.erb:6:in block in _app_views_settings_plugin_html_erb__2075783793949946105_63833600' app/views/settings/plugin.html.erb:4:in_app_views_settings_plugin_html_erb__2075783793949946105_63833600'

phlegx commented 10 years ago

Is the rails plugin route present in your redmine environment? You can check it with a console:

$ cd [REDMINE_DIR]
redmine$ RAILS_ENV=production rake routes

Re-check the WS config on Redmine (WS on repository settings!!!)

kitsos commented 10 years ago

the settings page settings1 the plugin page error configure the output of RAILS_ENV=production rake routes

                              home              /                                                                                 welcome#index
                            signin GET|POST     /login(.:format)                                                                  account#login
                           signout GET|POST     /logout(.:format)                                                                 account#logout
                          register GET|POST     /account/register(.:format)                                                       account#register
                     lost_password GET|POST     /account/lost_password(.:format)                                                  account#lost_password
                  account_activate GET          /account/activate(.:format)                                                       account#activate
                  activation_email GET          /account/activation_email(.:format)                                               account#activation_email
                      preview_news GET|POST|PUT /news/preview(.:format)                                                           previews#news
                 preview_new_issue GET|POST|PUT /issues/preview/new/:project_id(.:format)                                         previews#issue
                preview_edit_issue GET|POST|PUT /issues/preview/edit/:id(.:format)                                                previews#issue
                     preview_issue GET|POST|PUT /issues/preview(.:format)                                                         previews#issue
                                   POST         /projects/:id/wiki(.:format)                                                      wikis#edit
                                   GET|POST     /projects/:id/wiki/destroy(.:format)                                              wikis#destroy
                 new_board_message GET|POST     /boards/:board_id/topics/new(.:format)                                            messages#new
                     board_message GET          /boards/:board_id/topics/:id(.:format)                                            messages#show
                                   GET|POST     /boards/:board_id/topics/quote/:id(.:format)                                      messages#quote
                                   GET          /boards/:board_id/topics/:id/edit(.:format)                                       messages#edit
             preview_board_message POST         /boards/:board_id/topics/preview(.:format)                                        messages#preview
                                   POST         /boards/:board_id/topics/:id/replies(.:format)                                    messages#reply
                                   POST         /boards/:board_id/topics/:id/edit(.:format)                                       messages#edit
                                   POST         /boards/:board_id/topics/:id/destroy(.:format)                                    messages#destroy
              auto_complete_issues GET          /issues/auto_complete(.:format)                                                   auto_completes#issues
               issues_context_menu GET|POST     /issues/context_menu(.:format)                                                    context_menus#issues
                     issue_changes GET          /issues/changes(.:format)                                                         journals#index
                      quoted_issue POST         /issues/:id/quoted(.:format)                                                      journals#new {:id=>/\d+/}
                                   GET          /journals/diff/:id(.:format)                                                      journals#diff {:id=>/\d+/}
                                   GET|POST     /journals/edit/:id(.:format)                                                      journals#edit {:id=>/\d+/}
                     project_gantt GET          /projects/:project_id/issues/gantt(.:format)                                      gantts#show
                      issues_gantt GET          /issues/gantt(.:format)                                                           gantts#show
                  project_calendar GET          /projects/:project_id/issues/calendar(.:format)                                   calendars#show
                   issues_calendar GET          /issues/calendar(.:format)                                                        calendars#show
             project_issues_report GET          /projects/:id/issues/report(.:format)                                             reports#issue_report
     project_issues_report_details GET          /projects/:id/issues/report/:detail(.:format)                                     reports#issue_report_details
                        my_account GET|POST     /my/account(.:format)                                                             my#account
                my_account_destroy GET|POST     /my/account/destroy(.:format)                                                     my#destroy
                           my_page GET          /my/page(.:format)                                                                my#page
                                my GET          /my(.:format)                                                                     my#index
                  my_reset_rss_key POST         /my/reset_rss_key(.:format)                                                       my#reset_rss_key
                  my_reset_api_key POST         /my/reset_api_key(.:format)                                                       my#reset_api_key
                       my_password GET|POST     /my/password(.:format)                                                            my#password
                    my_page_layout GET          /my/page_layout(.:format)                                                         my#page_layout
                      my_add_block POST         /my/add_block(.:format)                                                           my#add_block
                   my_remove_block POST         /my/remove_block(.:format)                                                        my#remove_block
                   my_order_blocks POST         /my/order_blocks(.:format)                                                        my#order_blocks
                             users GET          /users(.:format)                                                                  users#index
                                   POST         /users(.:format)                                                                  users#create
                          new_user GET          /users/new(.:format)                                                              users#new
                         edit_user GET          /users/:id/edit(.:format)                                                         users#edit
                              user GET          /users/:id(.:format)                                                              users#show
                                   PUT          /users/:id(.:format)                                                              users#update
                                   DELETE       /users/:id(.:format)                                                              users#destroy
                   user_membership PUT          /users/:id/memberships/:membership_id(.:format)                                   users#edit_membership
                                   DELETE       /users/:id/memberships/:membership_id(.:format)                                   users#destroy_membership
                  user_memberships POST         /users/:id/memberships(.:format)                                                  users#edit_membership
                             watch POST         /watchers/watch(.:format)                                                         watchers#watch
                    watchers_watch DELETE       /watchers/watch(.:format)                                                         watchers#unwatch
                      watchers_new GET          /watchers/new(.:format)                                                           watchers#new
                          watchers POST         /watchers(.:format)                                                               watchers#create
                   watchers_append POST         /watchers/append(.:format)                                                        watchers#append
                                   DELETE       /watchers(.:format)                                                               watchers#destroy
    watchers_autocomplete_for_user GET          /watchers/autocomplete_for_user(.:format)                                         watchers#autocomplete_for_user
                                   POST         /issues/:object_id/watchers(.:format)                                             watchers#create {:object_type=>"issue"}
                                   DELETE       /issues/:object_id/watchers/:user_id(.:format)                                    watchers#destroy {:object_type=>"issue"}
                  settings_project GET          /projects/:id/settings(/:tab)(.:format)                                           projects#settings
                   modules_project POST         /projects/:id/modules(.:format)                                                   projects#modules
                   archive_project POST         /projects/:id/archive(.:format)                                                   projects#archive
                 unarchive_project POST         /projects/:id/unarchive(.:format)                                                 projects#unarchive
                     close_project POST         /projects/:id/close(.:format)                                                     projects#close
                    reopen_project POST         /projects/:id/reopen(.:format)                                                    projects#reopen
                      copy_project GET|POST     /projects/:id/copy(.:format)                                                      projects#copy
  autocomplete_project_memberships GET          /projects/:project_id/memberships/autocomplete(.:format)                          members#autocomplete
               project_memberships GET          /projects/:project_id/memberships(.:format)                                       members#index
                                   POST         /projects/:project_id/memberships(.:format)                                       members#create
            new_project_membership GET          /projects/:project_id/memberships/new(.:format)                                   members#new
                        membership GET          /memberships/:id(.:format)                                                        members#show
                                   PUT          /memberships/:id(.:format)                                                        members#update
                                   DELETE       /memberships/:id(.:format)                                                        members#destroy
              project_enumerations PUT          /projects/:project_id/enumerations(.:format)                                      project_enumerations#update
                                   DELETE       /projects/:project_id/enumerations(.:format)                                      project_enumerations#destroy
                project_copy_issue GET          /projects/:project_id/issues/:copy_from/copy(.:format)                            issues#new
 report_project_issue_time_entries GET          /projects/:project_id/issues/:issue_id/time_entries/report(.:format)              timelog#report
        project_issue_time_entries GET          /projects/:project_id/issues/:issue_id/time_entries(.:format)                     timelog#index
                                   POST         /projects/:project_id/issues/:issue_id/time_entries(.:format)                     timelog#create
      new_project_issue_time_entry GET          /projects/:project_id/issues/:issue_id/time_entries/new(.:format)                 timelog#new
     edit_project_issue_time_entry GET          /projects/:project_id/issues/:issue_id/time_entries/:id/edit(.:format)            timelog#edit
          project_issue_time_entry GET          /projects/:project_id/issues/:issue_id/time_entries/:id(.:format)                 timelog#show
                                   PUT          /projects/:project_id/issues/:issue_id/time_entries/:id(.:format)                 timelog#update
                                   DELETE       /projects/:project_id/issues/:issue_id/time_entries/:id(.:format)                 timelog#destroy
                    project_issues GET          /projects/:project_id/issues(.:format)                                            issues#index
                                   POST         /projects/:project_id/issues(.:format)                                            issues#create
                 new_project_issue GET          /projects/:project_id/issues/new(.:format)                                        issues#new
                project_issue_form PUT|POST     /projects/:project_id/issues/update_form(.:format)                                issues#update_form
                     project_files GET          /projects/:project_id/files(.:format)                                             files#index
                                   POST         /projects/:project_id/files(.:format)                                             files#create
                  new_project_file GET          /projects/:project_id/files/new(.:format)                                         files#new
  close_completed_project_versions PUT          /projects/:project_id/versions/close_completed(.:format)                          versions#close_completed
                  project_versions POST         /projects/:project_id/versions(.:format)                                          versions#create
               new_project_version GET          /projects/:project_id/versions/new(.:format)                                      versions#new
                                   GET          /projects/:project_id/versions.:format                                            versions#index
                   project_roadmap GET          /projects/:project_id/roadmap                                                     versions#index
                                   GET          /projects/:project_id/versions(.:format)                                          versions#index
                project_news_index GET          /projects/:project_id/news(.:format)                                              news#index
                                   POST         /projects/:project_id/news(.:format)                                              news#create
                  new_project_news GET          /projects/:project_id/news/new(.:format)                                          news#new
       report_project_time_entries GET          /projects/:project_id/time_entries/report(.:format)                               timelog#report
              project_time_entries GET          /projects/:project_id/time_entries(.:format)                                      timelog#index
                                   POST         /projects/:project_id/time_entries(.:format)                                      timelog#create
            new_project_time_entry GET          /projects/:project_id/time_entries/new(.:format)                                  timelog#new
           edit_project_time_entry GET          /projects/:project_id/time_entries/:id/edit(.:format)                             timelog#edit
                project_time_entry GET          /projects/:project_id/time_entries/:id(.:format)                                  timelog#show
                                   PUT          /projects/:project_id/time_entries/:id(.:format)                                  timelog#update
                                   DELETE       /projects/:project_id/time_entries/:id(.:format)                                  timelog#destroy
                   project_queries POST         /projects/:project_id/queries(.:format)                                           queries#create
                 new_project_query GET          /projects/:project_id/queries/new(.:format)                                       queries#new
          project_issue_categories GET          /projects/:project_id/issue_categories(.:format)                                  issue_categories#index
                                   POST         /projects/:project_id/issue_categories(.:format)                                  issue_categories#create
        new_project_issue_category GET          /projects/:project_id/issue_categories/new(.:format)                              issue_categories#new
               edit_issue_category GET          /issue_categories/:id/edit(.:format)                                              issue_categories#edit
                    issue_category GET          /issue_categories/:id(.:format)                                                   issue_categories#show
                                   PUT          /issue_categories/:id(.:format)                                                   issue_categories#update
                                   DELETE       /issue_categories/:id(.:format)                                                   issue_categories#destroy
                 project_documents GET          /projects/:project_id/documents(.:format)                                         documents#index
                                   POST         /projects/:project_id/documents(.:format)                                         documents#create
              new_project_document GET          /projects/:project_id/documents/new(.:format)                                     documents#new
                    project_boards GET          /projects/:project_id/boards(.:format)                                            boards#index
                                   POST         /projects/:project_id/boards(.:format)                                            boards#create
                 new_project_board GET          /projects/:project_id/boards/new(.:format)                                        boards#new
                edit_project_board GET          /projects/:project_id/boards/:id/edit(.:format)                                   boards#edit
                     project_board GET          /projects/:project_id/boards/:id(.:format)                                        boards#show
                                   PUT          /projects/:project_id/boards/:id(.:format)                                        boards#update
                                   DELETE       /projects/:project_id/boards/:id(.:format)                                        boards#destroy
             committers_repository GET|POST     /repositories/:id/committers(.:format)                                            repositories#committers
              project_repositories POST         /projects/:project_id/repositories(.:format)                                      repositories#create
            new_project_repository GET          /projects/:project_id/repositories/new(.:format)                                  repositories#new
                   edit_repository GET          /repositories/:id/edit(.:format)                                                  repositories#edit
                        repository PUT          /repositories/:id(.:format)                                                       repositories#update
                                   DELETE       /repositories/:id(.:format)                                                       repositories#destroy
                project_wiki_index GET          /projects/:project_id/wiki/index(.:format)                                        wiki#index
          rename_project_wiki_page GET          /projects/:project_id/wiki/:id/rename(.:format)                                   wiki#rename
                                   POST         /projects/:project_id/wiki/:id/rename(.:format)                                   wiki#rename
         history_project_wiki_page GET          /projects/:project_id/wiki/:id/history(.:format)                                  wiki#history
            diff_project_wiki_page GET          /projects/:project_id/wiki/:id/diff(.:format)                                     wiki#diff
         preview_project_wiki_page POST|PUT     /projects/:project_id/wiki/:id/preview(.:format)                                  wiki#preview
         protect_project_wiki_page POST         /projects/:project_id/wiki/:id/protect(.:format)                                  wiki#protect
  add_attachment_project_wiki_page POST         /projects/:project_id/wiki/:id/add_attachment(.:format)                           wiki#add_attachment
    export_project_wiki_page_index GET          /projects/:project_id/wiki/export(.:format)                                       wiki#export
date_index_project_wiki_page_index GET          /projects/:project_id/wiki/date_index(.:format)                                   wiki#date_index
            edit_project_wiki_page GET          /projects/:project_id/wiki/:id/edit(.:format)                                     wiki#edit
                 project_wiki_page GET          /projects/:project_id/wiki/:id(.:format)                                          wiki#show
                                   PUT          /projects/:project_id/wiki/:id(.:format)                                          wiki#update
                                   DELETE       /projects/:project_id/wiki/:id(.:format)                                          wiki#destroy
                      project_wiki GET          /projects/:project_id/wiki(.:format)                                              wiki#show
                                   GET          /projects/:project_id/wiki/:id/:version(.:format)                                 wiki#show {:version=>/\d+/}
                                   DELETE       /projects/:project_id/wiki/:id/:version(.:format)                                 wiki#destroy_version
                                   GET          /projects/:project_id/wiki/:id/:version/annotate(.:format)                        wiki#annotate
                                   GET          /projects/:project_id/wiki/:id/:version/diff(.:format)                            wiki#diff
                          projects GET          /projects(.:format)                                                               projects#index
                                   POST         /projects(.:format)                                                               projects#create
                       new_project GET          /projects/new(.:format)                                                           projects#new
                      edit_project GET          /projects/:id/edit(.:format)                                                      projects#edit
                           project GET          /projects/:id(.:format)                                                           projects#show
                                   PUT          /projects/:id(.:format)                                                           projects#update
                                   DELETE       /projects/:id(.:format)                                                           projects#destroy
                  bulk_edit_issues GET|POST     /issues/bulk_edit(.:format)                                                       issues#bulk_edit
                bulk_update_issues POST         /issues/bulk_update(.:format)                                                     issues#bulk_update
         report_issue_time_entries GET          /issues/:issue_id/time_entries/report(.:format)                                   timelog#report
                issue_time_entries GET          /issues/:issue_id/time_entries(.:format)                                          timelog#index
                                   POST         /issues/:issue_id/time_entries(.:format)                                          timelog#create
              new_issue_time_entry GET          /issues/:issue_id/time_entries/new(.:format)                                      timelog#new
             edit_issue_time_entry GET          /issues/:issue_id/time_entries/:id/edit(.:format)                                 timelog#edit
                  issue_time_entry GET          /issues/:issue_id/time_entries/:id(.:format)                                      timelog#show
                                   PUT          /issues/:issue_id/time_entries/:id(.:format)                                      timelog#update
                                   DELETE       /issues/:issue_id/time_entries/:id(.:format)                                      timelog#destroy
                   issue_relations GET          /issues/:issue_id/relations(.:format)                                             issue_relations#index
                                   POST         /issues/:issue_id/relations(.:format)                                             issue_relations#create
                          relation GET          /relations/:id(.:format)                                                          issue_relations#show
                                   DELETE       /relations/:id(.:format)                                                          issue_relations#destroy
                            issues GET          /issues(.:format)                                                                 issues#index
                                   POST         /issues(.:format)                                                                 issues#create
                         new_issue GET          /issues/new(.:format)                                                             issues#new
                        edit_issue GET          /issues/:id/edit(.:format)                                                        issues#edit
                             issue GET          /issues/:id(.:format)                                                             issues#show
                                   PUT          /issues/:id(.:format)                                                             issues#update
                                   DELETE       /issues/:id(.:format)                                                             issues#destroy
                                   DELETE       /issues(.:format)                                                                 issues#destroy
                           queries GET          /queries(.:format)                                                                queries#index
                                   POST         /queries(.:format)                                                                queries#create
                         new_query GET          /queries/new(.:format)                                                            queries#new
                        edit_query GET          /queries/:id/edit(.:format)                                                       queries#edit
                             query PUT          /queries/:id(.:format)                                                            queries#update
                                   DELETE       /queries/:id(.:format)                                                            queries#destroy
                        news_index GET          /news(.:format)                                                                   news#index
                         edit_news GET          /news/:id/edit(.:format)                                                          news#edit
                              news GET          /news/:id(.:format)                                                               news#show
                                   PUT          /news/:id(.:format)                                                               news#update
                                   DELETE       /news/:id(.:format)                                                               news#destroy
                                   POST         /news/:id/comments(.:format)                                                      comments#create
                                   DELETE       /news/:id/comments/:comment_id(.:format)                                          comments#destroy
                 status_by_version POST         /versions/:id/status_by(.:format)                                                 versions#status_by
                      edit_version GET          /versions/:id/edit(.:format)                                                      versions#edit
                           version GET          /versions/:id(.:format)                                                           versions#show
                                   PUT          /versions/:id(.:format)                                                           versions#update
                                   DELETE       /versions/:id(.:format)                                                           versions#destroy
           add_attachment_document POST         /documents/:id/add_attachment(.:format)                                           documents#add_attachment
                     edit_document GET          /documents/:id/edit(.:format)                                                     documents#edit
                          document GET          /documents/:id(.:format)                                                          documents#show
                                   PUT          /documents/:id(.:format)                                                          documents#update
                                   DELETE       /documents/:id(.:format)                                                          documents#destroy
         time_entries_context_menu GET|POST     /time_entries/context_menu(.:format)                                              context_menus#time_entries
               report_time_entries GET          /time_entries/report(.:format)                                                    timelog#report
            bulk_edit_time_entries GET          /time_entries/bulk_edit(.:format)                                                 timelog#bulk_edit
          bulk_update_time_entries POST         /time_entries/bulk_update(.:format)                                               timelog#bulk_update
                      time_entries GET          /time_entries(.:format)                                                           timelog#index
                                   POST         /time_entries(.:format)                                                           timelog#create
                    new_time_entry GET          /time_entries/new(.:format)                                                       timelog#new
                   edit_time_entry GET          /time_entries/:id/edit(.:format)                                                  timelog#edit
                        time_entry GET          /time_entries/:id(.:format)                                                       timelog#show
                                   PUT          /time_entries/:id(.:format)                                                       timelog#update
                                   DELETE       /time_entries/:id(.:format)                                                       timelog#destroy {:id=>/\d+/}
              time_entries_destroy DELETE       /time_entries/destroy(.:format)                                                   timelog#destroy
                                   GET          /projects/:id/activity(.:format)                                                  activities#index
                                   GET          /projects/:id/activity.:format                                                    activities#index
                          activity GET          /activity(.:format)                                                               activities#index
                                   GET          /projects/:id/repository/:repository_id/statistics(.:format)                      repositories#stats
                                   GET          /projects/:id/repository/:repository_id/graph(.:format)                           repositories#graph
                                   GET          /projects/:id/repository/:repository_id/changes(/*path(.:ext))(.:format)          repositories#changes
                                   GET          /projects/:id/repository/:repository_id/revisions/:rev(.:format)                  repositories#revision
                                   GET          /projects/:id/repository/:repository_id/revision(.:format)                        repositories#revision
                                   POST         /projects/:id/repository/:repository_id/revisions/:rev/issues(.:format)           repositories#add_related_issue
                                   DELETE       /projects/:id/repository/:repository_id/revisions/:rev/issues/:issue_id(.:format) repositories#remove_related_issue
                                   GET          /projects/:id/repository/:repository_id/revisions(.:format)                       repositories#revisions
                                   GET          /projects/:id/repository/:repository_id/revisions/:rev/:action(/*path(.:ext))     repositories#(?-mix:(browse|show|entry|raw|annotate|diff)) {:rev=>/[a-z0-9\.\-_]+/}
                                   GET          /projects/:id/repository/statistics(.:format)                                     repositories#stats
                                   GET          /projects/:id/repository/graph(.:format)                                          repositories#graph
                                   GET          /projects/:id/repository/changes(/*path(.:ext))(.:format)                         repositories#changes
                                   GET          /projects/:id/repository/revisions(.:format)                                      repositories#revisions
                                   GET          /projects/:id/repository/revisions/:rev(.:format)                                 repositories#revision
                                   GET          /projects/:id/repository/revision(.:format)                                       repositories#revision
                                   POST         /projects/:id/repository/revisions/:rev/issues(.:format)                          repositories#add_related_issue
                                   DELETE       /projects/:id/repository/revisions/:rev/issues/:issue_id(.:format)                repositories#remove_related_issue
                                   GET          /projects/:id/repository/revisions/:rev/:action(/*path(.:ext))                    repositories#(?-mix:(browse|show|entry|raw|annotate|diff)) {:rev=>/[a-z0-9\.\-_]+/}
                                   GET          /projects/:id/repository/:repository_id/:action(/*path(.:ext))(.:format)          repositories#(?-mix:(browse|show|entry|raw|changes|annotate|diff))
                                   GET          /projects/:id/repository/:action(/*path(.:ext))(.:format)                         repositories#(?-mix:(browse|show|entry|raw|changes|annotate|diff))
                                   GET          /projects/:id/repository/:repository_id(.:format)                                 repositories#show
                                   GET          /projects/:id/repository(.:format)                                                repositories#show
                  named_attachment GET          /attachments/:id/:filename(.:format)                                              attachments#show {:id=>/\d+/, :filename=>/.*/}
         download_named_attachment GET          /attachments/download/:id/:filename(.:format)                                     attachments#download {:id=>/\d+/, :filename=>/.*/}
                                   GET          /attachments/download/:id(.:format)                                               attachments#download {:id=>/\d+/}
                         thumbnail GET          /attachments/thumbnail/:id(/:size)(.:format)                                      attachments#thumbnail {:id=>/\d+/, :size=>/\d+/}
                        attachment GET          /attachments/:id(.:format)                                                        attachments#show
                                   DELETE       /attachments/:id(.:format)                                                        attachments#destroy
       autocomplete_for_user_group GET          /groups/:id/autocomplete_for_user(.:format)                                       groups#autocomplete_for_user
                            groups GET          /groups(.:format)                                                                 groups#index
                                   POST         /groups(.:format)                                                                 groups#create
                         new_group GET          /groups/new(.:format)                                                             groups#new
                        edit_group GET          /groups/:id/edit(.:format)                                                        groups#edit
                             group GET          /groups/:id(.:format)                                                             groups#show
                                   PUT          /groups/:id(.:format)                                                             groups#update
                                   DELETE       /groups/:id(.:format)                                                             groups#destroy
                       group_users POST         /groups/:id/users(.:format)                                                       groups#add_users {:id=>/\d+/}
                        group_user DELETE       /groups/:id/users/:user_id(.:format)                                              groups#remove_user {:id=>/\d+/}
                                   POST         /groups/destroy_membership/:id(.:format)                                          groups#destroy_membership {:id=>/\d+/}
                                   POST         /groups/edit_membership/:id(.:format)                                             groups#edit_membership {:id=>/\d+/}
                   fields_trackers GET|POST     /trackers/fields(.:format)                                                        trackers#fields
                          trackers GET          /trackers(.:format)                                                               trackers#index
                                   POST         /trackers(.:format)                                                               trackers#create
                       new_tracker GET          /trackers/new(.:format)                                                           trackers#new
                      edit_tracker GET          /trackers/:id/edit(.:format)                                                      trackers#edit
                           tracker PUT          /trackers/:id(.:format)                                                           trackers#update
                                   DELETE       /trackers/:id(.:format)                                                           trackers#destroy

update_issue_done_ratio_issue_statuses POST /issue_statuses/update_issue_done_ratio(.:format) issue_statuses#update_issue_done_ratio issue_statuses GET /issue_statuses(.:format) issue_statuses#index POST /issue_statuses(.:format) issue_statuses#create new_issue_status GET /issue_statuses/new(.:format) issue_statuses#new edit_issue_status GET /issue_statuses/:id/edit(.:format) issue_statuses#edit issue_status PUT /issue_statuses/:id(.:format) issue_statuses#update DELETE /issue_statuses/:id(.:format) issue_statuses#destroy custom_fields GET /custom_fields(.:format) custom_fields#index POST /custom_fields(.:format) custom_fields#create new_custom_field GET /custom_fields/new(.:format) custom_fields#new edit_custom_field GET /custom_fields/:id/edit(.:format) custom_fields#edit custom_field PUT /custom_fields/:id(.:format) custom_fields#update DELETE /custom_fields/:id(.:format) custom_fields#destroy permissions_roles GET|POST /roles/permissions(.:format) roles#permissions roles GET /roles(.:format) roles#index POST /roles(.:format) roles#create new_role GET /roles/new(.:format) roles#new edit_role GET /roles/:id/edit(.:format) roles#edit role GET /roles/:id(.:format) roles#show PUT /roles/:id(.:format) roles#update DELETE /roles/:id(.:format) roles#destroy enumerations GET /enumerations(.:format) enumerations#index POST /enumerations(.:format) enumerations#create new_enumeration GET /enumerations/new(.:format) enumerations#new edit_enumeration GET /enumerations/:id/edit(.:format) enumerations#edit enumeration PUT /enumerations/:id(.:format) enumerations#update DELETE /enumerations/:id(.:format) enumerations#destroy GET /enumerations/:type(.:format) enumerations#index GET /projects/:id/search(.:format) search#index search GET /search(.:format) search#index mail_handler POST /mail_handler(.:format) mail_handler#index admin GET /admin(.:format) admin#index admin_projects GET /admin/projects(.:format) admin#projects admin_plugins GET /admin/plugins(.:format) admin#plugins admin_info GET /admin/info(.:format) admin#info admin_test_email GET /admin/test_email(.:format) admin#test_email admin_default_configuration POST /admin/default_configuration(.:format) admin#default_configuration try_connection_auth_source GET /auth_sources/:id/test_connection(.:format) auth_sources#test_connection autocomplete_for_new_user_auth_sources GET /auth_sources/autocomplete_for_new_user(.:format) auth_sources#autocomplete_for_new_user auth_sources GET /auth_sources(.:format) auth_sources#index POST /auth_sources(.:format) auth_sources#create new_auth_source GET /auth_sources/new(.:format) auth_sources#new edit_auth_source GET /auth_sources/:id/edit(.:format) auth_sources#edit auth_source GET /auth_sources/:id(.:format) auth_sources#show PUT /auth_sources/:id(.:format) auth_sources#update DELETE /auth_sources/:id(.:format) auth_sources#destroy workflows GET /workflows(.:format) workflows#index workflows_edit GET|POST /workflows/edit(.:format) workflows#edit workflows_permissions GET|POST /workflows/permissions(.:format) workflows#permissions workflows_copy GET|POST /workflows/copy(.:format) workflows#copy settings GET /settings(.:format) settings#index settings_edit GET|POST /settings/edit(.:format) settings#edit plugin_settings GET|POST /settings/plugin/:id(.:format) settings#plugin sys_projects GET /sys/projects(.:format) sys#projects POST /sys/projects/:id/repository(.:format) sys#create_project_repository sys_fetch_changesets GET /sys/fetch_changesets(.:format) sys#fetch_changesets uploads POST /uploads(.:format) attachments#upload GET /robots.txt(.:format) welcome#robots gitlab_hook POST /gitlab_hook(.:format) gitlab_hook#index GET /gitlab_hook(.:format) gitlab_hook#index

shikarishambu commented 10 years ago

I am getting the same error as @kitsos with my bitnami install, too

punkrokk commented 10 years ago

I "think" I'm also getting the same error but with GitLab.

phlegx commented 10 years ago

@kitsos @shikarishambu @shikarishambu what is in your log file?

In your console input:

$ tail -f /[REDMINE]/[INSTALLATION]/log/[ENVIRONMENT].log

And open the plugin config URL. What is the output in the log?

yapengwu commented 10 years ago

I have the same error, here is the log content, I replaced project id and key with 'xxxx' after paste:

Started GET "/redmine/gitlab_hook?project_id=xxx&key=xxxx" for 127.0.0.1 at 2014-04-06 19:06:51 -0400
Processing by GitlabHookController#index as */*
  Parameters: {"project_id"=>"xxx", "key"=>"xxxxx"}
Completed 404 Not Found in 0.3ms

ActionController::RoutingError (Not Found):
  plugins/redmine_gitlab_hook/app/controllers/gitlab_hook_controller.rb:22:in `index'
  actionpack (3.2.17) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
  actionpack (3.2.17) lib/abstract_controller/base.rb:167:in `process_action'
  actionpack (3.2.17) lib/action_controller/metal/rendering.rb:10:in `process_action'
  actionpack (3.2.17) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
  activesupport (3.2.17) lib/active_support/callbacks.rb:414:in `_run__4341036754088318999__process_action__33843779081727686__callbacks'
  activesupport (3.2.17) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.17) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
  activesupport (3.2.17) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.17) lib/abstract_controller/callbacks.rb:17:in `process_action'
  actionpack (3.2.17) lib/action_controller/metal/rescue.rb:29:in `process_action'
  actionpack (3.2.17) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
  activesupport (3.2.17) lib/active_support/notifications.rb:123:in `block in instrument'
  activesupport (3.2.17) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  activesupport (3.2.17) lib/active_support/notifications.rb:123:in `instrument'
  actionpack (3.2.17) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
  actionpack (3.2.17) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
  activerecord (3.2.17) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  actionpack (3.2.17) lib/abstract_controller/base.rb:121:in `process'
  actionpack (3.2.17) lib/abstract_controller/rendering.rb:45:in `process'
  actionpack (3.2.17) lib/action_controller/metal.rb:203:in `dispatch'
  actionpack (3.2.17) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
  actionpack (3.2.17) lib/action_controller/metal.rb:246:in `block in action'
  actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:73:in `call'
  actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
  actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:36:in `call'
  journey (1.0.4) lib/journey/router.rb:68:in `block in call'
  journey (1.0.4) lib/journey/router.rb:56:in `each'
  journey (1.0.4) lib/journey/router.rb:56:in `call'
  actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:608:in `call'
  rack-openid (1.4.2) lib/rack/openid.rb:98:in `call'
  actionpack (3.2.17) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
  rack (1.4.5) lib/rack/etag.rb:23:in `call'
  rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
  actionpack (3.2.17) lib/action_dispatch/middleware/head.rb:14:in `call'
  actionpack (3.2.17) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
  actionpack (3.2.17) lib/action_dispatch/middleware/flash.rb:242:in `call'
  rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
  rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
  actionpack (3.2.17) lib/action_dispatch/middleware/cookies.rb:341:in `call'
  activerecord (3.2.17) lib/active_record/query_cache.rb:64:in `call'
  activerecord (3.2.17) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
  actionpack (3.2.17) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
  activesupport (3.2.17) lib/active_support/callbacks.rb:405:in `_run__1573727046248011728__call__2024552207853522994__callbacks'
  activesupport (3.2.17) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.17) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
  activesupport (3.2.17) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.17) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  actionpack (3.2.17) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
  actionpack (3.2.17) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  actionpack (3.2.17) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.17) lib/rails/rack/logger.rb:32:in `call_app'
  railties (3.2.17) lib/rails/rack/logger.rb:16:in `block in call'
  activesupport (3.2.17) lib/active_support/tagged_logging.rb:22:in `tagged'
  railties (3.2.17) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.17) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.5) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.17) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.5) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.17) lib/action_dispatch/middleware/static.rb:63:in `call'
  rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
  rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
  rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
  rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
  rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
  railties (3.2.17) lib/rails/engine.rb:484:in `call'
  railties (3.2.17) lib/rails/application.rb:231:in `call'
  railties (3.2.17) lib/rails/railtie/configurable.rb:30:in `method_missing'
  passenger (3.0.18) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
  passenger (3.0.18) lib/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request'
  passenger (3.0.18) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
  passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
  passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `block in handle_spawn_application'
  passenger (3.0.18) lib/phusion_passenger/utils.rb:470:in `safe_fork'
  passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
  passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
  passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
  passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:180:in `start'
  passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
  passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:219:in `block (2 levels) in spawn_rails_application'
  passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
  passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:214:in `block in spawn_rails_application'
  passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
  <internal:prelude>:10:in `synchronize'
  passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
  passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
  passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
  passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
  passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
  passenger (3.0.18) helper-scripts/passenger-spawn-server:99:in `<main>'
yapengwu commented 10 years ago

I found the problem. It is the issue in my own setup. The plugin works fine.

kitsos commented 10 years ago

what was your error? maybe we have the same. Pls give us details.

Best Regards, Kitsos

2014-04-08 1:46 GMT+03:00 yapengwu notifications@github.com:

I found the problem. It is the issue in my own setup. The plugin works fine.

Reply to this email directly or view it on GitHubhttps://github.com/phlegx/redmine_gitlab_hook/issues/2#issuecomment-39793143 .

yapengwu commented 10 years ago

Kitsos, My previous error was:

Started GET "/redmine/gitlab_hook?project_id=xxx&key=xxxx" for 127.0.0.1 at 2014-04-06 19:06:51 -0400
Processing by GitlabHookController#index as */*
  Parameters: {"project_id"=>"xxx", "key"=>"xxxxx"}
Completed 404 Not Found in 0.3ms

ActionController::RoutingError (Not Found):
  plugins/redmine_gitlab_hook/app/controllers/gitlab_hook_controller.rb:22:in `index'
  actionpack (3.2.17) lib/action_controller/metal/implicit_render.rb:4:in `send_action'

I setup the path /redmine in the virtualhost in my apache configuration. I changed the virtual host configuration by removing /redmine path. Seems this solves the route problem.

I don't know if it is the same issue as yours.

Jellyfrog commented 10 years ago

@phlegx The problem they are facing is because of: if request.post? https://github.com/phlegx/redmine_gitlab_hook/blob/master/app/controllers/gitlab_hook_controller.rb#L10

As you can see in their logs: Started GET, you might want to relax that check, so its possible to use both GET and POST instead.

octoquad commented 10 years ago

It might also be due to this:

GitLabHook: Command 'git --git-dir='/path/to/redmine/repo/project-repo' fetch origin' didn't exit properly. Full output: ["Could not create directory '/path/to/www/.ssh'.\r\n", "Host key verification failed.\r\n", "fatal: Could not read from remote repository.\n", "\n", "Please make sure you have the correct access rights\n", "and the repository exists.\n"]

octoquad commented 10 years ago

Fixed a few things :

Now getting the same thing as @Jellyfrog in #8. It can be emulated with sudo -u www-data -H git fetch origin which points to a permission and/or ownership problem.

phlegx commented 10 years ago

Is this issue solved? @Jellyfrog Gitlab web-hook uses POST and not GET. So, GET is not accepted by this plug in.

kitsos commented 10 years ago

not for me unfortunately!

2014-07-18 13:29 GMT+03:00 Phlegx Systems OG notifications@github.com:

Is this issue solved?

— Reply to this email directly or view it on GitHub https://github.com/phlegx/redmine_gitlab_hook/issues/2#issuecomment-49416978 .

Jellyfrog commented 10 years ago

@kitsos try: curl 'https://vscm-test/gitlab_hook' -d 'key=Ek7lMJnrHgZB3wGGV4z1&project_id=test' And replace the url and key and stuff ofc...

Post the output from the log here after.

kitsos commented 10 years ago

ok I 'll do it as fast as possible and i 'll report ou my output.

2014-07-18 15:07 GMT+03:00 Jellyfrog notifications@github.com:

@kitsos https://github.com/kitsos try: curl ' https://vscm-test/gitlab_hook' -d 'key=Ek7lMJnrHgZB3wGGV4z1&project_id=test' And replace the url and key and stuff ofc...

Post the output from the log here after.

— Reply to this email directly or view it on GitHub https://github.com/phlegx/redmine_gitlab_hook/issues/2#issuecomment-49423517 .

kitsos commented 10 years ago

When I am trying to configure gitlab hook plugin from web i am getting internal error

and the output of production.log is below:

Started GET "/redmine/settings/plugin/redmine_gitlab_hook" for 83.212.143.126 at 2014-07-21 13:01:10 +0300 Processing by SettingsController#plugin as HTML Parameters: {"id"=>"redmine_gitlab_hook"} Current user: admin (id=1) Rendered plugins/redmine_gitlab_hook/app/views/settings/_gitlab_settings.html (0.7ms) Rendered settings/plugin.html.erb within layouts/admin (1.6ms) Completed 500 Internal Server Error in 5.3ms

ActionView::Template::Error (can't convert Symbol into Integer): 2: <%= l(:git_pull_type) %> 3:

4: <%= content_tag(:label, l(:all_branches)) %> 5: <%= check_box_tag("settings[all_branches]", "yes", Setting.plugin_redmine_gitlab_hook[:all_branches] == "yes" ) %> 6:

7: app/views/settings/plugin.html.erb:6:in block in _app_views_settings_plugin_html_erb__1927629019189663301_59885180' app/views/settings/plugin.html.erb:4:in_app_views_settings_plugin_html_erb__1927629019189663301_59885180'

Any clues???

Jellyfrog commented 10 years ago

Did you run rake redmine:plugins:migrate RAILS_ENV=production ?

kitsos commented 10 years ago

yes!

2014-07-21 18:22 GMT+03:00 Jellyfrog notifications@github.com:

Did you run rake redmine:plugins:migrate RAILS_ENV=production ?

— Reply to this email directly or view it on GitHub https://github.com/phlegx/redmine_gitlab_hook/issues/2#issuecomment-49619935 .

kitsos commented 10 years ago

and there is nat any environment.log on my installation.

kitsos commented 10 years ago

ActionView::Template::Error (can't convert Symbol into Integer): this error points me that the plugin's view not rendering properly with the administration layout of Redmine. Is there any way to fix it?

Kind Regards, Kitsos.

phlegx commented 9 years ago

Try out latest master branch. Pull request merged: https://github.com/phlegx/redmine_gitlab_hook/commit/62fa82c3c6718730053bc33fba69d01c9ece7530 Solves can't convert Symbol into Integer.

phlegx commented 9 years ago

Read this documentation:

  1. http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_subdirectory_%28sub-URI%29_on_Apache
  2. http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI

It seams that you have installed Redmine in a sub-directory (e.g. '/redmine'). This can be a problem, that routes are not found. And please use POST method and not GET!

Your log

Started GET "/redmine/settings/plugin/redmine_gitlab_hook" ....

should be

Started POST "/redmine/settings/plugin/redmine_gitlab_hook" ....
phlegx commented 9 years ago

RESTClient (http://restclient.net/) is a nice add-on for Chrome, Firefox and Safari to try out redmine_gitlab_hook!

ghost commented 9 years ago

@phlegx , i have got additional problem with your plugin. I have installed and configured it properly, but it doesn't work. After going to webhook url, redmine gives error:

"Page not found The page you were trying to access doesn't exist or has been removed."

Redmine user on the server is able to run git. I have turned WS in repositories, but still with no effect ;(

Jellyfrog commented 9 years ago

it only support POST requests, not GET.. Use curl or similar: curl 'http://redmine.server/gitlab_hook' -d 'project_id=[redmine-project-identifier]&key=[api-key]'

csersyadav commented 7 years ago

same issue

phlegx commented 7 years ago

Can this comment #20 solve your issue?

estan commented 6 years ago

@phlegx I'm in the same boat as some others here I think. Does the plugin not support Redmine installed under a URI prefix? (e.g. /redmine). If so, I can't use it because that's how Redmine is set up here, and I can't easily change this just to get this plugin working :/

estan commented 6 years ago

@phlegx Looking at my output from RAILS_ENV=production rake routes, I see:

.
.
.
                          sys_projects GET                /redmine/sys/projects(.:format)                                                           sys#projects
                                       POST               /redmine/sys/projects/:id/repository(.:format)                                            sys#create_project_repository
                  sys_fetch_changesets GET|POST           /redmine/sys/fetch_changesets(.:format)                                                   sys#fetch_changesets
                               uploads POST               /redmine/uploads(.:format)                                                                attachments#upload
                                       GET                /redmine/robots.txt(.:format)                                                             welcome#robots
                           gitlab_hook GET|POST           /gitlab_hook(.:format)                                                                    gitlab_hook#index

The path for the gitlab_hook is wrong, it should be /redmine/gitlab_hook. Will you fix the plugin to work with Redmine installations under a sub-URI?

estan commented 6 years ago

I was able to fix the problem locally I think, by enclosing the the match in config/routes.rb with a scope for the sub-URI that we use ("/redmine"):

RedmineApp::Application.routes.draw do
  scope "/redmine" do
    match 'gitlab_hook', :to => 'gitlab_hook#index', :via => [:get, :post]
  end
end
phlegx commented 6 years ago

Hi @estan, your solution is correct but not dynamic. I cannot change it in the code. Some people uses Redmine with sub-URI and some not. So, we need a solution for both.

estan commented 6 years ago

@phlegx Yes, my change was of course just a local hack to get it to work for me. Would be better if it could be made dynamic of course.