GithubHelp home page GithubHelp logo

sazor / redmine_gitlab_integration Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 5.0 931 KB

Redmine plugin for making connection between Redmine Project and Gitlab Repository

License: GNU General Public License v2.0

Shell 8.16% Ruby 70.31% JavaScript 3.99% CSS 3.95% HTML 13.59%

redmine_gitlab_integration's People

Contributors

sazor avatar simonswine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_gitlab_integration's Issues

Redmine 3.0 : Internal error

Hello,

Your plugin work for install and menu with redmine 3.0 but when I try to add a repository Gitlab with "gitlab tab" or with a new projetc, I encounter this issue :

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.

I've set my Token key in my account and the root Token in the settings of plugin but anyway, that doesn't work.

Have you an idea for this issue ?

Do you have test your plugin on other version of redmine ?

Thanks

Redmine 3.0.3.stable
Gitlab 7.12.0
Gitlab API V3

Can't save Gitlab Token in redmine 3.2.0

In Redmine “My account” page,It can't not save the gitlab token,have a error msg:
"GitLab Token isn`t valid"

and the error info in Production.log:

ActionController::RoutingError (No route matches [GET] "/plugin_assets/redmine_gitlab_integration/stylesheets/flaticon.css"):
actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:incall'
railties (4.2.5) lib/rails/rack/logger.rb:38:in call_app' railties (4.2.5) lib/rails/rack/logger.rb:20:inblock in call'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in block in tagged' activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:intagged'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in tagged' railties (4.2.5) lib/rails/rack/logger.rb:20:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.6.4) lib/rack/methodoverride.rb:22:incall'
rack (1.6.4) lib/rack/runtime.rb:18:in call' activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in call' rack (1.6.4) lib/rack/sendfile.rb:113:incall'
railties (4.2.5) lib/rails/engine.rb:518:in call' railties (4.2.5) lib/rails/application.rb:165:incall'
railties (4.2.5) lib/rails/railtie.rb:194:in public_send' railties (4.2.5) lib/rails/railtie.rb:194:inmethod_missing'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in process_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:152:inaccept_and_process_next_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:inblock (3 levels) in start_threads'
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'

the redmine info:
Environment:
Redmine version 3.2.0.stable
Ruby version 2.1.7-p400 (2015-08-18) [x86_64-linux]
Rails version 4.2.5
Environment production
Database adapter Mysql2
SCM:
Cvs 1.12.13
Git 1.9.1
Filesystem
Redmine plugins:
a_common_libs 2.0.0
advanced_roadmap_v2 2.4.2
clipboard_image_paste 1.10
file_servers 3.0.2
redmine_banner 0.1.1
redmine_checklists 3.1.3
redmine_code_review 0.7.0
redmine_gitlab_integration 0.4.0
redmine_remote_revision_url 0.3.0
redmine_revision_branches 0.3.0
redmine_work_time 0.3.1

Plugin config page throws internal server error

Migrating to RemoveTitleFromGitLabRepositories (4)
Migrating to AddGitlabIdToGitLabRepositories (5)
Migrating to AddGitlabGroupToProjects (6)
Migrating to AddTitleAndDescriptionToGitLabRepositories (7)
Migrating to AddTimestampsToGitLabRepositories (8)
Connecting to database specified by database.yml
.
.
.
Completed 200 OK in 538.2ms (Views: 425.6ms | ActiveRecord: 21.6ms)
Started GET "/settings/plugin/redmine_gitlab_integration" for 127.0.0.1 at 2015-01-09 17:11:48 +0100
Processing by SettingsController#plugin as HTML
  Parameters: {"id"=>"redmine_gitlab_integration"}
  Current user: pterbe (id=3)
  Rendered plugins/redmine_gitlab_integration/app/views/settings/_gitlab_int_settings.html.erb (6.4ms)
  Rendered settings/plugin.html.erb within layouts/admin (11.5ms)
Completed 500 Internal Server Error in 20.9ms

