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

Issues with Git 1.7.1 #502

Closed
henhof opened this issue Aug 27, 2015 · 14 comments
Closed

Issues with Git 1.7.1 #502

henhof opened this issue Aug 27, 2015 · 14 comments
Assignees
Labels
Milestone

Comments

@henhof
Copy link

henhof commented Aug 27, 2015

Hi,
i have upgrade from Redmine 2.6.2 => 3.1.0 and from redmine_git_hosting 0.7.6 => 0.7.10 => 1.1.2.

The migration has been successfully finished without errors.
log from migration process

RAILS_ENV=production NAME=redmine_git_hosting rake redmine_git_hosting:migrate_to_v1
(eval):57: warning: duplicated key at line 57 ignored: :format

old_name : 2011072600000-redmine_git_hosting
new_name : 20110726000000-redmine_git_hosting

old_name : 2011080700000-redmine_git_hosting
new_name : 20110807000000-redmine_git_hosting

old_name : 2011081300000-redmine_git_hosting
new_name : 20110813000000-redmine_git_hosting

old_name : 2011081700000-redmine_git_hosting
new_name : 20110817000000-redmine_git_hosting

old_name : 2012052100000-redmine_git_hosting
new_name : 20120521000000-redmine_git_hosting

old_name : 2012052100001-redmine_git_hosting
new_name : 20120521000010-redmine_git_hosting

old_name : 2012052200000-redmine_git_hosting
new_name : 20120522000000-redmine_git_hosting

Done!
Migrating redmine_git_hosting (Redmine Git Hosting Plugin)...
== 20140417004100 EnforceModelsConstraints: migrating =========================
-- change_column(:git_caches, :command_output, :binary, {:limit=>16777216})
   -> 0.0640s
-- remove_column(:repository_mirrors, :created_at)
   -> 0.0363s
-- remove_column(:repository_mirrors, :updated_at)
   -> 0.0210s
-- remove_column(:repository_post_receive_urls, :created_at)
   -> 0.0194s
-- remove_column(:repository_post_receive_urls, :updated_at)
   -> 0.0189s
== 20140417004100 EnforceModelsConstraints: migrated (0.1600s) ================

== 20140423224900 ConvertBoolean: migrating ===================================
-- add_column(:gitolite_public_keys, :active_temp, :boolean, {:default=>true, :after=>:key})
   -> 0.0334s
-- remove_column(:gitolite_public_keys, :active)
   -> 0.0202s
-- rename_column(:gitolite_public_keys, :active_temp, :active)
   -> 0.0210s
-- add_column(:gitolite_public_keys, :delete_when_unused_temp, :boolean, {:default=>true, :after=>:active})
   -> 0.0188s
-- remove_column(:gitolite_public_keys, :delete_when_unused)
   -> 0.0191s
-- rename_column(:gitolite_public_keys, :delete_when_unused_temp, :delete_when_unused)
   -> 0.0213s
-- add_column(:repository_git_extras, :git_daemon_temp, :boolean, {:default=>true, :after=>:git_daemon})
   -> 0.0466s
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
-- remove_column(:repository_git_extras, :git_daemon)
   -> 0.0234s
-- rename_column(:repository_git_extras, :git_daemon_temp, :git_daemon)
   -> 0.0241s
-- add_column(:repository_git_extras, :git_notify_temp, :boolean, {:default=>true, :after=>:git_notify})
   -> 0.0209s
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
Update!
-- remove_column(:repository_git_extras, :git_notify)
   -> 0.0223s
-- rename_column(:repository_git_extras, :git_notify_temp, :git_notify)
   -> 0.0239s
-- add_column(:repository_deployment_credentials, :active_temp, :boolean, {:default=>true, :after=>:active})
   -> 0.0374s
-- remove_column(:repository_deployment_credentials, :active)
   -> 0.0188s
-- rename_column(:repository_deployment_credentials, :active_temp, :active)
   -> 0.0213s
-- add_column(:repository_mirrors, :active_temp, :boolean, {:default=>true, :after=>:active})
   -> 0.0175s
-- remove_column(:repository_mirrors, :active)
   -> 0.0183s
-- rename_column(:repository_mirrors, :active_temp, :active)
   -> 0.0217s
-- add_column(:repository_post_receive_urls, :active_temp, :boolean, {:default=>true, :after=>:active})
   -> 0.0180s
-- remove_column(:repository_post_receive_urls, :active)
   -> 0.0215s
-- rename_column(:repository_post_receive_urls, :active_temp, :active)
   -> 0.0212s
== 20140423224900 ConvertBoolean: migrated (0.7361s) ==========================

== 20140516224900 AddTriggerToPostReceive: migrating ==========================
-- add_column(:repository_post_receive_urls, :use_triggers, :boolean, {:default=>false})
   -> 0.0195s
