4
No SSH key
M
Michael Lynch
I followed the Gitlab project setup guide, but all the builds fail because CircleCI says my SSH key is invalid:
Using SSH Config Dir '/home/circleci/.ssh'
git version 2.25.1
Cloning git repository
Cloning into '.'...
Warning: Permanently added the ECDSA host key for IP address '172.65.251.78' to the list of known hosts.
Load key "/home/circleci/.ssh/id_rsa": invalid format
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
exit status 128
I didn't add a new SSH key, so it's just using the default CircleCI SSH key that's supposed to have access to the Gitlab repo. When I SSH into CircleCI to check the build, it shows that the SSH key is just an empty file:
circleci@0889e6f9737d:~$ cat /home/circleci/.ssh/id_rsa
Nathan Fish
SSH key is automatically generated when setting up a project or when adding new triggers and configurations to an existing project.
Nathan Fish
Michael Lynch just getting back to this. Can you try setting up the project from scratch again? Usually the SSH key is setup automatically during the project setup. If that doesn't work we will need to do a little digging. During preview there were a lot of changes being rolled out and you may have just run into one of those when you setup this particular project. If setting up a new project doesn't work please send over the project name/id details and we should be able to dig in more on what may have gone wrong.
M
Michael Lynch
Nathan Fish: How can I create the project from scratch? There doesn't seem to be a way to delete a project or org from CircleCI. I tried creating a new Gitlab PAT and new CircleCI project for the same repo, but now it doesn't even trigger builds on Circle. Project ID is 6282b59e-e4c9-48e4-8f7a-535296c1188d.
Nathan Fish
Michael Lynch: I sent you an email with steps. Let me know if you didn't receive it. If the steps provided don't resolve the issue we can jump on a zoom call.