hfjooste / USKDemo

Demo project for the Ultimate Starter Kit plugin

Home Page:https://github.com/hfjooste/UltimateStarterKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't clone the repo

unreal79 opened this issue · comments

When I try to clone the repo through "Open with GitHub Desktop" I'm getting the error:

Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.

Would you like to retry cloning ?

I'm getting the same error message with UltimateStarterKit... I have no problem cloning other repos (just tested).

Tried git clone --recurse-submodules --remote-submodules https://github.com/hfjooste/USKDemo.git. The issue is with submodule USK:

Cloning into 'USKDemo'...                                                                                                                                 22:12remote: Enumerating objects: 648, done.
remote: Counting objects: 100% (128/128), done.
remote: Compressing objects: 100% (101/101), done.
remote: Total 648 (delta 30), reused 86 (delta 19), pack-reused 520Receiving objects:  99% (642/648), 213.84 MiB | 10.55 MiB/s
Receiving objects: 100% (648/648), 215.63 MiB | 8.41 MiB/s, done.
Resolving deltas: 100% (186/186), done.
Updating files: 100% (435/435), done.
Submodule 'Plugins/USK' (git@github.com:hfjooste/UltimateStarterKit.git) registered for path 'Plugins/USK'
Submodule 'UnrealPackager' (git@github.com:hfjooste/UnrealPackager.git) registered for path 'UnrealPackager'
Cloning into 'F:/gamedev/__Projects/USKDemo/Plugins/USK'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:hfjooste/UltimateStarterKit.git' into submodule path 'F:/gamedev/__Projects/USKDemo/Plugins/USK' failed
Failed to clone 'Plugins/USK'. Retry scheduled
Cloning into 'F:/gamedev/__Projects/USKDemo/UnrealPackager'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:hfjooste/UnrealPackager.git' into submodule path 'F:/gamedev/__Projects/USKDemo/UnrealPackager' failed
Failed to clone 'UnrealPackager'. Retry scheduled
Cloning into 'F:/gamedev/__Projects/USKDemo/Plugins/USK'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:hfjooste/UltimateStarterKit.git' into submodule path 'F:/gamedev/__Projects/USKDemo/Plugins/USK' failed
Failed to clone 'Plugins/USK' a second time, aborting

Downloading USK manually works, though.

Hey @unreal79 . I've noticed you're cloning it using the HTTPS link. Have you added an SSH key to your account? This repo and all the submodules are public and there aren't any permissions that should be granted. You could try adding a key to your account and see if that fixes the issue (https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)

If it still fails, then try this:

  1. Clone the repo using the HTTPS link: git clone https://github.com/hfjooste/USKDemo.git
  2. Open the .gitmodules file with a text editor (in the root of the project)
  3. Change the URLs to the HTTPS ones (https://github.com/hfjooste/UltimateStarterKit.git and https://github.com/hfjooste/UnrealPackager.git)
  4. Run git submodule --init --recursive

Sorry I don't how to do this with the GitHub desktop client. I've never used that before

Indeed there are no SSH keys associated with my account. This never been a problem in the past, though. Thanks for the explanation -- when I have time I'll setup a SSH key.