-- add_column(:repository_post_receive_urls, :triggers, :text)
   -> 0.0179s
== 20140516224900 AddTriggerToPostReceive: migrated (0.0376s) =================

== 20140523013000 AddSplitPayloadsToPostReceive: migrating ====================
-- add_column(:repository_post_receive_urls, :split_payloads, :boolean, {:default=>false})
   -> 0.0199s
== 20140523013000 AddSplitPayloadsToPostReceive: migrated (0.0200s) ===========

== 20140618224954 AddFingerprintToGitolitePublicKeys: migrating ===============
-- add_column(:gitolite_public_keys, :fingerprint, :string, {:after=>"key"})
   -> 0.0192s
== 20140618224954 AddFingerprintToGitolitePublicKeys: migrated (0.0193s) ======

== 20140618231512 CreateUniqueIndexes: migrating ==============================
-- add_index(:repository_git_extras, :repository_id, {:unique=>true})
   -> 0.0248s
-- add_index(:repository_git_notifications, :repository_id, {:unique=>true})
   -> 0.0370s
-- add_index(:repository_git_config_keys, :repository_id)
   -> 0.0421s
-- add_index(:repository_git_config_keys, [:key, :repository_id], {:unique=>true})
   -> 0.0195s
-- add_index(:repository_post_receive_urls, :repository_id)
   -> 0.0195s
-- add_index(:repository_post_receive_urls, [:url, :repository_id], {:unique=>true})
   -> 0.0219s
-- add_index(:repository_mirrors, :repository_id)
   -> 0.0509s
-- add_index(:repository_mirrors, [:url, :repository_id], {:unique=>true})
   -> 0.0285s
-- add_index(:repository_deployment_credentials, [:repository_id, :gitolite_public_key_id], {:unique=>true, :name=>"index_deployment_credentials_on_repository_id_and_public_key_id"})
   -> 0.0270s
-- add_index(:gitolite_public_keys, [:title, :user_id], {:unique=>true})
   -> 0.0279s
-- add_index(:github_comments, [:github_id, :journal_id], {:unique=>true})
   -> 0.0328s
-- add_index(:github_issues, [:github_id, :issue_id], {:unique=>true})
   -> 0.0300s
== 20140618231512 CreateUniqueIndexes: migrated (0.3639s) =====================

== 20140621004200 CreateRepositoryProtectedBranches: migrating ================
-- create_table(:repository_protected_branches)
   -> 0.0162s
-- add_index(:repository_protected_branches, :repository_id)
   -> 0.0284s
== 20140621004200 CreateRepositoryProtectedBranches: migrated (0.0449s) =======

== 20140621004300 AddProtectedBranchToRepositoryGitExtra: migrating ===========
-- add_column(:repository_git_extras, :protected_branch, :boolean, {:default=>false, :after=>:default_branch})
   -> 0.0376s
== 20140621004300 AddProtectedBranchToRepositoryGitExtra: migrated (0.0379s) ==

== 20140624150200 RemoveGitolitePublicKeysActiveColumn: migrating =============
-- remove_column(:gitolite_public_keys, :active)
   -> 0.0496s
== 20140624150200 RemoveGitolitePublicKeysActiveColumn: migrated (0.0498s) ====

== 20141228193500 AddGitAnnexToGitExtras: migrating ===========================
-- add_column(:repository_git_extras, :git_annex, :boolean, {:default=>false, :after=>:git_notify})
   -> 0.0313s
== 20141228193500 AddGitAnnexToGitExtras: migrated (0.0315s) ==================

== 20150125234500 AddPublicRepoToRepositoryGitExtra: migrating ================
-- add_column(:repository_git_extras, :public_repo, :boolean, {:default=>false, :after=>:protected_branch})
   -> 0.0316s
== 20150125234500 AddPublicRepoToRepositoryGitExtra: migrated (0.0319s) =======

== 20150410031920 AddUrlsOrderToRepositoryGitExtra: migrating =================
-- add_column(:repository_git_extras, :urls_order, :text)
   -> 0.0296s
== 20150410031920 AddUrlsOrderToRepositoryGitExtra: migrated (0.0297s) ========

== 20150604051500 AddUniqueIndexToFingerprint: migrating ======================
-- add_index(:gitolite_public_keys, :fingerprint, {:unique=>true})
   -> 0.0274s
== 20150604051500 AddUniqueIndexToFingerprint: migrated (0.0276s) =============


Delete SSH keys in Gitolite and reset identifier :


Add SSH keys with new name in Gitolite :


Done!

Update repositories type (from Git to Xitolite) :

projekt-hh
done!

hh-sub1
done!

projekt-sm
done!

subproject-sm
done!

hh-sub-2
done!

hh-sub1-2
done!

osthus-test-project
done!

githooktest
done!

subproject-01
done!

subproject-02
done!

cv-pmo-testing
done!

client-a-only
done!

client-b-only
done!

redmine-jenkins-plugin-testprojekt
done!

test-repo-hh-2
done!

vxycvyx
done!

sdfsdfs
done!

The test config page is green
2015-08-27_17-35-58

Now i want to access the repo in project view and can't. I get a internal error message.

Have you any hint for me?

@n-rodriguez n-rodriguez self-assigned this Aug 27, 2015
@n-rodriguez
Copy link
Contributor

Hi! It looks like this one : #484.
Can you please provide logs from <redmine root>/log/git_hosting.log.
The common point between the 2 issues is git 1.7.1.
This issue is fixed in next release (1.1.3) but I'd like to know what's going on with git 1.7.1 :)

@n-rodriguez n-rodriguez added this to the v1.1.3 milestone Aug 27, 2015
@henhof
Copy link
Author

henhof commented Aug 28, 2015

there are several errors in the production.log and in the unicron app server log.

I can create new repos and these will be created by gitolite correctly. But I can open the repo in redmine.

log from git_hosting.log

2015-08-28 08:27:27 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 08:27:27 +0200 [INFO] OK!
2015-08-28 08:27:28 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 08:27:28 +0200 [INFO] Done!
2015-08-28 08:27:51 +0200 [INFO] Flush Settings Cache !
2015-08-28 08:27:51 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:27:52 +0200 [INFO] Settings cache flushed!
2015-08-28 08:27:52 +0200 [INFO] Forced resync of all projects (active, closed, archived)...
2015-08-28 08:27:52 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:27:52 +0200 [WARN] update_projects : repository 'projekt-hh' already exists in Gitolite, force mode !
2015-08-28 08:27:52 +0200 [WARN] update_projects : repository 'projekt-hh/lalala' already exists in Gitolite, force mode !
2015-08-28 08:27:52 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:52 +0200 [WARN] update_projects : repository 'projekt-hh/hh-sub1' already exists in Gitolite, force mode !
2015-08-28 08:27:52 +0200 [WARN] update_projects : repository 'projekt-hh/hh-sub1/hh-sub1-2' already exists in Gitolite, force mode !
2015-08-28 08:27:52 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:52 +0200 [WARN] update_projects : repository 'projekt-sm' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'projekt-sm/subproject-sm' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'projekt-hh/hh-sub-2' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'osthus-test-project' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'githooktest' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'osthus-test-project/subproject-01' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'osthus-test-project/subproject-02' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'cv-pmo-testing' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'cv-pmo-testing/client-a-only' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'cv-pmo-testing/client-b-only' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'redmine-jenkins-plugin-testprojekt' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'test-repo-hh-2' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'test-repo-hh-2/vxycvyx' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'test-repo-hh-2/sdfsdfs' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:56 +0200 [INFO] Forced resync of all ssh keys...
2015-08-28 08:27:56 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:27:59 +0200 [INFO] Flush Git Cache !
2015-08-28 08:27:59 +0200 [INFO] Enable README creation for repositories
2015-08-28 08:27:59 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:27:59 +0200 [INFO] '@all' repository already configured, check for RedmineGitHosting key presence
2015-08-28 08:27:59 +0200 [INFO] RedmineGitHosting key is present, nothing to do.
2015-08-28 08:27:59 +0200 [INFO] enable_readme_creation : commiting to Gitolite...
2015-08-28 08:28:01 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 08:28:01 +0200 [INFO] OK!
2015-08-28 08:28:02 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 08:28:02 +0200 [INFO] Done!
2015-08-28 08:28:22 +0200 [INFO] Flush Settings Cache !
2015-08-28 08:28:22 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:28:22 +0200 [INFO] Settings cache flushed!
2015-08-28 08:28:22 +0200 [INFO] Enable README creation for repositories
2015-08-28 08:28:22 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:28:22 +0200 [INFO] '@all' repository already configured, check for RedmineGitHosting key presence
2015-08-28 08:28:22 +0200 [INFO] RedmineGitHosting key is present, nothing to do.
2015-08-28 08:28:22 +0200 [INFO] enable_readme_creation : commiting to Gitolite...
2015-08-28 08:28:24 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 08:28:24 +0200 [INFO] OK!
2015-08-28 08:28:24 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 08:28:24 +0200 [INFO] Done!

log from production.log

(called from block in included at /opt/redmine-3.1.0/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/setting_patch.rb:14)
DEPRECATION WARNING: Currently, Active Record suppresses errors raised within `after_rollback`/`after_commit` callbacks and only print them to the logs. In the next version, these errors will no longer be suppressed. Instead, the errors will propagate normally just like in other Active Record callbacks.

You can opt into the new behavior and remove this warning by setting:

  config.active_record.raise_in_transactional_callbacks = true

 (called from block in included at /opt/redmine-3.1.0/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/member_patch.rb:12)
