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

haraka plugin redis error on connecting to redis #32

Closed
f1sh3y3s opened this issue Apr 29, 2022 · 0 comments · Fixed by #34
Closed

haraka plugin redis error on connecting to redis #32

f1sh3y3s opened this issue Apr 29, 2022 · 0 comments · Fixed by #34

Comments

@f1sh3y3s
Copy link

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

msimerson added a commit that referenced this issue May 23, 2022
msimerson added a commit that referenced this issue May 26, 2022
- fix: backwards compatibility with legacy plugin config files
- fix: rename p\* methods -> * (required in redis v4)
- fix: add `await client.connect()` as is now required, fixes #32
- fix: make redis_ping async
- dep(redis): bump 4.0 -> 4.1
- chore(ci): updated syntax
- chore(ci): added codeql config
- test: added tests for init_redis_plugin
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

Successfully merging a pull request may close this issue.

1 participant