Skip to content

Gitolite authorized_keys not updating #713

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
alfiyansys opened this issue Apr 9, 2018 · 4 comments
Closed

Gitolite authorized_keys not updating #713

alfiyansys opened this issue Apr 9, 2018 · 4 comments
Assignees
Labels

Comments

@alfiyansys
Copy link

Hi, I'm new to Redmine.

I had some difficulties when re-syncing ssh-keys, $GITOLITE_HOME/.ssh/authorized_keys is not updating.
As usual, I ran: Administration -> Redmine Git Hosting -> Rescue, and resync all SSH keys.

Last week it works normally, but suddenly, today I got these errors:

2018-04-10 00:42:56 +0700 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2018-04-10 00:42:56 +0700 [INFO] OK!
2018-04-10 00:43:42 +0700 [INFO] Flush Settings Cache !
2018-04-10 00:43:42 +0700 [INFO] Settings cache flushed!
2018-04-10 00:43:42 +0700 [INFO] Forced resync of all ssh keys...
2018-04-10 00:43:42 +0700 [ERROR] Invalid Gitolite Admin SSH Keys
2018-04-10 00:43:42 +0700 [ERROR] FATAL: R any gitolite-admin admin DENIED by fallthru
(or you mis-spelled the reponame)

2018-04-10 00:43:42 +0700 [INFO] Enable RW access on all Gitolite repositories
2018-04-10 00:43:42 +0700 [INFO] Create Gitolite Admin directory : '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2018-04-10 00:43:42 +0700 [ERROR] Invalid Gitolite Admin SSH Keys
2018-04-10 00:43:42 +0700 [ERROR] FATAL: R any gitolite-admin admin DENIED by fallthru
(or you mis-spelled the reponame)

2018-04-10 00:43:43 +0700 [INFO] Create Gitolite Admin directory : '/tmp/redmine_git_hosting/git/gitolite-admin.git'
2018-04-10 00:43:43 +0700 [INFO] Testing if Redmine user 'redmine' can sudo to Gitolite user 'git'...
2018-04-10 00:43:43 +0700 [INFO] OK!

Config Test is all green.

screen shot 2018-04-10 at 01 00 55

screen shot 2018-04-10 at 01 01 08

I'm aware that it might related to #200, but isn't.

Any clues?

Thank you.

@n-rodriguez
Copy link
Contributor

@n-rodriguez n-rodriguez self-assigned this May 9, 2018
@ArcolaJasper
Copy link

It looks like something can't cope with new format ssh keys (ones created with '-o')> I suspect it won't work with ecdsa or ed25519 keys as well. using ssh-keygen -t rsa -f filename works (otherwise I had "Invalid Gitolite Admin SSH Keys").

@alfiyansys
Copy link
Author

Hi, after tinkering with some options and experiments, I found workaround, maybe not optimal, but it works for few months now :)

I made it available from gist here https://gist.github.com/alfiyansys/df6a1b99ec646b1e4f3c638376f44a77

@PowerKiKi
Copy link
Collaborator

As discussed in #732 (comment), issues related to Redmine < 4.0 or severely outdated issues are being closed to help clean up the issue tracker.

If this issue is still relevant to you and you are running Redmine >= 4.0, please open a new issue including all new relevant information.

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

4 participants