DEPRECATION WARNING: Currently, Active Record suppresses errors raised within `after_rollback`/`after_commit` callbacks and only print them to the logs. In the next version, these errors will no longer be suppressed. Instead, the errors will propagate normally just like in other Active Record callbacks.

You can opt into the new behavior and remove this warning by setting:

  config.active_record.raise_in_transactional_callbacks = true
...
...
Started GET "/projects/projekt-hh/repository" for 127.0.0.1 at 2015-08-28 08:39:20 +0200
Processing by RepositoriesController#show as HTML
  Parameters: {"id"=>"projekt-hh"}
  Current user: admin (id=1)
git: error during get default branch: no implicit conversion of nil into Array
Completed 500 Internal Server Error in 60ms (ActiveRecord: 3.0ms)

TypeError (no implicit conversion of nil into Array):
  app/models/repository/git.rb:97:in `scm_entries'
  app/models/repository.rb:205:in `entries'
  app/controllers/repositories_controller.rb:116:in `show'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

log from unicorn app server

I, [2015-08-28T08:32:00.592336 #20009]  INFO -- : Refreshing Gem list
(eval):57: warning: duplicated key at line 57 ignored: :format
I, [2015-08-28T08:32:05.612948 #20009]  INFO -- : unlinking existing socket=/opt/redmine/tmp/sockets/unicorn.sock
I, [2015-08-28T08:32:05.613177 #20009]  INFO -- : listening on addr=/opt/redmine/tmp/sockets/unicorn.sock fd=12
I, [2015-08-28T08:32:05.618984 #20009]  INFO -- : master process ready
I, [2015-08-28T08:32:05.620923 #20015]  INFO -- : worker=0 ready
I, [2015-08-28T08:32:05.626021 #20018]  INFO -- : worker=1 ready
/opt/redmine-3.1.0/plugins/redmine_git_hosting/app/presenters/repository_presenter.rb:44: warning: duplicated key at line 44 ignored: :committer

@n-rodriguez
Copy link
Contributor

Hi! Thanks for your feedback!

git: error during get default branch: no implicit conversion of nil into Array

The error is here

/opt/redmine-3.1.0/plugins/redmine_git_hosting/app/presenters/repository_presenter.rb:44: warning: duplicated key at line 44 ignored: :committer

And here another small bug

Thanks :)

@henhof
Copy link
Author

henhof commented Aug 28, 2015

Hi, have you a timeline when you can fix the bugs?

Thanks for the awesome plugin!

n-rodriguez pushed a commit that referenced this issue Aug 28, 2015
@henhof
Copy link
Author

henhof commented Aug 28, 2015

Hi, I have checkout the devel branch with your FIX 502 but it doesn't helped.

I get the same error by access the Repository in Redmine and a new error by commit changes or nothing (only click on apply) in git_hosting plugin.

production.log

Started GET "/projects/projekt-hh/repository" for 127.0.0.1 at 2015-08-28 11:10:53 +0200
Processing by RepositoriesController#show as HTML
  Parameters: {"id"=>"projekt-hh"}
  Current user: admin (id=1)
git: error during get default branch: no implicit conversion of nil into Array
Completed 500 Internal Server Error in 97ms (ActiveRecord: 3.7ms)

TypeError (no implicit conversion of nil into Array):
  app/models/repository/git.rb:97:in `scm_entries'
  app/models/repository.rb:205:in `entries'
  app/controllers/repositories_controller.rb:116:in `show'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

...
...

