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

paperless-ngx Redis Connection Fails #551

Open
RikuXan opened this issue Feb 20, 2024 · 4 comments
Open

paperless-ngx Redis Connection Fails #551

RikuXan opened this issue Feb 20, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@RikuXan
Copy link
Contributor

RikuXan commented Feb 20, 2024

Chart Name

paperless-ngx

Chart Version

0.15.1

Bug Description

My paperless-ngx cannot connect to Redis anymore, printing out an authentication error. Using the same Redis connection URL as in the paperless-ngx environment variable via redis-cli inside the Redis container gives me the same error. To connect successfully I have to either explicitly include the default username inside the connection string or alternatively remove the colon before the password.

values.yaml

No response

Relevant log output

No response

@RikuXan RikuXan added the bug Something isn't working label Feb 20, 2024
@gabe565
Copy link
Owner

gabe565 commented Feb 24, 2024

@RikuXan I suspect this is related to the recent Redis Helm chart update. I'm working on a fix!

@gabe565
Copy link
Owner

gabe565 commented Feb 24, 2024

@RikuXan It's interesting because their Redis env documentation still shows the syntax including the :, so I'm hesitant to update the default value. I'm able to replicate, though. Hmm

@gabe565
Copy link
Owner

gabe565 commented Feb 24, 2024

@RikuXan Oh whoops...I'm not actually able to replicate. It was a network policy issue in my setup. My pod seems to be healthy, and the env got set to PAPERLESS_REDIS=redis://:KZ8fXPJJSC@paperless-ngx-redis-master. Do you have any redis configuration set other than the default?

@RikuXan
Copy link
Contributor Author

RikuXan commented Feb 24, 2024

@gabe565 No, my Redis configuration is completely default. The only customizations I'm currently using in the overall chart are:

  • Ingress and persistence configurations
  • Using existingSecrets for paperless & PostgreSQL credentials
  • Pinning the PostgreSQL Image Version to a 15.x (haven't gotten around to do the manual major upgrade process)
  • Extending the containers and environment variables with Tika and Gotenberg

My Redis connection string looks the same as yours, but using it via redis-cli (redis-cli -u <connection-string>) inside the Redis container gives me the aforementioned error. The Redis container's image version is 7.2.4-debian-11-r0.

If it's not an issue for you, a solution might be to include a variable that is empty by default, but can be customized for the username. This way people who experience the issue could customize their Redis connection string, as well as creating compatibility with externally-hosted Redis instances with ACLs enabled (where the username can then actually be relevant as far as I understand it).

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

2 participants