Troubleshooting
Problem
Environment
Resolving The Problem
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system local-path-provisioner-687d6d7765-7zpf2 1/1 Running 0 7d8h
kube-system coredns-7b5bbc6644-8p6h4 1/1 Running 97 (6h52m ago) 7d8h
kube-system metrics-server-667586758d-h2wfp 1/1 Running 79 (6h50m ago) 7d8h
$ netstat -nr
]$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.x.x 0.0.0.0 UG 0 0 0 eth0
10.42.0.0 0.0.0.0 255.255.255.0 U 0 0 0 cni0
192.168.x.x 0.0.0.0 255.255.255.0 U 0 0 0 eth0
$ curl --insecure -vvI https://quay.io 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
$ curl --insecure -vvI https://docker.io 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
$ curl --insecure -vvI https://docker.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
$ sudo k3s ctr images pull -k docker.io/rancher/pause:3.1 --image-pull-policy Always
$ sudo systemctl restart k3s
$ sudo kubectl rollout restart deployments -n kube-system
$ netstat -nr
$ sudo kubectl top node
If the output returns there are multiple nodes delete the "apphost.localdomain" node or any other node that is NOT the hostname of the App Host or Edge Gateway server.
NAME CPU(cores) CPU% MEMORY(bytes) MEMORY%
testlab-res50apphost-00001 230m 11% 1209Mi 31%
testlab-res46apphost-00001 230m 2% 1211Mi 5%
$ sudo kubectl node apphost.localdomain
https://www.ibm.com/support/pages/node/6575517
Determine the <NameSpace> <Name> for the app container in question.
$ sudo kubectl get pods -A -l apps.isc.ibm.com/app-type=app -L app.kubernetes.io/instance
$ sudo kubectl logs -n <NameSpace> <Name>
$ sudo kubectl logs -n <NameSpace> <Name> >app.log
Tail the log;
$ sudo kubectl logs -fn <NameSpace> <Name>
App Host or Edge Gateway synchronizer container:
$ sudo kubectl logs -n <NameSpace> <Name>
$ sudo kubectl logs -n <NameSpace> <Name> >synchronizer.log
$ sudo kubectl logs -fn <NameSpace> <Name>
App Host or Edge Gateway system does not use /etc/hosts for DNS resolution, it utilizes the systems /etc/resolve.conf for DNS. If unable to resolve any host, then add to the App Host or Edge Gateway container(s) DNS settings with the manageAppHost dns --set command.
$ sudo manageAppHost dns –set –ip <IP_Address> –hostname <Hostname>
Example:
$ sudo manageAppHost dns –set –ip 142.251.40.110 –hostname google.com
For CP4S, ensure that the url with cases-stomp and cases-rest can be resolved.
Related Information
Checking the Kubernetes container
Checking the App Host and containers
App is stuck 'Deploying...' or in an Error state
SSL: CERTIFICATE_VERIFY_FAILED error for an app
App does not work after its rules start
Connection error when certificate is refreshed
Unable to select the App Host when you install an app
MustGather: Information to Collect when Troubleshooting Issues with IBM Securit…
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
30 December 2023
UID
ibm17063863