Started POST "/settings/plugin/redmine_git_hosting" for 127.0.0.1 at 2015-08-28 11:12:28 +0200
Processing by SettingsController#plugin as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"ibbB59P13tp4JtesSjLdtpl1BEkipt8ppTJ8w8RjmJPHNoE1WQyvQbxSgln4A9heHKSUX4CAJfuVPRVzx9sNfA==", "settings"=>{"gitolite_user"=>"git", "gitolite_ssh_private_key"=>"/opt/redmine-3.1.0/plugins/redmine_git_hosting/ssh_keys/redmine_gitolite_admin_id_rsa", "gitolite_ssh_public_key"=>"/opt/redmine-3.1.0/plugins/redmine_git_hosting/ssh_keys/redmine_gitolite_admin_id_rsa.pub", "gitolite_server_host"=>"localhost", "gitolite_server_port"=>"22", "gitolite_global_storage_dir"=>"repositories/", "gitolite_recycle_bin_dir"=>"recycle_bin/", "gitolite_redmine_storage_dir"=>"", "gitolite_local_code_dir"=>"local/", "gitolite_lib_dir"=>"bin/lib/", "gitolite_config_file"=>"gitolite.conf", "gitolite_identifier_prefix"=>"redmine_", "gitolite_identifier_strip_user_id"=>"true", "gitolite_temp_dir"=>"/tmp/redmine_git_hosting/", "gitolite_recycle_bin_expiration_time"=>"24.0", "gitolite_log_level"=>"info", "git_config_username"=>"Redmine Git Hosting", "git_config_email"=>"[email protected]", "ssh_server_domain"=>"redmine-dev.member.osthus.de", "http_server_domain"=>"redmine-dev.member.osthus.de", "https_server_domain"=>"redmine-dev.member.osthus.de", "http_server_subdir"=>"", "gitolite_http_by_default"=>"1", "show_repositories_url"=>"true", "gitolite_daemon_by_default"=>"true", "download_revision_enabled"=>"false", "gitolite_overwrite_existing_hooks"=>"true", "gitolite_hooks_are_asynchronous"=>"false", "gitolite_hooks_debug"=>"false", "gitolite_hooks_url"=>"https://redmine-dev.member.osthus.de", "gitolite_cache_max_time"=>"0", "gitolite_cache_max_size"=>"16", "gitolite_cache_max_elements"=>"2000", "gitolite_cache_adapter"=>"database", "gitolite_notify_by_default"=>"false", "gitolite_notify_global_prefix"=>"[REDMINE]", "gitolite_notify_global_sender_address"=>"[email protected]", "gitolite_notify_global_include"=>[""], "gitolite_notify_global_exclude"=>[""], "redmine_has_rw_access_on_all_repos"=>"true", "all_projects_use_git"=>"true", "init_repositories_on_create"=>"true", "delete_git_repositories"=>"true", "hierarchical_organisation"=>"true", "gitolite_use_sidekiq"=>"false"}, "commit"=>"Apply", "id"=>"redmine_git_hosting"}
  Current user: admin (id=1)
Completed 500 Internal Server Error in 12ms (ActiveRecord: 1.6ms)

ArgumentError (wrong number of arguments (1 for 0)):
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

@n-rodriguez
Copy link
Contributor

Hi, I have checkout the devel branch with your FIX 502 but it doesn't helped.

Don't use the devel branch. Use the v1.1.x branch instead.

@henhof
Copy link
Author

henhof commented Aug 28, 2015

Thanks, my mistake ;)

However, with the v1.1.x branch the issue is still happen.

Started GET "/projects/test-repo-hh-2/repository/sdfsdfs" for 127.0.0.1 at 2015-08-28 13:37:31 +0200
Processing by RepositoriesController#show as HTML
  Parameters: {"id"=>"test-repo-hh-2", "repository_id"=>"sdfsdfs"}
  Current user: admin (id=1)
git: error during get default branch: no implicit conversion of nil into Array
Completed 500 Internal Server Error in 17ms (ActiveRecord: 3.0ms)