ActionView::Template::Error (undefined method `[]' for nil:NilClass):
    11:   <%= check_box_tag 'settings[gitlab_autoremove]', 'enabled', (settings['gitlab_autoremove'] == 'enabled') %><br/>
    12:   <% Role.select("id, name").each do |role| %>
    13:     <%= label_tag "settings[gitlab_role][#{role.id}]", role[:name] %>
    14:     <%= select_tag "settings[gitlab_role][#{role.id}]", options_for_select([["Reporter", 20], ["Developer", 30], ["Manager", 40]
    15:   <% end %>
    16: </p>
  app/views/settings/plugin.html.erb:6:in `block in _app_views_settings_plugin_html_erb___4496935743010902246_69947184723520'
  app/views/settings/plugin.html.erb:4:in `_app_views_settings_plugin_html_erb___4496935743010902246_69947184723520'

Please let me know if I give you further details about this error.

Redmine 3.2.0 Stable : "GitLab Token isn`t valid"

Install on Redmine 3.2.0.stable.14966 and Gitlab 8.0.5.
I follow the message

"You should input gitlab token in account settings for gitlab plugin usage!"

and go to account settings. Set the GitLab Token and save, then I get the message,

"GitLab Token isn`t valid".

Check the Redmine log, it seems that route error.

Started POST "/my/account" for 114.136.82.20 at 2015-12-16 17:16:00 +0800
Processing by MyController#account as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"1P7Rs9B7fmrumnj5bQ/umsQDyJI/emqIOi5NHlmt+51skzhx+tuf/4NqzWxK4yjSZsoiXo63ycBM76ISAYF+RQ==", "user"=>{"firstname"=>"Isaac", "lastname"=>"Cheng", "mail"=>"[email protected]", "language"=>"zh-TW", "gitlab_token"=>"AmVBui3i7FzxYc9-c5UU", "mail_notification"=>"none", "notified_project_ids"=>[""]}, "commit"=>"儲存", "pref"=>{"no_self_notified"=>"0", "hide_mail"=>"0", "time_zone"=>"Taipei", "comments_sorting"=>"desc", "warn_on_leaving_unsaved"=>"1"}}
  Current user: isaac (id=5)
  Rendered plugins/redmine_gitlab_integration/app/views/git_lab_repositories/_token_form.html.erb (0.2ms)
  Rendered users/_mail_notifications.html.erb (6.6ms)
  Rendered users/_preferences.html.erb (2.5ms)
  Rendered my/_sidebar.html.erb (2.5ms)
  Rendered my/account.html.erb within layouts/base (17.0ms)
  Rendered plugins/redmine_gitlab_integration/app/views/git_lab_repositories/_scripts.html.erb (0.3ms)
  Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_headers.html.erb (0.2ms)
  Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_add_form.html.erb (1.7ms)
Completed 200 OK in 62ms (Views: 23.0ms | ActiveRecord: 3.8ms)
Started GET "/plugin_assets/redmine_gitlab_integration/stylesheets/flaticon.css" for 114.136.82.20 at 2015-12-16 17:16:01 +0800

ActionController::RoutingError (No route matches [GET] "/plugin_assets/redmine_gitlab_integration/stylesheets/flaticon.css"):
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/rack/logger.rb:38:in `call_app'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/rack/logger.rb:20:in `block in call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:68:in `block in tagged'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:26:in `tagged'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:68:in `tagged'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/rack/logger.rb:20:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/request_id.rb:21:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/static.rb:116:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/engine.rb:518:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/application.rb:165:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/railtie.rb:194:in `public_send'
  vendor/bundle/ruby/2.2.0/gems/railties-4.2.5/lib/rails/railtie.rb:194:in `method_missing'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'

Could you help me to check this? How should I do to fix this error?

Thanks,

Internal error after install the plugin

i try remove the plugin, things works fine, but after reinstall it the error occurs:
ActionView::Template::Error (Missing partial git_lab_repositories/scripts with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :rsb]}. Searched in:
):
11: <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
12: <%= javascript_heads %>
13: <%= heads_for_theme %>
14: <%= call_hook :view_layouts_base_html_head %>
15:
16: <%= yield :header_tags -%>
17:
lib/redmine/hook.rb:111:in block in render_on' lib/redmine/hook.rb:61:inblock (2 levels) in call_hook'
lib/redmine/hook.rb:61:in each' lib/redmine/hook.rb:61:inblock in call_hook'
lib/redmine/hook.rb:58:in tap' lib/redmine/hook.rb:58:incall_hook'
lib/redmine/hook.rb:158:in call_hook' app/views/layouts/base.html.erb:14:in_app_views_layouts_base_html_erb___4041867573759040348_70045464710240'
app/controllers/application_controller.rb:452:in block (2 levels) in render_error' app/controllers/application_controller.rb:450:inrender_error'
app/controllers/application_controller.rb:438:in render_404' app/controllers/application_controller.rb:462:inmissing_template'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.