You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a database you are bringing to a new installation and the SSH keys for it are no longer valid, instead of displaying the page with red exclamation marks, you get a 500 Internal Server Error. This makes it impossible to update the data without directly manipulating it in the database. The error you receive is:
This is because in lib/redmine_gitolite/gitolite_modules/mirroring.rb, the install_private_key and install_public_key methods try to read the file blindly in the sudo_install_file() call:
sudo_install_file(File.read(gitolite_ssh_private_key), gitolite_ssh_private_key_dest_path, '600')
The fix for this is trivial, toss a begin/rescue block around that call and it works as expected.
The text was updated successfully, but these errors were encountered:
If you have a database you are bringing to a new installation and the SSH keys for it are no longer valid, instead of displaying the page with red exclamation marks, you get a 500 Internal Server Error. This makes it impossible to update the data without directly manipulating it in the database. The error you receive is:
This is because in lib/redmine_gitolite/gitolite_modules/mirroring.rb, the install_private_key and install_public_key methods try to read the file blindly in the sudo_install_file() call:
sudo_install_file(File.read(gitolite_ssh_private_key), gitolite_ssh_private_key_dest_path, '600')
The fix for this is trivial, toss a begin/rescue block around that call and it works as expected.
The text was updated successfully, but these errors were encountered: