Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process 10 exit with code 1 #9

Open
rdxmb opened this issue Jul 22, 2019 · 2 comments
Open

process 10 exit with code 1 #9

rdxmb opened this issue Jul 22, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@rdxmb
Copy link

rdxmb commented Jul 22, 2019

# 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 rdxmb changed the title process 11 exit with code 1 process 10 exit with code 1 Jul 22, 2019
@Paxa
Copy link
Owner

Paxa commented Jul 22, 2019

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 Paxa added the enhancement New feature or request label Jul 22, 2019
@rdxmb
Copy link
Author

rdxmb commented Jul 22, 2019

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants