rspamd - proxy_backend_master_error_handler: abnormally closing connection from backend: [::1]:11333

Discussion in 'Server Operation' started by Ming-li, Apr 15, 2024.

  1. Ming-li

    Ming-li New Member

    Hello,
    I noticed that rspamd is full of errors:
    #1702(rspamd_proxy) <1aced8>; proxy; proxy_backend_master_error_handler: abnormally closing connection from backend: [::1]:11333, error: IO write error: Connection refused, retries left: 4

    If you do not want to see this error, you need to replace "localhost" with "127.0.0.1" in the rspamd configuration files, because localhost can be translated as both the IPv4 address "127.0.0.1" and the IPv6 address "::1".

    Commands:
    # Backup rspam configuration
    tar -cf /root/rspam-etc.tar /etc/rspamd
    # Replace localhost with 127.0.0.1
    find /etc/rspamd -type f -exec sed -i 's/localhost/127.0.0.1/g' {} +
    # Restart rspamd
    systemctl restart rspamd

    It would be nice if ISPconfig can do this change during install/upgrade.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Using localhost in Rspamd configuration is generally fine. There is no such error on any of my servers in either Redis or Rspamd logs. if you need a custom config for your system because it is limited in the way localhost works or if it does not resolve names properly, then you can create custom config templates to ensure that changes required for your system do not get overwritten on updates.
     
  3. Ming-li

    Ming-li New Member

    Interesting, I get this error on all Ubuntu servers.
    errors.png
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely, you have set up all servers in the same way, or they are base images of a specific data center or ISP, and these base images cause this issue in resolving localhost properly which then causes Rspamd or Redis to log these messages.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, I found a system with this issue now. I'll see what is causing this.
     
    Ming-li likes this.

Share This Page