carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.11k stars 3.58k forks source link

Can not git clone CarlaUnreal from UnrealEngine #4543

Closed ethanchiang6516 closed 2 years ago

ethanchiang6516 commented 3 years ago

Dear sir:

Environment : Ubuntu 18.04 Can not run this order git clone --depth 1 -b carla https://github.com/CarlaUnreal/UnrealEngine.git ~/UnrealEngine_4.26

because git hub need "Two-factor authentication" Ubuntu show error as follow: remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: unable to access 'https://github.com/CarlaUnreal/UnrealEngine.git/': The requested URL returned error: 403

Ethan -->

iamweiweishi commented 3 years ago

The same issue.

CaptnMorgan833 commented 3 years ago

You have to create a personal token in your GitHub Account settings (under developer settings). See https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ as mentioned in your error log.

Then it worked.

But I ran into the next problem. After setting up the personal token I get the following message when cloning:

fatal: Repository 'https://github.com/CarlaUnreal/UnrealEngine.git/' not found.

It seems the repository does not exist anymore. Or has it been moved to another repository?

CaptnMorgan833 commented 3 years ago

Ah okay, did not accept the invitation from EpicGames after connecting EpicGames acc to my GitHub acc. This is why I had no access to the repository.

iunknown10 commented 2 years ago

You have to create a personal token in your GitHub Account settings (under developer settings). See https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ as mentioned in your error log.

Then it worked.

But I ran into the next problem. After setting up the personal token I get the following message when cloning:

fatal: Repository 'https://github.com/CarlaUnreal/UnrealEngine.git/' not found.

It seems the repository does not exist anymore. Or has it been moved to another repository?

https://www.unrealengine.com/en-US/ue4-on-github

  1. GitHub will send an email inviting you to join the @EpicGames organization on GitHub. You must select the Join @EpicGames button in this email within seven days to complete the GitHub and Epic Games account linking process. After step 8, you can find the repositories.
zlg9folira commented 2 years ago

I have the same issue, already accepted the invitation link and received confirmation email. Still get this error when using my token: unable to access 'https://github.com/CarlaUnreal/UnrealEngine.git/': The requested URL returned error: 403

bipul-mohanto commented 2 years ago

Same Issue Also.

I am using Ubuntu 22.04, and trying to work on unreal engine 4.0 version as this blogpost shows. I have generated my github personal access token already, and my github account is also connected with epic games. I have used the command git clone --recursive --branch release https://github.com/EpicGames/UnrealEngine.git. However, this is returning this error:

remote: Write access to repository not granted.
fatal: unable to access 'https://github.com/EpicGames/UnrealEngine.git/': The requested URL returned error: 403
gitHql commented 1 year ago

the documents was out of date for the elder versions, the link becomes : git clone --depth 1 -b carla https://github.com/CarlaUnreal/UnrealEngine.git ~/UnrealEngine_4.26

when you choose the latest version. I have fork it and clone to local, looks like it's OK

hamidtas commented 1 year ago

Hi, Before cloning the project using "git clone --depth 1 -b carla https://github.com/CarlaUnreal/UnrealEngine.git " you have to link your account with unreal Engine app . to do that please read and follow the instructions communicated in the below link https://www.unrealengine.com/en-US/ue-on-github The final step is that you gonna receive a mail github telling you that "[GitHub] @EpicTeamAdmin has invited you to join the @EpicGames organization". then re-run the command and it will start cloning the repo

Shesh02 commented 1 year ago

I have added the ssh.pub generated keys to github account still i'm getting this below error . Did anyone faced the similar issue and were able to resolve this.

$ git clone --depth 1 -b carla https://github.com/CarlaUnreal/UnrealEngine.git Cloning into 'UnrealEngine'... remote: Repository not found. fatal: repository 'https://github.com/CarlaUnreal/UnrealEngine.git/' not found

kashwp7 commented 1 year ago

Try the following if it still not working after the invitation is accepted.

git clone --depth 1 -b carla git@github.com:CarlaUnreal/UnrealEngine.git ~/UnrealEngine_4.26

the https URL doesn't seem to work like the documentation says

MattRowe18 commented 1 year ago

@kashwp7 this problem normally arises when you haven't successfully connected your GitHub account to Epic Games. Try following those steps completely again. Git doesn't report the error as an authentication error, it claims the URL is not found.

accidentalgamesstudio commented 1 year ago

For those still struggeling, try using the Personal access tokens (classic) rather than Fine-grained personal access tokens when generating your token in Github.

bapukokare commented 1 year ago

I directly download it into a local directory with the required UE4 version, follow this process https://www.unrealengine.com/en-US/ue-on-github

2019211753 commented 1 year ago

accidentalgamesstudio

great! u are right!

sauvikgon commented 8 months ago

Same Issue Also.

I am using Ubuntu 22.04, and trying to work on unreal engine 4.0 version as this blogpost shows. I have generated my github personal access token already, and my github account is also connected with epic games. I have used the command git clone --recursive --branch release https://github.com/EpicGames/UnrealEngine.git. However, this is returning this error:

remote: Write access to repository not granted.
fatal: unable to access 'https://github.com/EpicGames/UnrealEngine.git/': The requested URL returned error: 403
  • did anyone has the solution?
  • I actually want to work with the path tracing, and found unreal 4.27 or latest does not support Ubuntu. What is the latest version I can install on Ubuntu (4.0?)

You have to create a Token(Classic) instead of the Fine Grained Token. Then you will be able to clone the repo. Man I just found that out after wasting one full day on this thing.

samehmohamed88 commented 7 months ago

git clone --depth 1 -b carla https://github.com/CarlaUnreal/UnrealEngine.git ~/UnrealEngine_4.26

I can confirm also that @accidentalgamesstudio solution is correct. Hope this helps others

Jubin2607 commented 6 months ago

Still the same issue, Can someone suggest a solution

laoxihongshi commented 5 months ago

Still the same issue, Can someone suggest a solution

Generate a Personal Access Token (PAT): Log in to your GitHub account, go to Settings > Developer settings > Personal access tokens, and click on "Generate new token."

Set token permissions: During the token generation process, you will need to select the permissions for the token. To clone a repository, you will at least need repo permissions to access your private repositories.

Use the token for authentication: After generating the token, you can use it when cloning the repository. For example, if your token is ghp_12345abcdefg, you can use it in the clone command like this:

git clone https://oauth2:ghp_12345abcdefg@github.com/CarlaUnreal/UnrealEngine.git

anshgwash commented 3 months ago

Tried all the above but still getting the same issue: fatal: repository 'https://github.com/CarlaUnreal/UnrealEngine.git/' not found

rmrtcla commented 2 months ago

Tried all the above but still getting the same issue: fatal: repository 'https://github.com/CarlaUnreal/UnrealEngine.git/' not found

It could be your problem is similar to the ones mentioned in https://github.com/carla-simulator/carla/issues/7788 and https://github.com/carla-simulator/carla/issues/7775 . If so, then there's nothing you can do right now except monitor these issues here and also https://forums.unrealengine.com/t/maintenance-on-the-epic-games-github-organization-june-2024/1891135

MattRoweEAIF commented 2 months ago

One of the most common reasons for this error is that people have not successfully linked their GitHub account with Epic Games. Git does not seem to recognize that it is an authentication error and instead reports that the repo is not found. Try following the instructions here: https://www.unrealengine.com/en-US/ue-on-github to link your GH account to Epic games. Even if you think you've already done this, try it again it may not have worked. Secondly, also ensure your credentials are set up properly locally on your machine too. If that doesn't work, then I can't think of anything else.

rmrtcla commented 2 months ago

@MattRoweEAIF just FYI, this hole Epic Unreal sign-up process seems broken right now for new accounts since June 10th due to organisational changes on the Epic Github Org level. There are many different repos and people affected, see the link I posted before. It all seems to work, but the CarlaUnreal repo remaines 404 no matter what you try...

michaelraab commented 2 months ago

Has someone found a solution for this issue?