This message was deleted.
# fleet
a
This message was deleted.
i
I just created a
GitRepo
with ssh (ssh-ed25519) without problem in Rancher 2.7.6. Can you check the logs of the k8s job created by GitJob? This job is cloning the repo, and executes
fleet apply
to create the
Bundle
a
Maybe it is that it doesn't support openssh pem format
i
was it working in 2.7.5? 2.7.6 didn't change anything regarding git
a
I don't know it's a fresh use
let me check on other clusters
👍 1
I know it worked in the past
-----BEGIN EC PRIVATE KEY----- this worked OPENSSH doesn't as it seems
i
-----BEGIN OPENSSH PRIVATE KEY----- this key I created worked for me with github
a
gitlab here...
but I saw the issue in tekton
Copy code
{"level":"error","ts":1695651320.517228,"caller":"git/git.go:53","msg":"Error running git [fetch --recurse-submodules=yes --depth=1 origin --update-head-ok --force f29ac8ef0884c9d611280113c3546b2464492c07]: exit status 128\nWarning: Permanently added '<http://gitlab.com|gitlab.com>,172.65.251.78' (ECDSA) to the list of known hosts.\r\nLoad key \"/tekton/creds/.ssh/id_gitlab\": invalid format\r\ngit@gitlab.com: Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n","stacktrace":"<http://github.com/tektoncd/pipeline/pkg/git.run|github.com/tektoncd/pipeline/pkg/git.run>\n\t/go/src/github.com/tektoncd/pipeline/pkg/git/git.go:53\ngithub.com/tektoncd/pipeline/pkg/git.Fetch\n\t/go/src/github.com/tektoncd/pipeline/pkg/git/git.go:156\nmain.main\n\t/go/src/github.com/tektoncd/pipeline/cmd/git-init/main.go:53\nruntime.main\n\t/usr/lib64/go/1.20/src/runtime/proc.go:250"}
2023-09-25T16:15:20.517913982+02:00 {"level":"fatal","ts":1695651320.517716,"caller":"git-init/main.go:54","msg":"Error fetching git repository: failed to fetch [f29ac8ef0884c9d611280113c3546b2464492c07]: exit status 128","stacktrace":"main.main\n\t/go/src/github.com/tektoncd/pipeline/cmd/git-init/main.go:54\nruntime.main\n\t/usr/lib64/go/1.20/src/runtime/proc.go:250"}
I made ECDSA key which now works over git+ssh
👍 1
with PEM output (no more OPENSSH)