kube-backup icon indicating copy to clipboard operation
kube-backup copied to clipboard

process 10 exit with code 1

Open rdxmb opened this issue 5 years ago • 2 comments

# kubectl -n kube-backup logs kube-system-backup-1563803760-fr68x 
14:01:52.411: Args: {target_path: "./kube_state", repo_url: "ssh://[email protected]:32222/mbr/k8-repo-test.git", extra_resources: "certificate,issuer,alertmanager,prometheus,prometheusrule,servicemonitor", verbose: true}
14:01:52.411: Types: [:serviceaccount, :secret, :deployment, :daemonset, :statefulset, :configmap, :cronjob, :ingress, :networkpolicy, :persistentvolumeclaim, :role, :rolebinding, :service, :pod, :endpoints, :resourcequota, :horizontalpodautoscaler, :certificate, :issuer, :alertmanager, :prometheus, :prometheusrule, :servicemonitor]
14:01:52.411: RUN ssh-keyscan -H git.example.org >> /root/.ssh/known_hosts
error: . Use --trace to view backtrace
14:01:57.480: Process 10 exit with code 1

14:01:57.480: 
  1. What's the problem here?
  2. Would it be possible to provide a better output (what is process 10) here?

Thanks.

# kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.8", GitCommit:"0c6d31a99f81476dfc9871ba3cf3f597bec29b58", GitTreeState:"clean", BuildDate:"2019-07-08T08:46:01Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.8", GitCommit:"0c6d31a99f81476dfc9871ba3cf3f597bec29b58", GitTreeState:"clean", BuildDate:"2019-07-08T08:38:54Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}

rdxmb avatar Jul 22 '19 14:07 rdxmb

seems like error is in ssh-keyscan command. If you run it inside pod, is there any error?

It checks /root/.ssh/known_hosts if host not in file, it will try to add key there but running command

ssh-keyscan -H git.example.org >> /root/.ssh/known_hosts

If that command can not complete then you may provide known_hosts file my mounting secret or configmap

Paxa avatar Jul 22 '19 16:07 Paxa

seems like error is in ssh-keyscan command. If you run it inside pod, is there any error?

I cannot exec into the pod because it is not running (because of the error)

If that command can not complete then you may provide known_hosts file my mounting secret or configmap

I just tried to add our internal git-Server and also got errors.

I haven't a clue about ruby, so I can only help do debug what you tell me :)

rdxmb avatar Jul 22 '19 16:07 rdxmb