denied: Permission "artifactregistry.repositories.downloadArtifacts" denied on resource - visual-studio-code

i am using VSCODE to push image which is stored in Docker repo locally to GCP Artifact repo.
i ran gcloud auth configure-docker us-west1-docker.pkg.dev command in GCP console and while pushing image from VSCODE I got below error
command :-docker push us-west1-docker.pkg.dev/xxx/reponame/test-image
59769727d80: Waiting
348622fdcc61: Waiting
4ac8bc2cd0be: Waiting
denied: Permission "artifactregistry.repositories.downloadArtifacts" denied on resource "projects/xxx/locations/us-west1/repositories/reponame" (or it may not exist)

Related

I'm trying to run Plaid quickstart tutorial but it says I'm unable to fetch link_token

So I've been trying to do a quickstart tutorial by Plaid (https://www.youtube.com/watch?v=sGBvKDGgPjc&t=540s) so I can implement it in my app after. I was using Windows 11 and Visual Studio Code.
I cloned their git using git clone -c core.symlinks=true https://github.com/plaid/quickstart
It printed this at the end:
Cloning into 'quickstart'...
remote: Enumerating objects: 3603, done.
remote: Counting objects: 100% (962/962), done.
remote: Compressing objects: 100% (262/262), done.
Receiving objects: 100% (3603/3603), 2.98 MiB | 8.47 MiB/s, done.ed 2641
Resolving deltas: 100% (2205/2205), done.
error: unable to create symlink go/.env: Permission denied
error: unable to create symlink go/.env.example: Permission denied
error: unable to create symlink java/.env: Permission denied
error: unable to create symlink java/.env.example: Permission denied
error: unable to create symlink node/.env: Permission denied
error: unable to create symlink node/.env.example: Permission denied
error: unable to create symlink python/.env: Permission denied
error: unable to create symlink python/.env.example: Permission denied
error: unable to create symlink ruby/.env: Permission denied
error: unable to create symlink ruby/.env.example: Permission denied
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
Configured .env:
PLAID_CLIENT_ID=*client id*
PLAID_SECRET=*secret id*
PLAID_ENV=sandbox
PLAID_PRODUCTS=auth,transactions
PLAID_COUNTRY_CODES=US,CA
PLAID_REDIRECT_URI=
I started the server and tried to start frontend as in the video but it shows this error in a rectangle instead. Does anyone know what the issue is?
I haven't changed anything in the code. I only added .env and added API keys, that's it.
Edit: I moved my .env file to node folder where backend file is, and it seem to fixed the problem. It's all working now
A couple of thoughts:
The .env file you provided here is missing a PLAID_ENV=sandbox line, that would definitely cause an error if it's actually missing from the .env and not a copy and paste error in your question.
Those error codes make me think the Quickstart might not be able to read the .env file. If you log out the client id and secret to the terminal window, are they correct?
Take a look at the terminal window where the backend is running -- do you see any errors?

fatal: unsafe repository is owned by someone else - GitHub actions workflow

I have two yml files configured in the GitHub actions. When new code is pushed to master, one yml file deploys the files to specific website folder, and the other one to another website folder.
Even though both websites are on the same server, one of the deploy.yml files is not executing jobs and it's throwing this error.
fatal: unsafe repository ('/var/www/yayyy.net/public_html' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /var/www/yyyy.net/public_html
Error: Process completed with exit code 128.
at this step:
- name: Add temp repo access
run: |
cd $DEV_WEBSITE_PATH
git remote set-url origin https://anything:${{ secrets.GITHUB_TOKEN }}#github.com/yyyyy/website.git
I tried adding extra step before that step and added this safe.directory command but then it's showing permission denied error.
error: could not lock config file /var/www/.gitconfig: Permission denied
Adding sudo before the command then throws this error:
sudo: sorry, you must have a tty to run sudo
I'm confused what I'm missing, can you help?
The.gitconfig did not exist and the username didn't have permission to create it. So, I created it manually and changed ownership to the username.

Permission denied error when cloning a private GitHub repository

I have a cloud9 repository on AWS and I would like to clone a github repository into it. I have followed the documentation instructions of copying the http link on github and running this command:
git clone git#github.com:[my repo]
I get this error message when running the command:
Cloning into 'pm-tool'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Does the user name on git have to match the user name on the AWS environment? Any suggestions for troubleshooting this problem?
You shouldn’t upload your GitHub login to anywhere as a general rule.
You need to grab/create a key from AWS, then save in your GitHub repo as a deploy key.
Get your Cloud9 key.
Add it to GitHub here: https://github.com/[user/org]/[repo_name]/settings/keys.
See: https://community.c9.io/t/public-ssh-key-needed/1315/3

Github Public key permission denied

Gitbush is work fine but after my windows reinstall this is not any operation with github . When i pull or push something it make an error :
Permission denied (publickey). fatal: The remote end hung up unexpectedly
How can i solve this ??
It depends on the url used:
cd c:\path\to\your\repo
git remote -v
If it is ssh, you would need to regenerate an ssh public/privbate key, and register it to your GitHub repo.

github - permission error

On our linode server, we have git installed. We can pull our development branch but not the master. We get the error below when we try and use the following command:
Command:
git remote set-url origin https://myusername#github.com/projectname/Projectname.com.git
Error:
error: could not lock config file .git/config: Permission denied
We're under pressure to launch our laravel site and cannot seem to get any further.