Tuesday, May 2, 2023

Reference: 

https://stackoverflow.com/questions/11623862/fetch-in-git-doesnt-get-all-branches

Problem:

$ git checkout origin/INF-2308

error: pathspec 'origin/INF-2308' did not match any file(s) known to git

Solution: 

The problem can be seen when checking the remote.origin.fetch setting

(The lines starting with $ are bash prompts with the commands I typed. The other lines are the resulting output)

$ git config --get remote.origin.fetch
+refs/heads/master:refs/remotes/origin/master

As you can see, in my case, the remote was set to fetch the master branch specifically and only. I fixed it as per below, including the second command to check the results.

$ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
$ git config --get remote.origin.fetch
+refs/heads/*:refs/remotes/origin/*
$ git checkout INF-2308

Thursday, January 26, 2023

 Problem:

We're sorry but jfrog webapp doesn't work properly without JavaScript enabled. Please enable it to continue.

Reference:

https://www.haproxy.com/blog/enabling-cors-in-haproxy/



Saturday, November 26, 2022

unknown service runtime.v1alpha2.ImageService

Problem:

# kubeadm config images pull

failed to pull image "registry.k8s.io/kube-apiserver:v1.25.4": output: E1126 17:51:40.858868   34828 remote_image.go:222] "PullImage from image service failed" err="rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService" image="registry.k8s.io/kube-apiserver:v1.25.4"

time="2022-11-26T17:51:40-05:00" level=fatal msg="pulling image: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService"

, error: exit status 1

To see the stack trace of this error execute with --v=5 or higher

Reason:

containerd cgroup driver is not equal with kubelet cgroup driver.

/etc/containerd/config.toml

### disabled_plugins = ["cri"]