Invalid or unknown remote ssh hostkey (Rugged?)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start with data/vendor/libgit2/src/libgit2/transports/ssh.c at line 743 and compare Rugged 1.5.1 with 1.5.0.1 in the Docker container. Check how the startup scripts invoke bundle install and review git_hosting.log while reproducing the Rescue-tab action. Done means the Rugged/Docker interaction is confirmed or ruled out and the affected version or configuration is recorded.
Written by the indexing model from the issue text.
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.
- Dominant language
- Ruby
- Stars
- 275
- Forks
- 118
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from redmine-git-hosting/redmine_git_hosting
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
redmine-git-hosting/redmine_git_hosting#823 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
redmine-git-hosting/redmine_git_hosting#838 · 1 comment · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
ArgumentError in call_webservices.rb: Incorrect argument passing to http_post method causes failure Open
Difficulty 1/5 Under an hour Newbie friendliness 52/100
redmine-git-hosting/redmine_git_hosting#834 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
redmine-git-hosting/redmine_git_hosting#833 · 1 reaction ·
All issues in redmine-git-hosting/redmine_git_hosting
Similar issues
-
バグ
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
voxpupuli/puppet-epel#186 · 1 comment ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) OpenBug Frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
TheOdinProject/curriculum#31402 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100