TypeError (no implicit conversion of nil into Array):
  app/models/repository/git.rb:97:in `scm_entries'
  app/models/repository.rb:205:in `entries'
  app/controllers/repositories_controller.rb:116:in `show'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

@n-rodriguez
Copy link
Contributor

Can you please provide some logs from git_hosting.log file? I've added some debug logs in the commit. I hope there will be something.

@henhof
Copy link
Author

henhof commented Aug 28, 2015

I get also an error bey executing the command for fetch changesets for all repositories

RAILS_ENV=production rake redmine_git_hosting:fetch_changesets

(eval):57: warning: duplicated key at line 57 ignored: :format
Performing manual fetch_changesets operation...
rake aborted!
TypeError: no implicit conversion of nil into Array
/opt/redmine-3.1.0/plugins/redmine_git_hosting/lib/redmine/scm/adapters/xitolite_adapter.rb:543:in `concat'
/opt/redmine-3.1.0/plugins/redmine_git_hosting/lib/redmine/scm/adapters/xitolite_adapter.rb:543:in `base_args'
/opt/redmine-3.1.0/plugins/redmine_git_hosting/lib/redmine/scm/adapters/xitolite_adapter.rb:521:in `prepare_command'
/opt/redmine-3.1.0/plugins/redmine_git_hosting/lib/redmine/scm/adapters/xitolite_adapter.rb:508:in `git_cmd'
/opt/redmine-3.1.0/plugins/redmine_git_hosting/lib/redmine/scm/adapters/xitolite_adapter.rb:85:in `branches'
/opt/redmine-3.1.0/app/models/repository/git.rb:75:in `branches'
/opt/redmine-3.1.0/app/models/repository/git.rb:130:in `fetch_changesets'
/opt/redmine-3.1.0/app/models/repository.rb:344:in `block (2 levels) in fetch_changesets'
/home/redmine/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.3/lib/active_record/relation/delegation.rb:46:in `each'
/home/redmine/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.3/lib/active_record/relation/delegation.rb:46:in `each'
/opt/redmine-3.1.0/app/models/repository.rb:342:in `block in fetch_changesets'
/opt/redmine-3.1.0/app/models/repository.rb:341:in `each'
/opt/redmine-3.1.0/app/models/repository.rb:341:in `fetch_changesets'
/opt/redmine-3.1.0/plugins/redmine_git_hosting/lib/tasks/redmine_git_hosting.rake:36:in `block (2 levels) in <top (required)>'
Tasks: TOP => redmine_git_hosting:fetch_changesets
(See full trace by running task with --trace)

here the log from git_hosting.log. this log is from the whole day.

2015-08-28 08:27:27 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 08:27:27 +0200 [INFO] OK!
2015-08-28 08:27:28 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 08:27:28 +0200 [INFO] Done!
2015-08-28 08:27:51 +0200 [INFO] Flush Settings Cache !
2015-08-28 08:27:51 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:27:52 +0200 [INFO] Settings cache flushed!
2015-08-28 08:27:52 +0200 [INFO] Forced resync of all projects (active, closed, archived)...
2015-08-28 08:27:52 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:27:52 +0200 [WARN] update_projects : repository 'projekt-hh' already exists in Gitolite, force mode !
2015-08-28 08:27:52 +0200 [WARN] update_projects : repository 'projekt-hh/lalala' already exists in Gitolite, force mode !
2015-08-28 08:27:52 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:52 +0200 [WARN] update_projects : repository 'projekt-hh/hh-sub1' already exists in Gitolite, force mode !
2015-08-28 08:27:52 +0200 [WARN] update_projects : repository 'projekt-hh/hh-sub1/hh-sub1-2' already exists in Gitolite, force mode !
2015-08-28 08:27:52 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:52 +0200 [WARN] update_projects : repository 'projekt-sm' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'projekt-sm/subproject-sm' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'projekt-hh/hh-sub-2' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'osthus-test-project' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'githooktest' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'osthus-test-project/subproject-01' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'osthus-test-project/subproject-02' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'cv-pmo-testing' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'cv-pmo-testing/client-a-only' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'cv-pmo-testing/client-b-only' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'redmine-jenkins-plugin-testprojekt' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'test-repo-hh-2' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'test-repo-hh-2/vxycvyx' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [WARN] update_projects : repository 'test-repo-hh-2/sdfsdfs' already exists in Gitolite, force mode !
2015-08-28 08:27:53 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 08:27:56 +0200 [INFO] Forced resync of all ssh keys...
2015-08-28 08:27:56 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:27:59 +0200 [INFO] Flush Git Cache !
2015-08-28 08:27:59 +0200 [INFO] Enable README creation for repositories
2015-08-28 08:27:59 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:27:59 +0200 [INFO] '@all' repository already configured, check for RedmineGitHosting key presence
2015-08-28 08:27:59 +0200 [INFO] RedmineGitHosting key is present, nothing to do.
2015-08-28 08:27:59 +0200 [INFO] enable_readme_creation : commiting to Gitolite...
2015-08-28 08:28:01 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 08:28:01 +0200 [INFO] OK!
2015-08-28 08:28:02 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 08:28:02 +0200 [INFO] Done!
2015-08-28 08:28:22 +0200 [INFO] Flush Settings Cache !
2015-08-28 08:28:22 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:28:22 +0200 [INFO] Settings cache flushed!
2015-08-28 08:28:22 +0200 [INFO] Enable README creation for repositories
2015-08-28 08:28:22 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 08:28:22 +0200 [INFO] '@all' repository already configured, check for RedmineGitHosting key presence
2015-08-28 08:28:22 +0200 [INFO] RedmineGitHosting key is present, nothing to do.
2015-08-28 08:28:22 +0200 [INFO] enable_readme_creation : commiting to Gitolite...
2015-08-28 08:28:24 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 08:28:24 +0200 [INFO] OK!
2015-08-28 08:28:24 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 08:28:24 +0200 [INFO] Done!
2015-08-28 11:08:57 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 11:08:57 +0200 [INFO] OK!
2015-08-28 11:08:58 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 11:08:58 +0200 [INFO] Done!
2015-08-28 11:09:44 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 11:09:44 +0200 [INFO] OK!
2015-08-28 11:09:49 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 11:09:49 +0200 [INFO] OK!
2015-08-28 11:10:00 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 11:10:00 +0200 [INFO] OK!
2015-08-28 11:12:10 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 11:12:10 +0200 [INFO] OK!
2015-08-28 11:12:10 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 11:12:10 +0200 [INFO] Done!
2015-08-28 11:12:50 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 11:12:50 +0200 [INFO] OK!
2015-08-28 11:28:30 +0200 [INFO] Gitolite configuration has been modified, resync all projects...
2015-08-28 11:28:30 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 11:28:30 +0200 [INFO] update_projects : repository 'projekt-hh' exists in Gitolite, update it ...
2015-08-28 11:28:30 +0200 [INFO] update_projects : repository 'projekt-hh/lalala' exists in Gitolite, update it ...
2015-08-28 11:28:30 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:30 +0200 [INFO] update_projects : repository 'projekt-hh/hh-sub1' exists in Gitolite, update it ...
2015-08-28 11:28:30 +0200 [INFO] update_projects : repository 'projekt-hh/hh-sub1/hh-sub1-2' exists in Gitolite, update it ...
2015-08-28 11:28:30 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:30 +0200 [INFO] update_projects : repository 'projekt-sm' exists in Gitolite, update it ...
2015-08-28 11:28:30 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:30 +0200 [INFO] update_projects : repository 'projekt-sm/subproject-sm' exists in Gitolite, update it ...
2015-08-28 11:28:30 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:30 +0200 [INFO] update_projects : repository 'projekt-hh/hh-sub-2' exists in Gitolite, update it ...
2015-08-28 11:28:30 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:30 +0200 [INFO] update_projects : repository 'osthus-test-project' exists in Gitolite, update it ...
2015-08-28 11:28:31 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:31 +0200 [INFO] update_projects : repository 'githooktest' exists in Gitolite, update it ...
2015-08-28 11:28:31 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:31 +0200 [INFO] update_projects : repository 'osthus-test-project/subproject-01' exists in Gitolite, update it ...
2015-08-28 11:28:31 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:31 +0200 [INFO] update_projects : repository 'osthus-test-project/subproject-02' exists in Gitolite, update it ...
2015-08-28 11:28:31 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:31 +0200 [INFO] update_projects : repository 'cv-pmo-testing' exists in Gitolite, update it ...
2015-08-28 11:28:31 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:31 +0200 [INFO] update_projects : repository 'cv-pmo-testing/client-a-only' exists in Gitolite, update it ...
2015-08-28 11:28:31 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:31 +0200 [INFO] update_projects : repository 'cv-pmo-testing/client-b-only' exists in Gitolite, update it ...
2015-08-28 11:28:31 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:31 +0200 [INFO] update_projects : repository 'redmine-jenkins-plugin-testprojekt' exists in Gitolite, update it ...
2015-08-28 11:28:31 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:28:31 +0200 [INFO] update_projects : repository 'test-repo-hh-2' exists in Gitolite, update it ...
2015-08-28 11:28:31 +0200 [INFO] update_projects : repository 'test-repo-hh-2/vxycvyx' exists in Gitolite, update it ...
2015-08-28 11:28:31 +0200 [INFO] update_projects : repository 'test-repo-hh-2/sdfsdfs' exists in Gitolite, update it ...
2015-08-28 11:28:31 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:26 +0200 [INFO] Set Git global parameter : redminegitolite.redmineurl (https://redmine-dev.member.osthus.de/githooks/post-receive/redmine)
2015-08-28 11:29:26 +0200 [INFO] Set Git global parameter : redminegitolite.debugmode (false)
2015-08-28 11:29:26 +0200 [INFO] Set Git global parameter : redminegitolite.asyncmode (false)
2015-08-28 11:29:26 +0200 [INFO] Set Git global parameter : multimailhook.mailer (smtp)
2015-08-28 11:29:26 +0200 [INFO] Set Git global parameter : multimailhook.environment (gitolite)
2015-08-28 11:29:27 +0200 [INFO] Set Git global parameter : multimailhook.smtpauth (false)
2015-08-28 11:29:27 +0200 [INFO] Set Git global parameter : multimailhook.smtpserver (win10004.member.osthus.de)
2015-08-28 11:29:27 +0200 [INFO] Set Git global parameter : multimailhook.smtpport (25)
2015-08-28 11:29:27 +0200 [INFO] Set Git global parameter : redminegitolite.redmineurl (https://redmine-dev.member.osthus.de/githooks/post-receive/redmine)
2015-08-28 11:29:27 +0200 [INFO] Set Git global parameter : redminegitolite.debugmode (false)
2015-08-28 11:29:27 +0200 [INFO] Set Git global parameter : redminegitolite.asyncmode (false)
2015-08-28 11:29:39 +0200 [WARN] Performing manual update_repositories operation from command line
2015-08-28 11:29:39 +0200 [INFO] Resync all projects (15)...
2015-08-28 11:29:39 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 11:29:40 +0200 [INFO] update_projects : repository 'projekt-hh' exists in Gitolite, update it ...
2015-08-28 11:29:40 +0200 [INFO] update_projects : repository 'projekt-hh/lalala' exists in Gitolite, update it ...
2015-08-28 11:29:40 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:40 +0200 [INFO] update_projects : repository 'projekt-hh/hh-sub1' exists in Gitolite, update it ...
2015-08-28 11:29:40 +0200 [INFO] update_projects : repository 'projekt-hh/hh-sub1/hh-sub1-2' exists in Gitolite, update it ...
2015-08-28 11:29:40 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:40 +0200 [INFO] update_projects : repository 'projekt-sm' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'projekt-sm/subproject-sm' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'projekt-hh/hh-sub-2' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'osthus-test-project' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'githooktest' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'osthus-test-project/subproject-01' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'osthus-test-project/subproject-02' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'cv-pmo-testing' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'cv-pmo-testing/client-a-only' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'cv-pmo-testing/client-b-only' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'redmine-jenkins-plugin-testprojekt' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'test-repo-hh-2' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'test-repo-hh-2/vxycvyx' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : repository 'test-repo-hh-2/sdfsdfs' exists in Gitolite, update it ...
2015-08-28 11:29:41 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:10 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 11:30:10 +0200 [INFO] OK!
2015-08-28 11:30:12 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 11:30:12 +0200 [INFO] Done!
2015-08-28 11:30:20 +0200 [INFO] Flush Settings Cache !
2015-08-28 11:30:20 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 11:30:20 +0200 [INFO] Settings cache flushed!
2015-08-28 11:30:20 +0200 [INFO] Forced resync of all projects (active, closed, archived)...
2015-08-28 11:30:20 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'projekt-hh' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'projekt-hh/lalala' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'projekt-hh/hh-sub1' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'projekt-hh/hh-sub1/hh-sub1-2' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'projekt-sm' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'projekt-sm/subproject-sm' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'projekt-hh/hh-sub-2' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'osthus-test-project' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'githooktest' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'osthus-test-project/subproject-01' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'osthus-test-project/subproject-02' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'cv-pmo-testing' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'cv-pmo-testing/client-a-only' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'cv-pmo-testing/client-b-only' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'redmine-jenkins-plugin-testprojekt' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'test-repo-hh-2' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'test-repo-hh-2/vxycvyx' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [WARN] update_projects : repository 'test-repo-hh-2/sdfsdfs' already exists in Gitolite, force mode !
2015-08-28 11:30:21 +0200 [INFO] update_projects : commiting to Gitolite...
2015-08-28 11:30:23 +0200 [INFO] Forced resync of all ssh keys...
2015-08-28 11:30:23 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 11:30:27 +0200 [INFO] Enable README creation for repositories
2015-08-28 11:30:27 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 11:30:27 +0200 [INFO] '@all' repository already configured, check for RedmineGitHosting key presence
2015-08-28 11:30:27 +0200 [INFO] RedmineGitHosting key is present, nothing to do.
2015-08-28 11:30:27 +0200 [INFO] enable_readme_creation : commiting to Gitolite...
2015-08-28 11:30:28 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 11:30:28 +0200 [INFO] OK!
2015-08-28 11:30:28 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 11:30:29 +0200 [INFO] Done!
2015-08-28 13:35:41 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 13:35:41 +0200 [INFO] OK!
2015-08-28 13:35:42 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 13:35:42 +0200 [INFO] Done!
2015-08-28 13:35:58 +0200 [INFO] Flush Settings Cache !
2015-08-28 13:35:58 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 13:35:58 +0200 [INFO] Settings cache flushed!
2015-08-28 13:35:58 +0200 [INFO] Enable README creation for repositories
2015-08-28 13:35:58 +0200 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-08-28 13:35:59 +0200 [INFO] '@all' repository already configured, check for RedmineGitHosting key presence
2015-08-28 13:35:59 +0200 [INFO] RedmineGitHosting key is present, nothing to do.
2015-08-28 13:35:59 +0200 [INFO] enable_readme_creation : commiting to Gitolite...
2015-08-28 13:36:01 +0200 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2015-08-28 13:36:01 +0200 [INFO] OK!
2015-08-28 13:36:02 +0200 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-08-28 13:36:02 +0200 [INFO] Done!
2015-08-28 17:35:21 +0200 [WARN] Performing manual fetch_changesets operation from command line
2015-08-28 17:35:21 +0200 [INFO] Flush Git Cache !

@n-rodriguez
Copy link
Contributor

Thank you!
I think I got it.

n-rodriguez pushed a commit that referenced this issue Aug 28, 2015
n-rodriguez pushed a commit that referenced this issue Aug 28, 2015
@n-rodriguez
Copy link
Contributor

Can you please retry with the new patch?

@n-rodriguez
Copy link
Contributor

Btw fetch_changesets is a good way for bug report ;)

@n-rodriguez n-rodriguez changed the title issu th access git repos after migrate redmine and git_hosting plugin Issues with Git 1.7.1 Aug 28, 2015
@henhof
Copy link
Author

henhof commented Aug 28, 2015

It works, that's amazing!!

Thanks a lot for your support and great plugin!

One question about upgrade the Git version. Can I do that and anything is fine or need I to recompile the plugin or else?

@n-rodriguez
Copy link
Contributor

Can I do that and anything is fine

yep

or need I to recompile the plugin or else?

nothing to do on that side ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants