I got this message error when do this command git clone https://project.gitlab.cct/user/testproject.git Initialized empty Git repository in /root/testproject/.git/ error: The requested URL returned error: 401 Unauthorized while accessing https://project.gitlab.cct/user/testproject.git/info/refs
fatal: HTTP request failed
This project is set private and although I were granted permission to access this project (joined), someone help me to turn off authorization for private project or appear a password prompt to access
Thank you!
Related
I am working in RStudio and I cloned a project lately (using my personal access token, with read_repository and write_repository permissions).
When I want to push my changes to the gitlab repository, I get an error:
remote: HTTP Basic: Access denied
remote: You must use a personal access token with 'read_repository' or 'write_repository' scope for Git over HTTP.
remote: You can generate one at https://test.com/-/profile/personal_access_tokens
fatal: Authentication failed for 'https://test.com/test/test.git/'
Why is the private token not woking anymore? I did not change anything.
I tried to simply clone a Gitlab project jusing both HTTPS and SSH and they both don't work and print back an atuhentication failed message.
When trying with https address:
git clone https://gitlab.com/project.aa/project.git
Cloning into 'frontend'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/project.aa/project.git'
And with my SSH key that's the message I get:
Cloning into 'frontend'...
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.
What can I do?
Try log-out and login with the same credentials that you're trying to use for cloning the repository. If the problem persists: In Windows, Search for Credential Manager. In that choose Windows manager. Select your Gitlab credentials and modify it.
I am trying to pull in gitlab with source tree but unable to do so.
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
remote: HTTP Basic: Access denied fatal: Authentication failed for
'http://davy_yg#git.amanahcorp.com/daffi_gusti/soulfy_repo3.git/'
remote: Forbidden fatal: unable to access
'http://davy_yg#git.amanahcorp.com/daffi_gusti/soulfy_repo3.git/': The
requested URL returned error: 403 Completed with errors, see above.
How to fix the error so that I can pull and push?
See issue 6576 as a way to troubleshoot this issue.
For instance, you can:
try and see if cloning through ssh work
look for the production.log for a more precise error
check the project visibility to compare against the user permissions (a public project for instance should require no authentication)
I'm using the docker image of tuleap in version 8.3.
I setup an AD in /etc/tuleap/plugins/ldap/etc/ldap.inc and enable it in /etc/tuleap/conf/local.inc with
$sys_auth_type = 'ldap';
I then created a subversion project and add my user with the Add user button in using the autocompletion ==> my user get recognized, it was never added to tuleap before, so I think the connection with the AD is working.
But when I do a
svn list --username myuser http://tuleap/svnroot/toto, I get :
Redirecting to URL 'https://tuleap/svnroot/toto':
Authentication realm: <https://tuleap:443> LDAP Subversion Authorization (toto)
Password for 'myuser':
svn: E175002: Unable to connect to a repository at URL 'https://tuleap/svnroot/toto'
svn: E175002: Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for 'https://tuleap/svnroot/toto'
I can't find any error in /var/log/httpd/error_log
Any ideas ?
Please make sure that you have appropriate access to checkout the code from repo. If you have access and getting error 500 then please navigate to %appdata%\subversion\auth\svn.simple in Windows
In linux run this command -
rm -f~/.subersion/auth/svn.simple/*
Let us know if this helps you .
I'm running TFS 2013 with a GIT team project. When I perform a git clonefrom one of the local Windows servers I don't have any issues:
-bash-4.1$ git clone "http://tfsadm:tfspas#tfs.server.com:8080/tfs/DefaultCollection/_git/Main"
Initialized empty Git repository in /home/tfsadm/Mainframe/.git/
but when I perform a git clone from Linux, I get the following error:
error: The requested URL returned error: 401 while accessing http://tfsadm:tfspas#tfs.server.com:8080/tfs/DefaultCollection/_git/Mainframe/info/refs fatal: HTTP request failed
Error: The requested URL returned error: 401 while accessing https://github.com/Joey-myproject/repo.git/info/refs fatal: HTTP request failed
is an often reoccuring error.
One of the reasons of this happening is because the client is not authorized to access to that resource.
A general solution is to check for the following:
Do you have a stable git version?
Is the remote correct configured?
If 2FA is enabled, if so provide an access token.
Double check your permissions(username/password in configs) perhaps also try to use the format ' https://username#mydomain.org/project.git''
Try ssh instead of https
I am not sure, but have you already seen this link Can't clone a github repo on Linux via HTTPS?
It can give some extra information.