Description
A week ago I have updated Redmine to the latest v5.0.4 and redmine_git_hosting v6.0.1. All setup is running on on modified official Docker image. Previously there was Redmine v4.2.x that was made same way and git was working just perfectly.
Today I have my colleague reported that when he tries to checkout repository git asks for password and I know that public keys are not working. Went to Admin->Plugins->Redmine Git Hosting Plugin -> Rescue TAB
checked all check boxes and hit save. That was to fast from the last time I have ever used this function. Later checked log file git_hosting.log
which showed errors:
2023-02-21 22:16:30 +0200 [ERROR] Invalid Gitolite Admin SSH Keys
2023-02-21 22:16:30 +0200 [ERROR] invalid or unknown remote ssh hostkey
... next several hours was trying different methods: checked permissions, recreated all certificates several times, enabled debug mode on Redmine and also on SSHD process nothing helped. And it was unclear from where this error is coming from. I tried to search for that error using Google and I think I found that it is related to gem named rugged
and in the latest version v1.5.1 this error message was added in the code. Rugged 1.5.0.1 -> 1.5.1 file data/vendor/libgit2/src/libgit2/transports/ssh.c line: 743
When I check gem list
inside Docker container I see that there is rugged (1.5.1)
I tried manually to remove this version and install 1.5.0.1 but if I restart Docker container it automatically installs all gems using bundle install
as there are scripts on startup. I will change them later and try to eliminate them.
Has may be anybody sported such problem? That rugged version was released January 21, 2023. So if this is related then all new installations will get in to this problem.