question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when deployed on OCP Cluster

See original GitHub issue

Summary

ts-ui-dashboard pod has CrashLoopBackOff error, when deployed on OCP Cluster.

Expected behaviour

All PODs should be running state. I see one pod is in CrashLoopBackOff. Rest all are fine and in running state.

Current behaviour

When deployed application, I see all pods running fine, except following:

oc logs ts-ui-dashboard-5cb87645cb-7gj8d
2021/04/06 01:28:53 [emerg] 1#1: host not found in upstream "ts-avatar-service" in /usr/local/openresty/nginx/conf/nginx.conf:386
nginx: [emerg] host not found in upstream "ts-avatar-service" in /usr/local/openresty/nginx/conf/nginx.conf:386

Steps to reproduce

Clone this train-ticket repo. Deploy the application on OCP, using Kubernetes yml files located in ‘train-ticket/deployment/kubernetes-manifests/quickstart-k8s’ folder.

Your environment

OS(e.g: cat /etc/os-release): OCP 4.3.13

docker version(e.g docker version): Client Version: version.Info{Major:“1”, Minor:“18”, GitVersion:“v1.18.0”, GitCommit:“9e991415386e4cf155a24b1da15becaa390438d8”, GitTreeState:“clean”, BuildDate:“2020-03-25T14:58:59Z”, GoVersion:“go1.13.8”, Compiler:“gc”, Platform:“linux/amd64”} Server Version: version.Info{Major:“1”, Minor:“16+”, GitVersion:“v1.16.2+853223d”, GitCommit:“853223d”, GitTreeState:“clean”, BuildDate:“2020-10-14T15:02:59Z”, GoVersion:“go1.12.12”, Compiler:“gc”, Platform:“linux/amd64”}

docker-compose version (e.g docker-compose --version):

Kubernetes version(use kubectl version):

istio version:

Additional context

I didn’t find anything related to ts-avatar-service. It doesn’t seems to be valid service. Or I might be missing something.

Search result and your thoughts

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
kagaya85commented, May 5, 2021

@ansnadeem Sorry, we forgot to update our docker-compose file and just add the avatar-service in docker-compose.yml to start nginx properly, like this

Thanks for the feedback on the bugs

0reactions
ansnadeemcommented, May 5, 2021

Awesome, everything seems to be working fine now.

Thank you @kagaya85 for the quick resolve.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Installing | OpenShift Container Platform 4.6
If errors occur early in the deployment of the OpenShift Container Platform cluster, the errors are likely in the install-config.yaml configuration file.
Read more >
Chapter 7. Troubleshooting OpenShift Container Platform 4.7
After etcd has started on each control plane node and the nodes have joined the cluster, the errors should stop. Collect logs from...
Read more >
10 Most Common Build & Deployment Errors in OpenShift
4. PROJECT QUOTA EXCEEDED. The system admins for your OCP cluster usually set project quotas to keep individual projects from taking up too...
Read more >
Troubleshooting installation problems for Microsoft Azure - IBM
Failure in creating OCP cluster. The Azure resources that the cluster requires, such as VNet, subnets or gateways, are not created. This issue...
Read more >
Troubleshooting Guide for OpenShift Container Platform
This is most likely an error during the editing of the deployment config. When assigning the volume the --name= section refers to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found