Skip to content

error getting Gitolite infos #444

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

Closed
abubobe opened this issue May 27, 2015 · 8 comments
Closed

error getting Gitolite infos #444

abubobe opened this issue May 27, 2015 · 8 comments
Assignees
Labels

Comments

@abubobe
Copy link

abubobe commented May 27, 2015

Hi,

I saw many ERROR like below in my git_hosting.log
I have created the ssh_keys for "git" user.
I have configured so "git" user can run as "www-data" and vice versa.

Can you tell me what I 've possibly missed?

Thanks,
Abubobe

/opt/redmine-3.0.3/log/git_hosting.log:

2015-05-27 11:02:00 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-05-27 11:02:00 +0800 [INFO] Testing if Redmine user 'www-data' can sudo to Gitolite user 'git'...
2015-05-27 11:02:00 +0800 [INFO] OK!
2015-05-27 11:02:01 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-05-27 11:02:01 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-05-27 11:02:01 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-05-27 11:02:01 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-05-27 11:02:01 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-05-27 11:02:01 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-05-27 11:02:01 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-05-27 11:02:02 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-05-27 11:02:02 +0800 [ERROR] Problems to retrieve Gitolite hook parameters in Gitolite config 'namespace : redminegitolite'
2015-05-27 11:02:02 +0800 [ERROR] Problems to retrieve Gitolite hook parameters in Gitolite config 'namespace : multimailhook'
2015-05-27 11:02:02 +0800 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-05-27 11:02:02 +0800 [INFO] Done !
2015-05-27 11:02:02 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-05-27 11:02:02 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-05-27 11:02:02 +0800 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.

My redmine environment:
Redmine 3.0.3.stable

Default administrator account changed True
Attachments directory writable True
Plugin assets directory writable (./public/plugin_assets) True
RMagick available (optional) True
ImageMagick convert available (optional) True

Environment:
  Redmine version                3.0.3.stable
  Ruby version                   1.9.3-p484 (2013-11-22) [i686-linux]
  Rails version                  4.2.1
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            1.9.1
  Filesystem                     
  Xitolite                       1.9.1
Redmine plugins:
  clipboard_image_paste          1.10
  progressive_projects_list      2.0.1
  redmine_bootstrap_kit          0.2.3
  redmine_git_hosting            1.0.4
  redmine_spent_time             3.0.1
@abubobe
Copy link
Author

abubobe commented May 30, 2015

After following steps provided in #440 by seberoth (https://github.com/seberoth), most of the error lines are gone and this new error line appeared in git_hosting.log:
[ERROR] Failed to authenticate SSH session: Waiting for USERAUTH response

How to fix this?

@n-rodriguez
Copy link
Contributor

What does redmine$ ssh -i ssh_keys/redmine_gitolite_admin_id_rsa git@localhost infosay?

@n-rodriguez n-rodriguez self-assigned this Jun 2, 2015
@abubobe
Copy link
Author

abubobe commented Jun 9, 2015

hi,

I upgraded the plugin to 1.1.0.
the git_hosting.log is now showing back the error:

2015-06-09 15:23:32 +0000 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-06-09 15:23:33 +0000 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.

When I issued your command, strangely it returned 'info' result:

git@fhysvr:/opt/redmine/redmine-3.0.3/plugins/redmine_git_hosting$ ssh -i ssh_keys/redmine_gitolite_admin_id_rsa git@localhost info
/usr/share/info/dir
File: dir,  Node: Top   This is the top of the INFO tree
  This (the Directory node) gives a menu of major topics.
  Typing "q" exits, "?" lists all Info commands, "d" returns here,
  "h" gives a primer for first-timers,
  "mEmacs" visits the Emacs manual, etc.
  In Emacs, you can click mouse button 2 on a menu item or cross reference
  to select it.
* Menu:
Basics
* Common options: (coreutils)Common options.
* Coreutils: (coreutils).       Core GNU (file, text, shell) utilities.
* Date input formats: (coreutils)Date input formats.
* Ed: (ed).                     The GNU line editor
* File permissions: (coreutils)File permissions.
                                Access modes.
* Finding files: (find).        Operating on files matching certain criteria.
...

@n-rodriguez
Copy link
Contributor

@abubobe
Copy link
Author

abubobe commented Jun 10, 2015

hi Nicolas,

This error:

2015-06-09 15:23:32 +0000 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.
2015-06-09 15:23:33 +0000 [ERROR] Error while getting Gitolite infos, check your SSH keys (path, permissions) or your Git user.

was gone after I set properly permission of redmine_gitolite_admin_id_rsa to 0600.

Now I see other ERRORs like these:

2015-06-10 19:13:57 +0000 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-06-10 19:13:58 +0000 [ERROR] Access denied for Gitolite Admin SSH Keys
2015-06-10 19:13:58 +0000 [ERROR] Early EOF
2015-06-10 19:13:58 +0000 [INFO] Enable README creation for repositories
2015-06-10 19:13:58 +0000 [INFO] Create tmp directory : '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-06-10 19:13:58 +0000 [INFO] Accessing gitolite-admin.git at '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-06-10 19:13:59 +0000 [ERROR] Access denied for Gitolite Admin SSH Keys
2015-06-10 19:13:59 +0000 [ERROR] Early EOF
2015-06-10 19:14:00 +0000 [INFO] Create tmp directory : '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-06-10 19:14:00 +0000 [INFO] Testing if Redmine user 'www-data' can sudo to Gitolite user 'git'...
2015-06-10 19:14:00 +0000 [INFO] OK!
2015-06-10 19:14:16 +0000 [INFO] Installing Redmine Gitolite mirroring SSH keys ...
2015-06-10 19:14:16 +0000 [INFO] Done!
2015-06-10 19:14:28 +0000 [ERROR] Git exited with non-zero status : 128

What're those error referring to?

I have:

... but my gitolite banner is still not right.

@n-rodriguez
Copy link
Contributor

@n-rodriguez
Copy link
Contributor

Access denied for Gitolite Admin SSH Keys

This means that this SSH key has no read access to Gitolite Admin repo thus the next error : [ERROR] Early EOF.

@n-rodriguez
Copy link
Contributor

#454 (comment)

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