rspamc error while loading shared libraries, libjemalloc.so.2, No such file or directory

new install of ApisCP as of a few days ago (3.2.44) on AlmaLinux 8. Whenever I move email messages in or out of the spam folder I get something like the following in /var/log/maillog:

Aug 18 10:38:31 nexus dovecot[1055435]: imap: Error: /usr/bin/rspamc: error while loading shared libraries: libjemalloc.so.2: cannot open shared object file: No such file or directory
Aug 18 10:38:31 nexus dovecot[1055435]: imap(redacted)<1059710><sgV+2vUf9/cYf80r>: program exec:/usr/libexec/dovecot/sieve/learn-spam.sh (1059711): Terminated with non-zero exit code 127
Aug 18 10:38:31 nexus dovecot[1055435]: imap(redacted)<1059710><sgV+2vUf9/cYf80r>: Error: sieve: failed to execute to program `learn-spam.sh': refer to server log for more information. [2024-08-18 10:38:31]
Aug 18 10:38:31 nexus dovecot[1055435]: imap(redacted)<1059710><sgV+2vUf9/cYf80r>: Error: sieve: Execution of script /.socket/dovecot/libexec/sieve/report-spam.sieve failed

According to yum, jemalloc is installed on the system. rspamc is just not able to find it.

Thanks for the bug report. Run upcp to bring the codebase current.

jemalloc is within the ssh filesystem layer, not siteinfo. Latest rspamd release has a dependency for jemalloc, so it needs to be relocated into siteinfo or ssh service enabled for the site; migrating to siteinfo is the most sensible.

1 Like

Thanks! Now it’s libarchive. :weary:

imap: Error: /usr/bin/rspamc: error while loading shared libraries: libarchive.so.13: cannot open shared object file: No such file or directory

upcp once more please.

Fantastic, thanks again! It’s working now, error free.