{"action":"created","issue":{"url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/477","labels_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/477/comments","events_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/477/events","html_url":"https://github.com/jbox-web/redmine_git_hosting/issues/477","id":93565085,"number":477,"title":"Rugged::ConfigError (Error stat'ing config file '/root/.gitconfig'):","user":{"login":"mrueg","id":489370,"avatar_url":"https://avatars.githubusercontent.com/u/489370?v=3","gravatar_id":"","url":"https://api.github.com/users/mrueg","html_url":"https://github.com/mrueg","followers_url":"https://api.github.com/users/mrueg/followers","following_url":"https://api.github.com/users/mrueg/following{/other_user}","gists_url":"https://api.github.com/users/mrueg/gists{/gist_id}","starred_url":"https://api.github.com/users/mrueg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrueg/subscriptions","organizations_url":"https://api.github.com/users/mrueg/orgs","repos_url":"https://api.github.com/users/mrueg/repos","events_url":"https://api.github.com/users/mrueg/events{/privacy}","received_events_url":"https://api.github.com/users/mrueg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"n-rodriguez","id":3433835,"avatar_url":"https://avatars.githubusercontent.com/u/3433835?v=3","gravatar_id":"","url":"https://api.github.com/users/n-rodriguez","html_url":"https://github.com/n-rodriguez","followers_url":"https://api.github.com/users/n-rodriguez/followers","following_url":"https://api.github.com/users/n-rodriguez/following{/other_user}","gists_url":"https://api.github.com/users/n-rodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/n-rodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-rodriguez/subscriptions","organizations_url":"https://api.github.com/users/n-rodriguez/orgs","repos_url":"https://api.github.com/users/n-rodriguez/repos","events_url":"https://api.github.com/users/n-rodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/n-rodriguez/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-07-07T16:01:25Z","updated_at":"2015-07-20T13:43:34Z","closed_at":null,"body":"I'm using redmine 3.0.3, gitolite 3.6.3, redmine_git_hosting 1.1.1 and rugged-1.2.0.\r\nWhen I try to remove or create a public key to a user, I see the following error. Any idea why it tries to access /root/.gitconfig ?\r\n\r\nCompleted 500 Internal Server Error in 40ms (ActiveRecord: 5.5ms)\r\n```\r\nRugged::ConfigError (Error stat'ing config file '/root/.gitconfig'):\r\n  gitolite-rugged (1.2.0) lib/gitolite/gitolite_admin.rb:80:in `new'\r\n  gitolite-rugged (1.2.0) lib/gitolite/gitolite_admin.rb:80:in `is_gitolite_admin_repo?'\r\n  gitolite-rugged (1.2.0) lib/gitolite/gitolite_admin.rb:312:in `set_repo'\r\n  gitolite-rugged (1.2.0) lib/gitolite/gitolite_admin.rb:64:in `initialize'\r\n  plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_wrapper.rb:71:in `new'\r\n  plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_wrapper.rb:71:in `gitolite_admin'\r\n  plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_wrapper.rb:39:in `resync_gitolite'\r\n  plugins/redmine_git_hosting/lib/redmine_git_hosting.rb:50:in `resync_gitolite'\r\n  plugins/redmine_git_hosting/app/services/gitolite_accessor.rb:115:in `resync_gitolite'\r\n  plugins/redmine_git_hosting/app/services/gitolite_accessor.rb:8:in `create_ssh_key'\r\n  plugins/redmine_git_hosting/app/controllers/gitolite_public_keys_controller.rb:91:in `create_ssh_key'\r\n  plugins/redmine_git_hosting/app/controllers/gitolite_public_keys_controller.rb:22:in `create'\r\n  actionpack (4.2.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\r\n  actionpack (4.2.3) lib/abstract_controller/base.rb:198:in `process_action'\r\n  actionpack (4.2.3) lib/action_controller/metal/rendering.rb:10:in `process_action'\r\n  actionpack (4.2.3) lib/abstract_controller/callbacks.rb:20:in `block in process_action'\r\n  activesupport (4.2.3) lib/active_support/callbacks.rb:115:in `call'\r\n  activesupport (4.2.3) lib/active_support/callbacks.rb:115:in `call'\r\n  activesupport (4.2.3) lib/active_support/callbacks.rb:553:in `block (2 levels) in compile'\r\n  activesupport (4.2.3) lib/active_support/callbacks.rb:503:in `call'\r\n  activesupport (4.2.3) lib/active_support/callbacks.rb:503:in `call'\r\n  activesupport (4.2.3) lib/active_support/callbacks.rb:88:in `run_callbacks'\r\n  actionpack (4.2.3) lib/abstract_controller/callbacks.rb:19:in `process_action'\r\n  actionpack (4.2.3) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\n  actionpack (4.2.3) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'\r\n  activesupport (4.2.3) lib/active_support/notifications.rb:164:in `block in instrument'\r\n  activesupport (4.2.3) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n  activesupport (4.2.3) lib/active_support/notifications.rb:164:in `instrument'\r\n  actionpack (4.2.3) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\n  actionpack (4.2.3) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\n  activerecord (4.2.3) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\n  actionpack (4.2.3) lib/abstract_controller/base.rb:137:in `process'\r\n  actionview (4.2.3) lib/action_view/rendering.rb:30:in `process'\r\n  actionpack (4.2.3) lib/action_controller/metal.rb:196:in `dispatch'\r\n  actionpack (4.2.3) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\n  actionpack (4.2.3) lib/action_controller/metal.rb:237:in `block in action'\r\n  actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:76:in `call'\r\n  actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:76:in `dispatch'\r\n  actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:45:in `serve'\r\n  actionpack (4.2.3) lib/action_dispatch/journey/router.rb:43:in `block in serve'\r\n  actionpack (4.2.3) lib/action_dispatch/journey/router.rb:30:in `each'\r\n  actionpack (4.2.3) lib/action_dispatch/journey/router.rb:30:in `serve'\r\n  actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:821:in `call'\r\n  rack-openid (1.4.2) lib/rack/openid.rb:98:in `call'\r\n  rack (1.6.4) lib/rack/etag.rb:24:in `call'\r\n  rack (1.6.4) lib/rack/conditionalget.rb:38:in `call'\r\n  rack (1.6.4) lib/rack/head.rb:13:in `call'\r\n  actionpack-xml_parser (1.0.2) lib/action_dispatch/xml_params_parser.rb:16:in `call'\r\n  actionpack (4.2.3) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\n  actionpack (4.2.3) lib/action_dispatch/middleware/flash.rb:260:in `call'\r\n  rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'\r\n  rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'\r\n  actionpack (4.2.3) lib/action_dispatch/middleware/cookies.rb:560:in `call'\r\n  activerecord (4.2.3) lib/active_record/query_cache.rb:36:in `call'\r\n  activerecord (4.2.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'\r\n  actionpack (4.2.3) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\n  activesupport (4.2.3) lib/active_support/callbacks.rb:84:in `run_callbacks'\r\n  actionpack (4.2.3) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\n  actionpack (4.2.3) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'\r\n  actionpack (4.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\n  actionpack (4.2.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\n  railties (4.2.3) lib/rails/rack/logger.rb:38:in `call_app'\r\n  railties (4.2.3) lib/rails/rack/logger.rb:20:in `block in call'\r\n  activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n  activesupport (4.2.3) lib/active_support/tagged_logging.rb:26:in `tagged'\r\n  activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `tagged'\r\n  railties (4.2.3) lib/rails/rack/logger.rb:20:in `call'\r\n  actionpack (4.2.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\n  rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'\r\n  rack (1.6.4) lib/rack/runtime.rb:18:in `call'\r\n  activesupport (4.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'\r\n  actionpack (4.2.3) lib/action_dispatch/middleware/static.rb:116:in `call'\r\n  rack (1.6.4) lib/rack/sendfile.rb:113:in `call'\r\n  railties (4.2.3) lib/rails/engine.rb:518:in `call'\r\n  railties (4.2.3) lib/rails/application.rb:165:in `call'\r\n  railties (4.2.3) lib/rails/railtie.rb:194:in `public_send'\r\n  railties (4.2.3) lib/rails/railtie.rb:194:in `method_missing'\r\n  thin (1.6.3) lib/thin/connection.rb:86:in `block in pre_process'\r\n  thin (1.6.3) lib/thin/connection.rb:84:in `catch'\r\n  thin (1.6.3) lib/thin/connection.rb:84:in `pre_process'\r\n  thin (1.6.3) lib/thin/connection.rb:53:in `process'\r\n  thin (1.6.3) lib/thin/connection.rb:39:in `receive_data'\r\n  eventmachine (1.0.7) lib/eventmachine.rb:187:in `run_machine'\r\n  eventmachine (1.0.7) lib/eventmachine.rb:187:in `run'\r\n  thin (1.6.3) lib/thin/backends/base.rb:73:in `start'\r\n  thin (1.6.3) lib/thin/server.rb:162:in `start'\r\n  thin (1.6.3) lib/thin/controllers/controller.rb:87:in `start'\r\n  thin (1.6.3) lib/thin/runner.rb:200:in `run_command'\r\n  thin (1.6.3) lib/thin/runner.rb:156:in `run!'\r\n  thin (1.6.3) bin/thin:6:in `<top (required)>'\r\n  /usr/bin/thin:9:in `load'\r\n  /usr/bin/thin:9:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/comments/122889226","html_url":"https://github.com/jbox-web/redmine_git_hosting/issues/477#issuecomment-122889226","issue_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/477","id":122889226,"user":{"login":"jensk","id":31265,"avatar_url":"https://avatars.githubusercontent.com/u/31265?v=3","gravatar_id":"","url":"https://api.github.com/users/jensk","html_url":"https://github.com/jensk","followers_url":"https://api.github.com/users/jensk/followers","following_url":"https://api.github.com/users/jensk/following{/other_user}","gists_url":"https://api.github.com/users/jensk/gists{/gist_id}","starred_url":"https://api.github.com/users/jensk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensk/subscriptions","organizations_url":"https://api.github.com/users/jensk/orgs","repos_url":"https://api.github.com/users/jensk/repos","events_url":"https://api.github.com/users/jensk/events{/privacy}","received_events_url":"https://api.github.com/users/jensk/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T13:43:34Z","updated_at":"2015-07-20T13:43:34Z","body":"@mrueg I just added export HOME=/path/to/redmine to the init script before the line where the thin daemon is started."}}