Rspamd upgrade fail

What app is this about, and its version: Rspamd 4.1.4~ynh1
What YunoHost version are you running: 12.1.40.1
What type of hardware are you using: Virtual machine

Describe your issue

Upgrading Rspamd from 4.1.4~ynh1 to 4.1.5~ynh1 failed during the upgrade. This caused the removal of the application so that the safety backup could be restored. The removal script ran apt autoremove --purge which also removed some jellyfin packages and in turn, the jellyfin user.

I ran the following to confirm the Jellyfin app was not actually removed:

$ sudo yunohost app info jellyfin
description: Media System that manage and stream your media
domain_path: schmidthaus.rocks/jellyfin
id: jellyfin
name: Jellyfin
version: 10.11.11~ynh1

Then I ran sudo yunohost app upgrade jellyfin --force to reinstall it overtop the existing data. Jellyfin works again.

Share relevant logs or error messages

Failed Rspamd upgrade:

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

Rspamd Removal:

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

Yeah this is a one time issue with Jellyfin because we changed the way it’s installed. You did the correct operation, it shouldn’t come back anymore

I’m still wondering why the rspamd upgrade failed…

You have the same error as I have :slight_smile:

Processing triggers for man-db (2.11.2-2) ...
2026-08-17 22:27:48,556: WARNING - Configuration file '/etc/rspamd/worker-controller.inc'
2026-08-17 22:27:48,557: WARNING -  ==> Modified (by you or by a script) since installation.
2026-08-17 22:27:48,558: WARNING -  ==> Package distributor has shipped an updated version.
2026-08-17 22:27:48,559: WARNING -    What would you like to do about it ?  Your options are:
2026-08-17 22:27:48,560: WARNING -     Y or I  : install the package maintainer's version
2026-08-17 22:27:48,561: WARNING -     N or O  : keep your currently-installed version
2026-08-17 22:27:48,561: WARNING -       D     : show the differences between the versions
2026-08-17 22:27:48,562: WARNING -       Z     : start a shell to examine the situation
2026-08-17 22:27:48,563: WARNING -  The default action is to keep your current version.
2026-08-17 22:27:48,564: WARNING - *** worker-controller.inc (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package rspamd (--install):
2026-08-17 22:27:48,564: WARNING -  end of file on stdin at conffile prompt
2026-08-17 22:27:50,191: WARNING - Errors were encountered while processing:
2026-08-17 22:27:50,191: WARNING -  rspamd

I’m wondering if “-- force” can also work in this case.
Nope, the upgrade stay on “Info: Updating apt…”

if you use the ui for rspam your upgrade will fail. the ui package sets a password in the main configfile and not in the include directory. This leads to dpgk asking if it should overwrite these changes, But because nobody ever ansers this question, the update fails.

More details here Updating from 4.1.4 to 4.1.5. fails due to interactive dialog timeout · Issue #53 · YunoHost-Apps/rspamd_ynh · GitHub

Interesting, thank you for that information. It sounds like the rspamui package needs a tweak.

Has anyone managed to reinstall rspamd correctly?
as explained in the issue, i tried to remove rspamd, rspamdui, purged /etc/rspamd and /var/lib/rspamd

but rspamd’s install still failing :confused:

Can you share the install log ?

I think it failed because dpkg prompted for input but the upgrade script is not interactive.

it is in the issue,
but there is the link of the install log:

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

Yes,

I did remove rspamd and the UI, removed /etc/rspamd completely,

and installed rspamd freshly again without problems.

damned, i don’t understand why the same operation doesn’t work here … :thinking:

Hi folks,

Same problem here… First, I tried to upgrade rspamd about 15d ago, it failed because of rspamdUI, so I uninstalled rspamdUI. I deleted /etc/rspamd and I still can’t reinstall it…

Do you have any clues? Thanks!

Here’s the log :

args:
  app: rspamd
  force: false
  ignore_yunohost_version: false
  label: Rspamd
  no_remove_on_failure: false
ended_at: 2026-09-03 09:47:27.105636
env:
  YNH_APP_ACTION: install
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_39b9n93s
  YNH_APP_ID: rspamd
  YNH_APP_INSTANCE_NAME: rspamd
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 4.1.5~ynh1
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_ARCH: amd64
  YNH_DEBIAN_VERSION: bookworm
  YNH_DEFAULT_PHP_VERSION: '8.2'
  YNH_HELPERS_VERSION: '2.1'
error: Une erreur est survenue dans le script d'installation de l'application
interface: api
operation: app_install
parent: null
related_to:
- - app
  - rspamd
started_at: 2026-09-03 09:47:16.027936
started_by: ******
success: false
yunohost_version: 12.1.40.1

============

2026-09-03 09:47:17,054: INFO - Installation de rspamd…
2026-09-03 09:47:17,059: INFO - Provisioning sources...
2026-09-03 09:47:17,059: DEBUG - Prefetching asset trixie: https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~trixie_amd64.deb ...
2026-09-03 09:47:17,564: DEBUG - Prefetching asset bookworm: https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb ...
2026-09-03 09:47:18,006: INFO - Provisioning permissions...
2026-09-03 09:47:18,012: DEBUG - Permission 'rspamd.main' mise à jour
2026-09-03 09:47:18,021: DEBUG - Permission 'rspamd.main' créée
2026-09-03 09:47:18,031: DEBUG - Permission 'rspamd.main' mise à jour
2026-09-03 09:47:18,033: DEBUG - Permission 'rspamd.main' mise à jour
2026-09-03 09:47:18,165: DEBUG - Creating LDAP perm rspamd.main
2026-09-03 09:47:18,167: DEBUG - Permissions were resynchronized to LDAP
2026-09-03 09:47:18,226: DEBUG - Formating result in 'export' mode
2026-09-03 09:47:18,228: DEBUG - La configuration de SSOwat a été regénérée
2026-09-03 09:47:18,228: INFO - Provisioning apt...
2026-09-03 09:47:18,237: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt"  7>&1']'
2026-09-03 09:47:18,259: DEBUG - + source /usr/share/yunohost/helpers
2026-09-03 09:47:18,260: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2026-09-03 09:47:18,261: DEBUG - +++ cd -- /usr/share/yunohost
2026-09-03 09:47:18,261: DEBUG - +++ pwd
2026-09-03 09:47:18,261: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2026-09-03 09:47:18,262: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2026-09-03 09:47:18,264: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2026-09-03 09:47:18,264: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2026-09-03 09:47:18,281: DEBUG - + ynh_abort_if_errors
2026-09-03 09:47:18,282: DEBUG - + trap ynh_exit_properly EXIT
2026-09-03 09:47:18,282: DEBUG - + ynh_apt_install_dependencies redis-server libhyperscan5 postfix libsodium23 libsqlite3-0 libssl3 libarchive13 libbinutils
2026-09-03 09:47:18,283: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2026-09-03 09:47:18,283: DEBUG - ++ sed 's/|/ | /'
2026-09-03 09:47:18,285: DEBUG - + local 'dependencies=redis-server, libhyperscan5, postfix, libsodium23, libsqlite3-0, libssl3, libarchive13, libbinutils'
2026-09-03 09:47:18,286: DEBUG - ++ ynh_read_manifest version
2026-09-03 09:47:18,286: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_d_f0d4vs/manifest.toml
2026-09-03 09:47:18,287: DEBUG - ++ toml_to_json
2026-09-03 09:47:18,287: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2026-09-03 09:47:18,288: DEBUG - ++ jq .version --raw-output
2026-09-03 09:47:18,333: DEBUG - + local version=4.1.5~ynh1
2026-09-03 09:47:18,333: DEBUG - + local app_ynh_deps=rspamd-ynh-deps
2026-09-03 09:47:18,334: DEBUG - + grep '[<=>]'
2026-09-03 09:47:18,336: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2026-09-03 09:47:18,336: DEBUG - ++ sort -u
2026-09-03 09:47:18,338: DEBUG - + local specific_php_version=
2026-09-03 09:47:18,339: DEBUG - + grep --quiet php
2026-09-03 09:47:18,341: DEBUG - ++ _ynh_apt_package_is_installed postgresql-15
2026-09-03 09:47:18,341: DEBUG - ++ local package=postgresql-15
2026-09-03 09:47:18,342: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-15
2026-09-03 09:47:18,342: DEBUG - ++ grep --quiet '^installed$'
2026-09-03 09:47:18,366: DEBUG - ++ echo yes
2026-09-03 09:47:18,366: DEBUG - + local psql_installed=yes
2026-09-03 09:47:18,367: DEBUG - + [[ true == \t\r\u\e ]]
2026-09-03 09:47:18,368: DEBUG - + YNH_APT_INSTALL_DEPENDENCIES_REPLACE=false
2026-09-03 09:47:18,368: DEBUG - ++ mktemp --directory
2026-09-03 09:47:18,369: DEBUG - + local TMPDIR=/tmp/tmp.lOh7IejMHf
2026-09-03 09:47:18,369: DEBUG - + mkdir -p /tmp/tmp.lOh7IejMHf/rspamd-ynh-deps/DEBIAN
2026-09-03 09:47:18,371: DEBUG - + chmod -R 755 /tmp/tmp.lOh7IejMHf/rspamd-ynh-deps
2026-09-03 09:47:18,372: DEBUG - + cat
2026-09-03 09:47:18,374: DEBUG - + _ynh_apt update --error-on=any
2026-09-03 09:47:18,375: DEBUG - + [[ update --error-on=any == \u\p\d\a\t\e ]]
2026-09-03 09:47:18,375: DEBUG - + _ynh_wait_dpkg_free
2026-09-03 09:47:18,777: DEBUG - + return 0
2026-09-03 09:47:18,779: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update --error-on=any
2026-09-03 09:47:18,877: DEBUG - Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
2026-09-03 09:47:18,877: DEBUG - Hit:2 http://deb.debian.org/debian bookworm InRelease
2026-09-03 09:47:18,882: DEBUG - Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
2026-09-03 09:47:18,943: DEBUG - Hit:5 https://dl.yarnpkg.com/debian stable InRelease
2026-09-03 09:47:19,027: DEBUG - Hit:6 https://packages.sury.org/php bookworm InRelease
2026-09-03 09:47:19,060: DEBUG - Hit:4 https://forge.yunohost.org/debian bookworm InRelease
2026-09-03 09:47:19,581: DEBUG - Fetched 55.4 kB in 1s (75.6 kB/s)
2026-09-03 09:47:20,427: DEBUG - Reading package lists...
2026-09-03 09:47:20,441: DEBUG - + _ynh_wait_dpkg_free
2026-09-03 09:47:20,803: DEBUG - + return 0
2026-09-03 09:47:20,803: DEBUG - + dpkg-deb --build /tmp/tmp.lOh7IejMHf/rspamd-ynh-deps /tmp/tmp.lOh7IejMHf/rspamd-ynh-deps.deb
2026-09-03 09:47:20,820: DEBUG - + dpkg --force-depends --install /tmp/tmp.lOh7IejMHf/rspamd-ynh-deps.deb
2026-09-03 09:47:20,821: DEBUG - + tee /tmp/tmp.lOh7IejMHf/dpkg_log
2026-09-03 09:47:20,876: DEBUG - Selecting previously unselected package rspamd-ynh-deps.
2026-09-03 09:47:20,974: DEBUG - (Reading database ... 123865 files and directories currently installed.)
2026-09-03 09:47:20,982: DEBUG - Preparing to unpack .../rspamd-ynh-deps.deb ...
2026-09-03 09:47:20,988: DEBUG - Unpacking rspamd-ynh-deps (4.1.5~ynh1) ...
2026-09-03 09:47:21,021: DEBUG - dpkg: rspamd-ynh-deps: dependency problems, but configuring anyway as you requested:
2026-09-03 09:47:21,021: DEBUG -  rspamd-ynh-deps depends on libhyperscan5; however:
2026-09-03 09:47:21,022: DEBUG -   Package libhyperscan5 is not installed.
2026-09-03 09:47:21,022: DEBUG - 
2026-09-03 09:47:21,022: DEBUG - Setting up rspamd-ynh-deps (4.1.5~ynh1) ...
2026-09-03 09:47:21,045: DEBUG - + _ynh_apt_install --fix-broken
2026-09-03 09:47:21,046: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2026-09-03 09:47:21,046: DEBUG - + [[ --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken == \u\p\d\a\t\e ]]
2026-09-03 09:47:21,046: DEBUG - + _ynh_wait_dpkg_free
2026-09-03 09:47:21,370: DEBUG - + return 0
2026-09-03 09:47:21,372: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2026-09-03 09:47:21,525: DEBUG - Reading package lists...
2026-09-03 09:47:21,731: DEBUG - Building dependency tree...
2026-09-03 09:47:21,732: DEBUG - Reading state information...
2026-09-03 09:47:21,801: DEBUG - Correcting dependencies... Done
2026-09-03 09:47:21,956: DEBUG - The following additional packages will be installed:
2026-09-03 09:47:21,956: DEBUG -   libhyperscan5
2026-09-03 09:47:21,970: DEBUG - The following NEW packages will be installed:
2026-09-03 09:47:21,971: DEBUG -   libhyperscan5
2026-09-03 09:47:22,407: DEBUG - Preconfiguring packages ...
2026-09-03 09:47:22,485: DEBUG - 0 upgraded, 1 newly installed, 0 to remove and 32 not upgraded.
2026-09-03 09:47:22,485: DEBUG - Need to get 0 B/2489 kB of archives.
2026-09-03 09:47:22,486: DEBUG - After this operation, 16.5 MB of additional disk space will be used.
2026-09-03 09:47:22,524: DEBUG - Selecting previously unselected package libhyperscan5.
2026-09-03 09:47:22,594: DEBUG - (Reading database ... 123865 files and directories currently installed.)
2026-09-03 09:47:22,603: DEBUG - Preparing to unpack .../libhyperscan5_5.4.0-2_amd64.deb ...
2026-09-03 09:47:22,609: DEBUG - Unpacking libhyperscan5 (5.4.0-2) ...
2026-09-03 09:47:22,931: DEBUG - Setting up libhyperscan5 (5.4.0-2) ...
2026-09-03 09:47:22,936: DEBUG - Processing triggers for libc-bin (2.36-9+deb12u14) ...
2026-09-03 09:47:23,117: DEBUG - + rm --recursive --force /tmp/tmp.lOh7IejMHf
2026-09-03 09:47:23,119: DEBUG - + _ynh_apt_package_is_installed rspamd-ynh-deps
2026-09-03 09:47:23,119: DEBUG - + local package=rspamd-ynh-deps
2026-09-03 09:47:23,119: DEBUG - + dpkg-query --show '--showformat=${db:Status-Status}' rspamd-ynh-deps
2026-09-03 09:47:23,120: DEBUG - + grep --quiet '^installed$'
2026-09-03 09:47:23,145: DEBUG - ++ _ynh_apt_package_is_installed postgresql-15
2026-09-03 09:47:23,146: DEBUG - ++ local package=postgresql-15
2026-09-03 09:47:23,146: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-15
2026-09-03 09:47:23,146: DEBUG - ++ grep --quiet '^installed$'
2026-09-03 09:47:23,173: DEBUG - ++ echo yes
2026-09-03 09:47:23,173: DEBUG - + local psql_installed2=yes
2026-09-03 09:47:23,174: DEBUG - + [[ yes != \y\e\s ]]
2026-09-03 09:47:23,174: DEBUG - + ynh_exit_properly
2026-09-03 09:47:23,175: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2026-09-03 09:47:23,281: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install"  7>&1']'
2026-09-03 09:47:23,296: DEBUG - + source /usr/share/yunohost/helpers
2026-09-03 09:47:23,297: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2026-09-03 09:47:23,298: DEBUG - +++ cd -- /usr/share/yunohost
2026-09-03 09:47:23,299: DEBUG - +++ pwd
2026-09-03 09:47:23,299: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2026-09-03 09:47:23,299: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2026-09-03 09:47:23,301: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2026-09-03 09:47:23,302: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2026-09-03 09:47:23,323: INFO - [++++++..............] > Setting up rspamd...
2026-09-03 09:47:23,324: DEBUG - ++ mktemp -d
2026-09-03 09:47:23,326: DEBUG - + tmp_dir=/tmp/tmp.oi5eTcqWUQ
2026-09-03 09:47:23,326: DEBUG - + [[ bookworm == \b\o\o\k\w\o\r\m ]]
2026-09-03 09:47:23,326: DEBUG - + ynh_setup_source --dest_dir=/tmp/tmp.oi5eTcqWUQ --source_id=bookworm
2026-09-03 09:47:23,396: DEBUG - + keep=
2026-09-03 09:47:23,397: DEBUG - + full_replace=0
2026-09-03 09:47:23,397: DEBUG - + source_id=bookworm
2026-09-03 09:47:23,397: DEBUG - + '[' -e /tmp/tmp.oi5eTcqWUQ/composer.phar ']'
2026-09-03 09:47:23,398: DEBUG - ++ ynh_read_manifest 'resources.sources["bookworm"]'
2026-09-03 09:47:23,398: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_39b9n93s/manifest.toml
2026-09-03 09:47:23,399: DEBUG - ++ toml_to_json
2026-09-03 09:47:23,399: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2026-09-03 09:47:23,399: DEBUG - ++ jq '.resources.sources["bookworm"]' --raw-output
2026-09-03 09:47:23,444: DEBUG - + local 'sources_json={
2026-09-03 09:47:23,444: DEBUG -   "amd64": {
2026-09-03 09:47:23,445: DEBUG -     "url": "https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb",
2026-09-03 09:47:23,445: DEBUG -     "sha256": "937c3cac5bb0f1e0b09adc69820d0ba3f988dea36db669d246f92006493df7e3"
2026-09-03 09:47:23,445: DEBUG -   },
2026-09-03 09:47:23,446: DEBUG -   "arm64": {
2026-09-03 09:47:23,446: DEBUG -     "url": "https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_arm64.deb",
2026-09-03 09:47:23,446: DEBUG -     "sha256": "22c5570be0aa53c36a5f844e2b56cd549251dcce27f3f87b12ea582b8f3a2de5"
2026-09-03 09:47:23,447: DEBUG -   },
2026-09-03 09:47:23,447: DEBUG -   "extract": false,
2026-09-03 09:47:23,447: DEBUG -   "rename": "rspamd.deb"
2026-09-03 09:47:23,448: DEBUG - }'
2026-09-03 09:47:23,448: DEBUG - + jq -re .url
2026-09-03 09:47:23,479: DEBUG - null
2026-09-03 09:47:23,479: DEBUG - + local arch_prefix=.amd64
2026-09-03 09:47:23,518: DEBUG - + local src_url=https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb
2026-09-03 09:47:23,556: DEBUG - + local src_sum=937c3cac5bb0f1e0b09adc69820d0ba3f988dea36db669d246f92006493df7e3
2026-09-03 09:47:23,592: DEBUG - + local src_format=
2026-09-03 09:47:23,630: DEBUG - + local src_in_subdir=
2026-09-03 09:47:23,630: DEBUG - + src_in_subdir=true
2026-09-03 09:47:23,669: DEBUG - + local src_extract=false
2026-09-03 09:47:23,708: DEBUG - + local src_platform=
2026-09-03 09:47:23,745: DEBUG - + local src_rename=rspamd.deb
2026-09-03 09:47:23,746: DEBUG - + [[ -n https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb ]]
2026-09-03 09:47:23,746: DEBUG - + [[ -n 937c3cac5bb0f1e0b09adc69820d0ba3f988dea36db669d246f92006493df7e3 ]]
2026-09-03 09:47:23,746: DEBUG - + [[ -z '' ]]
2026-09-03 09:47:23,747: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*\.zip$ ]]
2026-09-03 09:47:23,747: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*/zipball/.*$ ]]
2026-09-03 09:47:23,747: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*\.tar\.gz$ ]]
2026-09-03 09:47:23,748: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*\.tgz$ ]]
2026-09-03 09:47:23,748: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*/tar\.gz/.*$ ]]
2026-09-03 09:47:23,748: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*/tarball/.*$ ]]
2026-09-03 09:47:23,749: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*\.tar\.xz$ ]]
2026-09-03 09:47:23,749: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*\.tar\.zst$ ]]
2026-09-03 09:47:23,749: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*\.tar\.bz2$ ]]
2026-09-03 09:47:23,750: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*\.tar$ ]]
2026-09-03 09:47:23,750: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*\.xz$ ]]
2026-09-03 09:47:23,750: DEBUG - + [[ https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb =~ ^.*\.zst$ ]]
2026-09-03 09:47:23,751: DEBUG - + [[ -z false ]]
2026-09-03 09:47:23,751: DEBUG - + src_format=tar.gz
2026-09-03 09:47:23,752: DEBUG - ++ echo tar.gz
2026-09-03 09:47:23,752: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2026-09-03 09:47:23,752: DEBUG - + src_format=tar.gz
2026-09-03 09:47:23,752: DEBUG - + src_extract=false
2026-09-03 09:47:23,753: DEBUG - + [[ false != \t\r\u\e ]]
2026-09-03 09:47:23,753: DEBUG - + [[ false != \f\a\l\s\e ]]
2026-09-03 09:47:23,754: DEBUG - ++ dirname /var/cache/yunohost/download/rspamd/bookworm
2026-09-03 09:47:23,754: DEBUG - + mkdir -p /var/cache/yunohost/download/rspamd
2026-09-03 09:47:23,755: DEBUG - + src_filename=/var/cache/yunohost/download/rspamd/bookworm
2026-09-03 09:47:23,755: DEBUG - + '[' tar.gz = docker ']'
2026-09-03 09:47:23,756: DEBUG - + '[' -n https://rspamd.com/apt-stable/pool/main/r/rspamd/rspamd_4.1.5-1~9a291a4~bookworm_amd64.deb ']'
2026-09-03 09:47:23,756: DEBUG - + '[' -e /var/cache/yunohost/download/rspamd/bookworm ']'
2026-09-03 09:47:23,757: DEBUG - + sha256sum --check --status
2026-09-03 09:47:23,784: DEBUG - + '[' '!' -e /var/cache/yunohost/download/rspamd/bookworm ']'
2026-09-03 09:47:23,785: DEBUG - + sha256sum --check --status
2026-09-03 09:47:23,814: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2026-09-03 09:47:23,816: DEBUG - + '[' -n '' ']'
2026-09-03 09:47:23,817: DEBUG - + mkdir --parents /tmp/tmp.oi5eTcqWUQ
2026-09-03 09:47:23,818: DEBUG - + [[ false == \f\a\l\s\e ]]
2026-09-03 09:47:23,818: DEBUG - + [[ -z rspamd.deb ]]
2026-09-03 09:47:23,818: DEBUG - + mv /var/cache/yunohost/download/rspamd/bookworm /tmp/tmp.oi5eTcqWUQ/rspamd.deb
2026-09-03 09:47:23,821: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_39b9n93s/patches/bookworm ']'
2026-09-03 09:47:23,821: DEBUG - + '[' -n '' ']'
2026-09-03 09:47:23,822: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2026-09-03 09:47:23,823: DEBUG - + '[' -n '' ']'
2026-09-03 09:47:23,823: DEBUG - + dpkg -i /tmp/tmp.oi5eTcqWUQ/rspamd.deb
2026-09-03 09:47:23,865: DEBUG - Selecting previously unselected package rspamd.
2026-09-03 09:47:23,940: DEBUG - (Reading database ... 123874 files and directories currently installed.)
2026-09-03 09:47:23,950: DEBUG - Preparing to unpack /tmp/tmp.oi5eTcqWUQ/rspamd.deb ...
2026-09-03 09:47:23,976: DEBUG - Unpacking rspamd (4.1.5-1~9a291a4~bookworm) ...
2026-09-03 09:47:24,472: DEBUG - Setting up rspamd (4.1.5-1~9a291a4~bookworm) ...
2026-09-03 09:47:25,259: DEBUG - Processing triggers for man-db (2.11.2-2) ...
2026-09-03 09:47:26,333: INFO - [######+++++++.......] > Adding system configurations related to rspamd...
2026-09-03 09:47:26,334: DEBUG - + cp ../conf/redis.conf /etc/rspamd/local.d/redis.conf
2026-09-03 09:47:26,336: DEBUG - + ynh_systemctl --service=rspamd --action=restart
2026-09-03 09:47:26,452: DEBUG - + service=rspamd
2026-09-03 09:47:26,453: DEBUG - + mount=
2026-09-03 09:47:26,453: DEBUG - + action=restart
2026-09-03 09:47:26,454: DEBUG - + wait_until=
2026-09-03 09:47:26,454: DEBUG - + length=20
2026-09-03 09:47:26,454: DEBUG - + log_path=/var/log/rspamd/rspamd.log
2026-09-03 09:47:26,455: DEBUG - + '[' -n '' ']'
2026-09-03 09:47:26,455: DEBUG - + ynh_in_ci_tests
2026-09-03 09:47:26,456: DEBUG - + timeout=300
2026-09-03 09:47:26,456: DEBUG - + '[' restart == stop ']'
2026-09-03 09:47:26,456: DEBUG - + '[' restart == reload ']'
2026-09-03 09:47:26,457: DEBUG - ++ date --utc --rfc-3339=seconds
2026-09-03 09:47:26,457: DEBUG - ++ cut -d+ -f1
2026-09-03 09:47:26,457: DEBUG - + local 'time_start=2026-09-03 09:47:26 UTC'
2026-09-03 09:47:26,458: DEBUG - + systemctl restart rspamd
2026-09-03 09:47:26,465: WARNING - Job for rspamd.service failed because the control process exited with error code.
2026-09-03 09:47:26,466: DEBUG - + journalctl --quiet --no-hostname --no-pager --lines=20 --unit=rspamd
2026-09-03 09:47:26,467: WARNING - See "systemctl status rspamd.service" and "journalctl -xeu rspamd.service" for details.
2026-09-03 09:47:26,492: WARNING - Sep 03 09:47:25 systemd[1]: Started rspamd.service - rapid spam filtering system.
2026-09-03 09:47:26,493: DEBUG - + '[' -e /var/log/rspamd/rspamd.log ']'
2026-09-03 09:47:26,494: WARNING - Sep 03 09:47:25 rspamd[443678]: 2026-09-03 09:47:25 #443678(main) <cdaae7>; main; main: rspamd 4.1.5 is loading configuration, build id: release
2026-09-03 09:47:26,496: DEBUG - + tail --lines=20 /var/log/rspamd/rspamd.log
2026-09-03 09:47:26,496: WARNING - Sep 03 09:47:25 rspamd[443678]: 2026-09-03 09:47:25 #443678(main) cfg; rspamd_config_read: failed to load config: cannot open /etc/rspamd/rspamd.conf: cannot open file /etc/rspamd/rspamd.conf: No such file or directory
2026-09-03 09:47:26,497: DEBUG - + _ynh_clean_check_starting
2026-09-03 09:47:26,498: WARNING - Sep 03 09:47:25 systemd[1]: rspamd.service: Main process exited, code=exited, status=1/FAILURE
2026-09-03 09:47:26,499: DEBUG - + '[' -n '' ']'
2026-09-03 09:47:26,500: WARNING - Sep 03 09:47:25 systemd[1]: rspamd.service: Failed with result 'exit-code'.
2026-09-03 09:47:26,501: DEBUG - + '[' -n '' ']'
2026-09-03 09:47:26,501: WARNING - Sep 03 09:47:26 systemd[1]: rspamd.service: Scheduled restart job, restart counter is at 4.
2026-09-03 09:47:26,503: DEBUG - + return 1
2026-09-03 09:47:26,503: WARNING - Sep 03 09:47:26 systemd[1]: Stopped rspamd.service - rapid spam filtering system.
2026-09-03 09:47:26,504: DEBUG - + ynh_exit_properly
2026-09-03 09:47:26,504: WARNING - Sep 03 09:47:26 systemd[1]: Started rspamd.service - rapid spam filtering system.
2026-09-03 09:47:26,506: WARNING - Sep 03 09:47:26 rspamd[443687]: 2026-09-03 09:47:26 #443687(main) <2feb57>; main; main: rspamd 4.1.5 is loading configuration, build id: release
2026-09-03 09:47:26,506: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2026-09-03 09:47:26,507: WARNING - Sep 03 09:47:26 rspamd[443687]: 2026-09-03 09:47:26 #443687(main) cfg; rspamd_config_read: failed to load config: cannot open /etc/rspamd/rspamd.conf: cannot open file /etc/rspamd/rspamd.conf: No such file or directory
2026-09-03 09:47:26,509: WARNING - Sep 03 09:47:26 systemd[1]: rspamd.service: Main process exited, code=exited, status=1/FAILURE
2026-09-03 09:47:26,510: WARNING - Sep 03 09:47:26 systemd[1]: rspamd.service: Failed with result 'exit-code'.
2026-09-03 09:47:26,512: WARNING - Sep 03 09:47:26 systemd[1]: rspamd.service: Scheduled restart job, restart counter is at 5.
2026-09-03 09:47:26,513: WARNING - Sep 03 09:47:26 systemd[1]: Stopped rspamd.service - rapid spam filtering system.
2026-09-03 09:47:26,515: WARNING - Sep 03 09:47:26 systemd[1]: rspamd.service: Start request repeated too quickly.
2026-09-03 09:47:26,516: WARNING - Sep 03 09:47:26 systemd[1]: rspamd.service: Failed with result 'exit-code'.
2026-09-03 09:47:26,517: WARNING - Sep 03 09:47:26 systemd[1]: Failed to start rspamd.service - rapid spam filtering system.
2026-09-03 09:47:26,517: WARNING - Sep 03 09:47:26 systemd[1]: rspamd.service: Start request repeated too quickly.
2026-09-03 09:47:26,519: WARNING - Sep 03 09:47:26 systemd[1]: rspamd.service: Failed with result 'exit-code'.
2026-09-03 09:47:26,519: WARNING - Sep 03 09:47:26 systemd[1]: Failed to start rspamd.service - rapid spam filtering system.
2026-09-03 09:47:26,521: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_srv_handler: cannot read from worker's srv pipe connection closed; command = heartbeat
2026-09-03 09:47:26,521: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_check_termination_clause: controller process 2665221 terminated normally
2026-09-03 09:47:26,522: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_cld_handler: do not respawn process controller after found terminated process with pid 2665221
2026-09-03 09:47:26,523: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_srv_handler: cannot read from worker's srv pipe connection closed; command = heartbeat
2026-09-03 09:47:26,524: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_check_termination_clause: normal process 2665224 terminated normally
2026-09-03 09:47:26,525: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_cld_handler: do not respawn process normal after found terminated process with pid 2665224
2026-09-03 09:47:26,526: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_srv_handler: cannot read from worker's srv pipe connection closed; command = heartbeat
2026-09-03 09:47:26,527: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_check_termination_clause: normal process 2665222 terminated normally
2026-09-03 09:47:26,528: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_cld_handler: do not respawn process normal after found terminated process with pid 2665222
2026-09-03 09:47:26,528: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_srv_handler: cannot read from worker's srv pipe connection closed; command = heartbeat
2026-09-03 09:47:26,530: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_check_termination_clause: normal process 2665223 terminated normally
2026-09-03 09:47:26,530: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_cld_handler: do not respawn process normal after found terminated process with pid 2665223
2026-09-03 09:47:26,532: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_srv_handler: cannot read from worker's srv pipe connection closed; command = heartbeat
2026-09-03 09:47:26,532: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_check_termination_clause: hs_helper process 2665219 terminated normally
2026-09-03 09:47:26,533: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_cld_handler: do not respawn process hs_helper after found terminated process with pid 2665219
2026-09-03 09:47:26,534: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_srv_handler: cannot read from worker's srv pipe connection closed; command = heartbeat
2026-09-03 09:47:26,535: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_check_termination_clause: normal process 2665225 terminated normally
2026-09-03 09:47:26,536: WARNING - 2026-08-21 09:56:00 #2665211(main) <fb919e>; main; rspamd_cld_handler: do not respawn process normal after found terminated process with pid 2665225
2026-09-03 09:47:26,537: WARNING - 2026-08-21 09:56:01 #2665211(main) <fb919e>; main; main: terminating...
2026-09-03 09:47:26,538: WARNING - 2026-08-21 09:56:01 #2665211(main) <hsxxxx>; hyperscan; cleanup_maybe: cleaning up directory /var/lib/rspamd
2026-09-03 09:47:27,104: ERROR - Impossible d'installer rspamd : Une erreur est survenue dans le script d'installation de l'application

From the part of the log shown, the failure is not visible yet: it stops while installing the apt dependencies, so the useful bit is probably a few lines later where apt/dpkg actually errors out.

Could you share the full log as a paste/link? In the meantime, I’d check for a half-configured package or pending dpkg prompt:

sudo dpkg --configure -a
sudo apt install -f
sudo apt update
sudo apt install rspamd-ynh-deps

If one of these commands asks about keeping/replacing a config file, that would confirm the suspicion from earlier in the thread: the YunoHost install script can’t answer interactive dpkg questions. After resolving that manually, try the rspamd install again.

Hi,

Thanks for your answer!
Here’s the Yunopaste : https://paste.yunohost.org/raw/vetuyoqico

Then, I tried your command lines and there was nothing about keeping/replacing a config file ; but it said “Unable to locate package rspamd-ynh-deps” :confused:

root@******:/home/*******# dpkg --configure -a
root@******:/home/*******# apt install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@*******:/home/*******# apt update
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease     
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://dl.yarnpkg.com/debian stable InRelease      
Hit:6 https://packages.sury.org/php bookworm InRelease                                                             
Hit:5 https://forge.yunohost.org/debian bookworm InRelease                                                         
Reading package lists... Done                               
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@*******:/home/*******# apt install rspamd-ynh-deps
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package rspamd-ynh-deps

the package rspamd-ynh-deps can’t exist on apt, it’s a package for the dependencies only created by the install script to keep the dependencies of the package.

Try

dpkg --purge rspamd

before reinstalling and let us know.

perhaps also before reinstalling try

yunohost tools regen-conf postfix

yunohost service restart postfix

rspamd may have edit configs in /etc/postfix/main.cf

@rodinux @otm33 Thank you very much! It worked! Thanks to your help, rspamd is now reinstalled and up to date!

Can you precise what you did to fix? Both actions ?