Not being able to change my cluster to Minikube - kubernetes

What Happened?
I wanted to change the cluster in my kubeconfig file, when I ran the minikube update-context it is giving me this error...
Exiting due to HOST_KUBECONFIG_UPDATE: write: Error creating directory: /path/to/your: mkdir /path: permission denied
Attach the log file
I am not able to get any files after running this command ``minikube logs --file=logs.txt`
ERROR:
-bash: /tmp/minikube_update-context_092fe500482509904744a9cbb77cde3455423584_0.log: Permission denied
Exiting due to HOST_KUBECONFIG_UPDATE: write: Error creating directory: /path/to/your: mkdir /path: permission denied

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?

denied: Permission "artifactregistry.repositories.downloadArtifacts" denied on resource

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)

MongoDB can't start as a service

I am trying to run mongo as a service on CentOS 6, by using "service mongod start".
However, I get the "Failed" error
I checked the log file and there is the following error at the end of it:
IllegalOperation: Attempted to create a lock file on a read-only directory: /var/lib/mongo, terminating
I have given full permissions to the var, lib and mongo folders.
Any suggestions?
Try sudo service mongod start, from error, looks like it's not able to create lock file

Permission denied while running Kafka commands

Iam using Kafka version kafka_2.8.0-0.8.1.1.
When i try to start the Kafka server using the following command:
./kafka-server-start.sh /home/msruser1/hadoopcluster/kafka_2.8.0-0.8.1.1/config/server.properties
permission denied appears on console:
-bash: ./kafka-server-start.sh: Permission denied
Any suggestions on how to solve this.
Run: sudo !! to execute previous command with elevated permissions.
You can also give yourself permission with sudo chown -R msruser1 /home/msruser1/hadoopcluster

AWS: Not able to retrieve mail logs using putty. Getting permission denied error

I am working on getting the error logs for mail.
The path .. /var/logs/ -> mail
But view the file i am getting permission denied error. please help me to know how to retrieve the mail logs.
Thanks
Type 'sudo' before your cat or less command. You need to elevate to root permissions.
sudo less /var/log/maillog