Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resyncing all project doesn’t work when gitolite.conf is corrupted #730

Open
sboisson opened this issue Feb 11, 2019 · 0 comments
Open

Comments

@sboisson
Copy link

Somehow gitolite.conf got corrupted by the plugin (there was a commit with an incomplete line: ook.enabled = false instead of config multimailhook.enabled = false), but I was unable to fix the issue without editing manually the file through the gitolite standard procedure.

"Rescue > Resync all projects" was failing because of a ParseError:

Gitolite::Config::ParseError ('ook.enabled = false' cannot be processed):
  plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_wrapper.rb:68:in `new'
  plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_wrapper.rb:68:in `gitolite_admin'
  plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_wrapper.rb:45:in `execute_action'
  plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_wrapper.rb:24:in `resync_gitolite'
  plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_accessor.rb:146:in `resync_gitolite'
  plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_accessor.rb:77:in `update_projects'
  plugins/redmine_git_hosting/app/use_cases/settings/apply.rb:143:in `do_resync_projects'
  plugins/redmine_git_hosting/app/use_cases/settings/apply.rb:51:in `apply_settings'
  plugins/redmine_git_hosting/app/use_cases/settings/apply.rb:36:in `call'
  plugins/redmine_git_hosting/app/use_cases/settings/apply.rb:28:in `call'
  plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/settings_controller_patch.rb:79:in `execute_post_actions'
  plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/settings_controller_patch.rb:69:in `handle_settings_update'
  plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/settings_controller_patch.rb:41:in `plugin_with_git_hosting'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant