Trouble shooting
Deployment of release fails
If a pod does not enter into the Running
status you can find out more information about the status of the deployment:
kubectl describe pod node-5df6fb9cbc-25t9m
...
Status: Running
IP: 10.42.0.13
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 101s default-scheduler Successfully assigned default/node-5df6fb9cbc-25t9m to raspi-4-01
Normal Pulling 101s kubelet Pulling image "repo.3d-t.it:5000/node:latest"
Normal Pulled 16s kubelet Successfully pulled image "repo.3d-t.it:5000/node:latest" in 1m25.430146078s
Normal Created 10s kubelet Created container node
Normal Started 10s kubelet Started container node
Login page does not show
Check that the app is accepting connections:
kubectl logs app-c6d57c999-fdpsq
INFO: Accepting connections at http://localhost:3000
Can not log in to server
Check the log file of the node
server application for problems with connecting to the database or application errors:
kubectl logs node-5df6fb9cbc-25t9m
2021-08-10 16:18:34.214 info: Connecting to mongodb://mongo-0.mongo/idata
2021-08-10 16:18:34.299 info: Connected to mongodb://mongo-0.mongo/idata
2021-08-10 16:18:34.306 info: Run importer scheduler every 10000 ms
2021-08-10 16:18:34.308 info: Waiting 5.69 seconds for automation scheduler to align with 10 second clock interval
2021-08-10 16:18:34.311 info: Waiting 5.69 seconds for contract scheduler to align with 10 second clock interval
2021-08-10 16:18:34.324 info: Server running at http://localhost:8010 in production mode with log level debug 12
2021-08-10 16:18:40.011 info: Started automation scheduler at 2021-08-10T14:18:40.005Z to run every 10 seconds
2021-08-10 16:18:40.015 info: Started contract scheduler at 2021-08-10T14:18:40.015Z to run every 10 seconds
For a more indepth inspection you can open a shell into the pod and examine the log files:
kubectl exec -it node-5df6fb9cbc-25t9m -- bash
cd log
ls
cat log.2021-08-10
...
2021-08-10 16:18:40.011 info: Started automation scheduler at 2021-08-10T14:18:40.005Z to run every 10 seconds
2021-08-10 16:18:40.015 info: Started contract scheduler at 2021-08-10T14:18:40.015Z to run every 10 seconds
root@node-5df6fb9cbc-25t9m:/usr/src/app/log#