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

Use separate Redis deployment #44

Open
LarsAC opened this issue Jan 25, 2024 · 1 comment
Open

Use separate Redis deployment #44

LarsAC opened this issue Jan 25, 2024 · 1 comment
Labels
question Further information is requested

Comments

@LarsAC
Copy link

LarsAC commented Jan 25, 2024

Hello,

I tried to use a separate deployment of Redis / Sentinel that was created using Bitnami's helm chart. I can exec into one of the redis pods, run redis-cli and AUTH <my-passwd> or AUTH default <my-passwd> successfully.

However, I keep getting authentication errors from the Shinyproxy pod that was created from the operator:

Caused by: io.lettuce.core.RedisConnectionException: Cannot connect to a Redis Sentinel: [redis://************@redis-node-0.redis-headless.redis:26379, redis://************@redis-node-1.redis-headless.redis:26379, redis://************@redis-node-2.redis-headless.redis:26379]

and further down in the log

Caused by: io.lettuce.core.RedisCommandExecutionException: WRONGPASS invalid username-password pair or user is disabled.
        at io.lettuce.core.internal.ExceptionFactory.createExecutionException(ExceptionFactory.java:147) ~[lettuce-core-6.1.10.RELEASE.jar!/:6.1.10.RELEASE]
        at io.lettuce.core.internal.ExceptionFactory.createExecutionException(ExceptionFactory.java:116) ~[lettuce-core-6.1.10.RELEASE.jar!/:6.1.10.RELEASE]
        ... 22 common frames omitted

This looks like there is actually an exception received from Redis so that the connection seems to work - is that assumption correct ?

What needs to be done to make the Shinyproxy work with a separate Redis ?

Lars

@LEDfan
Copy link
Member

LEDfan commented Mar 11, 2024

Hi

In principle, nothing special is needed to make ShinyProxy work with the external redis server. The Redis deployment inside this repository is also based on the bitnami helm chart (https://github.com/openanalytics/shinyproxy-operator/blob/master/docs/deployment/bases/redis-sentinel/chart-src/kustomization.yml)

I can reproduce the error you have when providing an incorrect password for the sentinel config. Can you double check this? Can you maybe post your shinyproxy config?

@LEDfan LEDfan added the question Further information is requested label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants