slact / nchan

Fast, horizontally scalable, multiprocess pub/sub queuing server and proxy for HTTP, long-polling, Websockets and EventSource (SSE), powered by Nginx.
https://nchan.io/
Other
3.01k stars 292 forks source link

Could not connect to Redis when using strong password #690

Open afoglia84-sou opened 4 months ago

afoglia84-sou commented 4 months ago

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 commented 1 month ago

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 commented 1 month ago

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