Rspamd cannot connect to redis /var/lib/redis/rspamd/rspamd.sock (port 0)

mr.ken84

Verified User
Joined
Apr 21, 2022
Messages
15
Rspamd on history error: cannot connect to redis /var/lib/rspamd/.redis/redis.sock (port 0):
please help me
 

Attachments

  • screenshot_1729236756.png
    screenshot_1729236756.png
    67.4 KB · Views: 7
Hello,

Is redis for rspamd running at all? Did you probably complete a custom/manual installation of redis for PHP? And your directadmin does not include redis support (provided in PRO pack)?
 
I see that redis and rspamd are both running.
How to fix errors in history? I need to upgrade my DA to the Pro packed pack?
If history warns of such an error, will it affect the operation of rspamd?
 

Attachments

  • redis1.png
    redis1.png
    26 KB · Views: 1
  • screenshot_1729309527.png
    screenshot_1729309527.png
    63.7 KB · Views: 1
  • screenshot_1729309498.png
    screenshot_1729309498.png
    2.5 KB · Views: 1
So my guesses are correct. You've got a custom installation of Redis, that is probably the culprit of the issue.

Redis for rSpamd would be shown like this:

Bash:
[root@server ~]# ps axu | grep redis
_rspamd      693  0.1  0.2  94440 10992 ?        Ssl  Oct09  24:01 /usr/local/bin/redis-server unixsocket:/var/lib/rspamd/.redis/redis.sock
root     3172482  0.0  0.0  12216  1088 pts/0    S+   20:34   0:00 grep --color=auto redis
[root@server ~]#

and it is managed by redis-rspamd.service in systemctl

Bash:
[root@server ~]# systemctl status redis-rspamd.service
● redis-rspamd.service - Multi-user redis persistent key-value database
   Loaded: loaded (/etc/systemd/system/redis-rspamd.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2024-10-09 18:56:17 +07; 1 weeks 3 days ago
     Docs: http://redis.io/documentation,
           man:redis-server(1)
 Main PID: 693 (redis-server)
   Status: "Ready to accept connections"
    Tasks: 5 (limit: 23251)
   Memory: 8.8M
   CGroup: /system.slice/redis-rspamd.service
           └─693 /usr/local/bin/redis-server unixsocket:/var/lib/rspamd/.redis/redis.sock

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
[root@server ~]#

What will you have when running

Code:
systemctl status redis-rspamd.service
?
 
Bash:
[root@mail127 ~]# systemctl status redis-rspamd.service
● redis-rspamd.service - Multi-user redis persistent key-value database
   Loaded: loaded (/etc/systemd/system/redis-rspamd.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2024-10-18 08:13:46 UTC; 3 days ago
     Docs: http://redis.io/documentation,
           man:redis-server(1)
 Main PID: 1492314 (redis-server)
   Status: "Ready to accept connections"
    Tasks: 5 (limit: 203852)
   Memory: 8.4M
   CGroup: /system.slice/redis-rspamd.service
           └─1492314 /usr/local/bin/redis-server unixsocket:/var/lib/rspamd/.redis/redis.sock
 

Attachments

  • 1.png
    1.png
    27.5 KB · Views: 3
So, the redis for rspamd is running.

What will you see
Bash:
ps axu | grep redis
?

Bash:
ls -lda /var/lib/rspamd/.redis/redis.sock
?

Bash:
ps axu | grep rspam
?
 
Back
Top