Rspamd installation fails on freshly migrated yunohost 12.0.3

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.6
What app is this about: rspamd

Describe your issue

rspamd app installation fails after upgrade to 12.0.6, see yunopaste log file.

Additional info: I’ve added a whitelist entry for rspamd in the past. The two files are still existing:

  1. /etc/rspamd/local.d/multimap.conf
  2. /etc/rspamd/local.d/whitelist.sender.domain.map

Share relevant logs or error messages

https://paste.yunohost.org/raw/qasenuyivi

Configuration file '/etc/rspamd/maps.d/surbl-whitelist.inc'
2024-11-06 23:47:47,680: WARNING -  ==> Modified (by you or by a script) since installation.

You could try to temporary rename this file and see if the installation is successful.

Thank you. I’ve tried it two times:

  1. Renaming
    /etc/rspamd/maps.d/surbl-whitelist.inc to surbl-whitelist.inc.test

  2. Renaming the full folder /etc/rspamd to /etc/testrspamd

Each time, I receive the same error message like before. So it looks like the new file inside the installation package is the troublemaker

This is the log with rspamd main folder renamed:
https://paste.yunohost.org/raw/wibatuhuna

The problem is still here, log say that this file is deleted now.
It’s because you modifiy this file or there is a new file with the new version of rspamd. It prompt you to choose the new or old conf file.

There’s an option with apt to say what you want ( Dpkg::Options::=“–force-confnew or Dpkg::Options::=”–force-confold) but i don’t know how to integrate it with yunohost.

You can try to add the original file before install the package, so it shouldn’t prompt you to choose the version to keep :

https://github.com/rspamd/rspamd/blob/master/conf/maps.d/surbl-whitelist.inc

Last if it doesn’t work, try to install rspamd with apt, you can answer what version you want to keep. After that, you should be able to install the yunohost rspamd package.

Again thank you for your hints!

I’ve tried it with the original file. Same error.

Now i’ve tried your tip to install rspamd via apt:
Installation ok, but service won’t start due to missing config file:
rspamd_config_read: failed to load config: cannot open /etc/rspamd/rspamd.conf: No such file or directory

Now I’ve tried to install rspamd yunohost package on top of the apt installation: Now another file is missing :confused:

I start to think that it would be best to delete all traces of rspamd before retrying to install it via yunohost again?

2024-11-07 23:03:53,485: DEBUG - Installing new version of config file /etc/init.d/rspamd ...
2024-11-07 23:03:53,487: DEBUG - 
2024-11-07 23:03:53,487: WARNING - Configuration file '/etc/logrotate.d/rspamd'
2024-11-07 23:03:53,489: WARNING -  ==> Deleted (by you or by a script) since installation.
2024-11-07 23:03:53,490: WARNING -  ==> Package distributor has shipped an updated version.
2024-11-07 23:03:53,491: WARNING -    What would you like to do about it ?  Your options are:
2024-11-07 23:03:53,492: WARNING -     Y or I  : install the package maintainer's version
2024-11-07 23:03:53,495: WARNING -     N or O  : keep your currently-installed version
2024-11-07 23:03:53,498: WARNING -       D     : show the differences between the versions
2024-11-07 23:03:53,499: WARNING -       Z     : start a shell to examine the situation
2024-11-07 23:03:53,500: WARNING -  The default action is to keep your current version.
2024-11-07 23:03:53,501: WARNING - *** rspamd (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package rspamd (--install)

full log https://paste.yunohost.org/raw/kakitiweji

I think the same but it is not normal that install with apt don’t have the conf file.
I doubt the installation will succeed if apt fails. Perhaps waits for further advice before doing anything.

Thank you for your support @metyun !

I was now able to install the rspamd package via yunohost:

  1. apt remove rspamd
  2. apt clean && autoremove
  3. apt purge rspamd
  4. manually removing /etc/rspamd

● rspamd.service - rapid spam filtering system
     Loaded: loaded (/lib/systemd/system/rspamd.service; enabled; preset: enabled)
     Active: active (running) since Fri 2024-11-08 11:28:58 CET; 49s ago
2 Likes

Same issue, but work after delete /etc/rspamd dir
Thanx :wink:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.