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

CrashLoopBackOff on the my-otel-demo-cartservice running on OpenShift #736

Closed
Tiagodge opened this issue Feb 7, 2023 · 5 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@Tiagodge
Copy link

Tiagodge commented Feb 7, 2023

Bug Report

I am using the version 730:
#730

Symptom

The cart service is not working, I can access the website, but cannot add items to the cart

I cleaned up everything in the cluster and apply the new version, but now, with the new version I can navigate on the application, open Jaeger and everything, but is failing when I try to add items to the cart.

the error:
Connecting to Redis: my-otel-demo-redis:6379,ssl=false,allowAdmin=true,abortConnect=false
2 Wasn't able to connect to redis
3 Unhandled exception. System.ApplicationException: Wasn't able to connect to redis
4 at cartservice.cartstore.RedisCartStore.EnsureRedisConnected() in /usr/src/app/src/cartstore/RedisCartStore.cs:line 89
5 at cartservice.cartstore.RedisCartStore.InitializeAsync() in /usr/src/app/src/cartstore/RedisCartStore.cs:line 62
6 at Program.

$(String[] args) in /usr/src/app/src/Program.cs:line 40

But as you can see here, Redis is accepting connection:

1:C 07 Feb 2023 18:34:44.280 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2 1:C 07 Feb 2023 18:34:44.280 # Redis version=7.0.8, bits=64, commit=00000000, modified=0, pid=1, just started
3 1:C 07 Feb 2023 18:34:44.280 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
4 1:M 07 Feb 2023 18:34:44.286 * monotonic clock: POSIX clock_gettime
5 1:M 07 Feb 2023 18:34:44.291 * Running mode=standalone, port=6379.
6 1:M 07 Feb 2023 18:34:44.292 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
7 1:M 07 Feb 2023 18:34:44.292 # Server initialized
8 1:M 07 Feb 2023 18:34:44.292 # WARNING Your system is configured to use the 'xen' clocksource which might lead to degraded performance. Check the result of the [slow-clocksource] system check: run 'redis-server --check-system' to check if the system's clocksource isn't degrading performance.
9 1:M 07 Feb 2023 18:34:44.295 * Ready to accept connections

@Tiagodge Tiagodge added the bug Something isn't working label Feb 7, 2023
@julianocosta89
Copy link
Member

@Tiagodge thanks for reporting this.
How are you deploying the sample? (Docker or K8s)
Is the redis container running?
Which version of the demo are you using? (you have referred to 730, but this is from the docs, and not from the demo)

@Tiagodge
Copy link
Author

Tiagodge commented Feb 8, 2023

I deployed via helm chart using exactly this command:

helm install my-otel-demo open-telemetry/opentelemetry-demo

Yes, Redis pod is running and accepting connections as we can see on the pod log:

9 1:M 07 Feb 2023 18:34:44.295 * Ready to accept connections

This is the version I am using:

apiVersion: v2
appVersion: 1.3.0
dependencies:

@julianocosta89
Copy link
Member

@puckpuck and @TylerHelmuth any ideas here?

The Cart pod is in CrashLoopBackOff and can't seem to be able to connect to Redis, even though Redis is up and running.

@puckpuck
Copy link
Contributor

These two warnings are intriguing. I don't see them on my side in any of the deployments I have running (also using Redis 7.0.10 now instead of 7.0.8)

6 1:M 07 Feb 2023 18:34:44.292 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
7 1:M 07 Feb 2023 18:34:44.292 # Server initialized
8 1:M 07 Feb 2023 18:34:44.292 # WARNING Your system is configured to use the 'xen' clocksource which might lead to degraded performance. Check the result of the [slow-clocksource] system check: run 'redis-server --check-system' to

Can you try reinstalling again? Redis is up to 7.0.10 now, and though I doubt that would be the cause, I want to ensure we are all using the same version.

@puckpuck
Copy link
Contributor

puckpuck commented Apr 7, 2023

The Helm chart has been updated to work with OpenShift. There are a few special instructions you need to follow in the Helm chart's readme for OpenShift installation.

@puckpuck puckpuck closed this as completed Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants