Hi Mick,
thanks for sharing your knowledge.
But somehow this still does not work.
- I created a PCKS #8 key and added it to the gitlab instance
- I added the gitlab servers fp to the known_hosts
- I restricted the c:\ssh folder to the User the server runs under (system)
But I still get this error. And I also wonder that the UC4 error says 'HTTP 400' since the git connection only should be established via ssh.
One thing i've seen is: If I use ssh://git@... as the repo Url I can see this in the server trace.
Caused by: org.eclipse.jgit.errors.NotSupportedException: URI not supported: ssh:///git@git.core.xxxxxxx:user/xxx_uc4.git
But if I use git@... I do not see anything in any log file(s)
Best regards, -chris
Original Message:
Sent: Aug 19, 2022 10:37 AM
From: Mick Solliday
Subject: Problem configuring git version control (gitlab)
Chris,
I have been working through these similar trials with DevOps Server. If you need more in depth info for any of this, feel free to ask.
- From the location "C" I'm assuming you are doing this from a windows system. If you have more than 1 application server, you'll have to make sure the private key is on all of them.
- Regardless of location, security settings on the private key need to be restricted to the user running the Automic UC4 service (You can leave an Administrator group on it as well).
- You will need to add the fingerprint to the known_hosts file to allow your systems to reach the repository. <-- I think this step will fix your particular error, since it fixed that one for me.
- Automic needs the key in PCKS #8 format.
Original Message:
Sent: Aug 18, 2022 04:00 AM
From: Chris Taubenheim
Subject: Problem configuring git version control (gitlab)
Dear Community,
I recently tried to setup git version control in UC4.
What did I do?
I created a repository on my gitlab instance
I creates c:\ssh and generated ssh keys on the server where UC4 runs
I uploaded the public key to my gitlab instance
I configured the UC_CLIENT_SETTINGS as seen below
Best Regards, -chris-