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

kubectl exec .. nslookup fails with command terminated with exit code 1 #37

Open
subindani opened this issue Apr 9, 2021 · 0 comments

Comments

@subindani
Copy link
Collaborator

subindani commented Apr 9, 2021

A user of the script reported this issue:

I tried to collect the API Manager logs but I got the error: command terminated with exit code 1.

./generate_postmortem.sh 0 --diagnostic-manager
Generating postmortem, please wait...
.......
command terminated with exit code 1
Created [/tmp/apiconnect-logs->CEST.tgz].

The command which fails with the error "command terminated with exit code 1" are all the ones which gets the nslookup output from inside the pod. This is viewable in the debug log. For example:

++ kubectl exec -n apic -c admin abc-apic-portal-www-0 -- nslookup <list of IP addresses>
command terminated with exit code 1

This is for 2018.4.1.9-ifix1.0 on a Kubernetes Cluster (Amazon EKS).

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

No branches or pull requests

1 participant