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

Could not connect to Redis when using strong password #690

Open
afoglia84-sou opened this issue Jul 8, 2024 · 3 comments
Open

Could not connect to Redis when using strong password #690

afoglia84-sou opened this issue Jul 8, 2024 · 3 comments

Comments

@afoglia84-sou
Copy link

I can connect to Redis only by using password without special characters, for example it works fine using redis with 123456 password.
But if i configure redis with more complex password (i've tried both Changeme?1 and Changeme@1) i get these errors.

publish:

2024/07/08 07:08:38 [notice] 1#1: signal 17 (SIGCHLD) received from 52
2024/07/08 07:08:38 [alert] 1#1: worker process 52 exited on signal 11 (core dumped)
2024/07/08 07:08:38 [notice] 1#1: start worker process 56
2024/07/08 07:08:38 [notice] 1#1: signal 29 (SIGIO) received

subscription:

2024/06/28 14:42:39 [debug] 87#87: IPC-HANDLERS(0):received channel_auth_check request for channel sub/test1
2024/06/28 14:42:39 [notice] 1#1: signal 17 (SIGCHLD) received from 87

I tried to connect redis service using redis-cli and it works.

@slact
Copy link
Owner

slact commented Sep 18, 2024

What Nchan version are you using? What does your Redis config block look like? I've tried with 1.3.6 using the nchan_redis_password and the url of nchan_redis_server to set the password, but both work just fine in my tests.

@afoglia84-sou
Copy link
Author

afoglia84-sou commented Oct 2, 2024

I'm using nchan 1.3.6 too and this is the redis config block

#NCHAN REDIS CONFIG
    upstream redis_master {
        nchan_redis_server redis-server:6379;
        nchan_redis_password ChangeMe#1;
    }

i've also tried this

#NCHAN REDIS CONFIG
    upstream redis_master {
        nchan_redis_server 'redis://:ChangeMe#1@redis-master:6379';
    }

but it works only without "special" characters

@afoglia84-sou
Copy link
Author

I've updated nchan to 1.3.7 and now works fine also with strong password (ex. "ChangeMe?#@1")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants