I successfully get the oauth2 application access token for gitlab user. And the scope includes read_repository. But I cannot git ls-remote or git clone my project using this access token as password.
The error is remote: HTTP Basic: Access denied
Btw, F2A is not enabled for my gitlab CE server.
Related
I want to setup a svn server in a docker container. I am using https://github.com/MarkusH1975/svnserver.svn.mh.
I went through all the steps that are explained in the readme.md.
But I can only checkout when I when anon-access in the volume/svnrepo/myRepo1/conf/svnserve.conf is read:
[general]
anon-access=read
auth-acces=write
But then I can not commit. When I try to commit I always get the error
svn: E170001: Authentication error from server: Internal server error in authentication
Only when I write anon-access=write I can commit.
I would love to be able to set anon-access=none, but then I can't even checkout. And what puzzles me is, that I do not get a password prompt, when I do not specify a password.
> svn checkout --username myUsername1 svn://192.168.XXX.XXX/myRepo1
svn: E170013: Unable to connect to a repository at URL 'svn://192.168.XXX.XXX/myRepo1'
svn: E170001: Authentication error from server: Internal server error in authentication
Shouldn't there be a password prompt?
Background:
I want to setup a svn server on my synology with DSM 7. So there may be something specific.
I am using GitHub Actions & Packages from Beta. Yesterday, the PAT expired. That's why my GitHub Actions failed. There is a Regenerate button on Profile > Developer Settings > Personal Access Token. I clicked it and created a new PAT.
At this step, I am able to login docker.pkg.github.com and push the image to GitHub Registry.
But, I am getting an error message when I pull that image.
This is the error message:
Error response from daemon: unauthorized: Your request could not be authenticated
by the GitHub Packages service. Please ensure your access token is valid and has
the appropriate scopes configured.
How can I solve this expired PAT issue?
This was a bug and reported on the GitHub community https://github.community/t/bug-report-personal-access-tokens/147968/2
The shell stores your old token and doesn't update it. That's why you have to logout first for one time.
The solution:
Regenerate or Create a new Personal Access Token
Update your repo's Secret
in a shell, docker logout https://docker.pkg.github.com
in a shell, docker login https://docker.pkg.github.com -u GITHUBUSERNAME
use the new token as the password
Then you will able to pull an image from the GitHub registry as always.
I got the answer from zsoobhan-tc's post.
When I
docker pull mcr.microsoft.com/dotnet/aspnet
in log
admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: HEAD /v2/mcr.microsoft.com/dotnet/aspnet/manifests/latest: 401 - org.sonatype.nexus.repository.docker.internal.V2Exception: authentication required
but i set user & pass in docker repo in section http Authentication section.
where is the problem ?!
Facing an error while fetching Git repo using jenkins with HTTPS. I used personal access token for https to clone the repo instead of ssh
The Error is stderr: fatal: unable to access git and my repo..server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Image attached below with error
I have created an application in google app engine and pushed my code into git provided by google. Now I want to set up Continuos Integration with cloudbees Jenkins.
When I create a job in Jenkins with repository url as url at the source code level I get following error
Failed to connect to repository : Command "git ls-remote -h https://source.developers.google.com/p/my-application-name/r/default HEAD" returned status code 128:
stdout:
stderr: fatal: remote error: Invalid username/password.
You may need to use your OAuth token password; Note that generated google.com passwords are not compatible with private repositories
The repository url I am using is:
https://source.developers.google.com/p/my-application-name/r/default
How do I create OAuth token?
OAuth is a protocol that lets external apps request authorization to private details in a user’s GitHub account without getting their password. This is preferred over Basic Authentication because tokens can be limited to specific types of data, and can be revoked by users at any time.
All developers need to register their application before getting started. A registered OAuth application is assigned a unique Client ID and Client Secret. The Client Secret should not be shared.
Ill adive you to give the following article a read :
https://developer.github.com/v3/oauth/
Also have alook at the plugin for git authentication for Jenkins:
https://wiki.jenkins-ci.org/display/JENKINS/Github+OAuth+Plugin