haraka / haraka-plugin-redis

redis support for Haraka plugins
https://www.npmjs.com/package/haraka-plugin-redis
MIT License
3 stars 12 forks source link

haraka plugin redis error on connecting to redis #32

Closed f1sh3y3s closed 2 years ago

f1sh3y3s commented 2 years ago

system info

Haraka Haraka.js — Version: 2.8.28
Node v16.14.2
OS Linux Debian 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 GNU/Linux
openssl OpenSSL 1.1.1n 15 Mar 2022

Expected behavior

No error on connecting to redis server

Observed behavior

loaded TLD files:
  1=1495
  2=8570
  3=2448
loaded 9192 Public Suffixes
loglevel: INFO
log format: DEFAULT
[WARN] [-] [core] smtp.ini.nodes unset, using 1, see https://github.com/haraka/Haraka/wiki/Performance-Tuning
Starting up Haraka version 2.8.28
[INFO] [-] [core] Loading plugins
[INFO] [-] [core] Loading plugin: tls
[INFO] [-] [core] loading tls.ini
[INFO] [-] [core] Loading plugin: auth/flat_file
[INFO] [-] [core] Loading plugin: auth/auth_bridge
[INFO] [-] [core] Loading plugin: dkim_sign
[INFO] [-] [core] Loading plugin: redis
[INFO] [-] [core] Loading plugin: queue/smtp_forward
[NOTICE] [-] [queue/smtp_forward] outbound enabled, will default to disabled in Haraka v3 (see #1472)
[INFO] [-] [redis] connected to redis://192.168.0.100:6379
[CRIT] [-] [server] Plugin redis timed out on hook init_master - make sure it calls the callback
[INFO] [-] [server]  hook=init_master plugin=redis function=init_redis_shared params="" retval=DENYSOFT msg="plugin timeout"
[ERROR] [-] [server] init_master returned error: plugin timeout
[NOTICE] [-] [core] Shutting down

Steps to reproduce

add redis to config/plugin create redis.ini in config

I am having trouble to connect redis with haraka in order to run haraka-plugin-watch. Even though I put redis.ini in config folder it did not load new config for host or port