rspamd not function after upgrade ubuntu 20 to 22

Discussion in 'Installation/Configuration' started by Sharezone, Apr 16, 2024.

  1. Sharezone

    Sharezone New Member

    i follow the procedure for upgrade ubuntu from link

    https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/

    but after upgrade rspamd not function

    and if i try start manually the service show the erro

    root@hosting:~# systemctl restart rspamd
    Failed to restart rspamd.service: Unit rspamd.service is masked.
    root@hosting:~#


    please can help me
     
  2. Sharezone

    Sharezone New Member

    i execute

    1174 systemctl restart rspamd
    1175 systemctl unmask rspamd
    1176 systemctl restart rspamd
    1177 systemctl status rspamd

    root@hosting:~# systemctl status rspamd
    ● rspamd.service - LSB: Rspamd spam filtering system
    Loaded: loaded (/etc/init.d/rspamd; generated)
    Active: active (exited) since Tue 2024-04-16 16:10:40 CEST; 33min ago
    Docs: man:systemd-sysv-generator(8)
    Process: 1395 ExecStart=/etc/init.d/rspamd start (code=exited, status=0/SUCCESS)
    Process: 5494 ExecReload=/etc/init.d/rspamd reload (code=exited, status=0/SUCCESS)
    CPU: 9ms

    but not show gui and port 11334 not go up
     
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Did you run the autoinstaller, which you linked to?
     
  4. Sharezone

    Sharezone New Member

  5. till

    till Super Moderator Staff Member ISPConfig Developer

    So, is Rspamd working now according to post #2, and is just the GUI not reachable?
     
  6. Sharezone

    Sharezone New Member

    GUI not reachable , rspamd not socket on port 11334 open . i think that not function
     
  7. pyte

    pyte Well-Known Member HowtoForge Supporter

    Please check the output of "journalctl -u rspamd --no-pager" and see if there are any hints in /var/log/rspamd/rspamd.log.

    And run "rspamadm configtest" and see if it reports any errors
     
  8. Sharezone

    Sharezone New Member

    output journalctl -u rspamd --no-pager"

    Apr 17 11:04:45 hosting.sharezone.cloud systemd[1]: Stopping rapid spam filtering system...
    Apr 17 11:04:45 hosting.sharezone.cloud systemd[1]: rspamd.service: Succeeded.
    Apr 17 11:04:45 hosting.sharezone.cloud systemd[1]: Stopped rapid spam filtering system.
    -- Boot e907d8120b70471fa0f8243962cf0c1e --
    Apr 17 11:05:14 hosting.sharezone.cloud systemd[1]: Started rapid spam filtering system.
    Apr 17 11:05:15 hosting.sharezone.cloud rspamd[1403]: 2024-04-17 11:05:15 #1403(main) <be5d26>; main; main: rspamd 3.8.4 is loading configuration, build id: release
    Apr 17 13:21:41 hosting.sharezone.cloud systemd[1]: Stopping rapid spam filtering system...
    Apr 17 13:21:42 hosting.sharezone.cloud systemd[1]: rspamd.service: Succeeded.
    Apr 17 13:21:42 hosting.sharezone.cloud systemd[1]: Stopped rapid spam filtering system.
    root@hosting:~#


    output rspmad output

    2024-04-17 13:21:41 #1403(main) <be5d26>; main; rspamd_cld_handler: do not respawn process normal after found terminated process with pid 2305
    2024-04-17 13:21:41 #1403(main) <be5d26>; main; rspamd_check_termination_clause: normal process 2308 terminated normally
    2024-04-17 13:21:41 #1403(main) <be5d26>; main; rspamd_cld_handler: do not respawn process normal after found terminated process with pid 2308
    2024-04-17 13:21:41 #1403(main) <be5d26>; main; rspamd_check_termination_clause: normal process 2309 terminated normally
    2024-04-17 13:21:41 #1403(main) <be5d26>; main; rspamd_cld_handler: do not respawn process normal after found terminated process with pid 2309
    2024-04-17 13:21:41 #1403(main) <be5d26>; main; rspamd_check_termination_clause: controller process 2304 terminated normally
    2024-04-17 13:21:41 #1403(main) <be5d26>; main; rspamd_cld_handler: do not respawn process controller after found terminated process with pid 2304
    2024-04-17 13:21:42 #1403(main) <be5d26>; main; main: terminating...
    2024-04-17 13:21:42 #1403(main) <hsxxxx>; hyperscan; cleanup_maybe: cleaning up directory /var/lib/rspamd
    2024-04-17 13:21:42 #1403(main) <hsxxxx>; hyperscan; cleanup_maybe: remove stale hyperscan file /var/lib/rspamd/2326c8c4ec257e5448cd1f2c6564d0636ace323fc94dc5740129772f2bb0008d.hsmp
    2024-04-17 13:21:42 #1403(main) <hsxxxx>; hyperscan; cleanup_maybe: remove stale hyperscan file /var/lib/rspamd/41ccef59faf29203602a581da829a567e129f99be21b3e58487d2fe90358fbef.hsmp
    2024-04-17 13:21:42 #1403(main) <hsxxxx>; hyperscan; cleanup_maybe: remove stale hyperscan file /var/lib/rspamd/62aa99518cd59bb4a5b6c2efe7738a5483649a91eba9b2259279e8ff90b18f42.hsmp
    2024-04-17 13:21:42 #1403(main) <hsxxxx>; hyperscan; cleanup_maybe: remove stale hyperscan file /var/lib/rspamd/7f2ed5e2b90688e6e887f299e671d0a5a3b358b6f6e6b1c4a7b1eb15c31c8990.hsmp
    2024-04-17 13:21:42 #1403(main) <hsxxxx>; hyperscan; cleanup_maybe: remove stale hyperscan file /var/lib/rspamd/85e59a20bf5d402aaaea2f19f14ed73e30fe2c6034bfee35700f6c155263690a.hsmp
    2024-04-17 13:21:42 #1403(main) <hsxxxx>; hyperscan; cleanup_maybe: remove stale hyperscan file /var/lib/rspamd/957938921708d28f5b523c347455f3c2832f504468b1744409adf480b23f00f9.hsmp
    2024-04-17 13:21:42 #1403(main) <hsxxxx>; hyperscan; cleanup_maybe: remove stale hyperscan file /var/lib/rspamd/a5974e10d4c5cdafd51862edf560cfe57d53f4f027cadf02291221aa84129d72.hsmp
    2024-04-17 13:21:42 #1403(main) <hsxxxx>; hyperscan; cleanup_maybe: remove stale hyperscan file /var/lib/rspamd/b7114d3633a1741d8b843b8763d05772f6b8e78cc65db22b60e381f9f7c5ae29.hsmp
    root@hosting:~#


    root@hosting:~# rspamadm configtest
    Command 'rspamadm' not found, but can be installed with:
    apt install rspamd
    root@hosting:~#
     
  9. pyte

    pyte Well-Known Member HowtoForge Supporter

    This is strange. What is the output of "apt policy rspamd"?
     
  10. Sharezone

    Sharezone New Member

    root@hosting:~# apt policy rspamd
    rspamd:
    Installed: (none)
    Candidate: 3.8.4-1~93fa4f6dc~focal
    Version table:
    3.8.4-1~93fa4f6dc~focal 500
    500 http://rspamd.com/apt-stable focal/main amd64 Packages
    100 /var/lib/dpkg/status
    2.7-1build2 500
    500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
    root@hosting:~#
     
  11. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    OK, (re)install Rspamd and then run a force ISPConfig update:
    Code:
    apt update
    apt install rspamd
    ispconfig_update.sh --force
    
     
    pyte likes this.
  12. Sharezone

    Sharezone New Member

    root@hosting:~# apt install rspamd
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    rspamd : Depends: libbinutils (< 2.34.1) but 2.38-4ubuntu2.6 is to be installed
    E: Unable to correct problems, you have held broken packages.
    root@hosting:~#
     
  13. pyte

    pyte Well-Known Member HowtoForge Supporter

    Did the upgrade from 20 to 22 work correctly? Can you please show us the output of these commands:

    cat /etc/os-release
    cat /etc/apt/sources.list
    uname -a
    apt-get -s upgrade
     
  14. Sharezone

    Sharezone New Member


    i follow this procedure on link :
    https://www.howtoforge.com/ubuntu-20-04-to-22-04-upgrade/

    but now check with your command
     
  15. Sharezone

    Sharezone New Member

    root@hosting:~# cat /etc/os-release
    NAME="Ubuntu"
    VERSION="20.04.6 LTS (Focal Fossa)"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 20.04.6 LTS"
    VERSION_ID="20.04"
    HOME_URL="https://www.ubuntu.com/"
    SUPPORT_URL="https://help.ubuntu.com/"
    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
    VERSION_CODENAME=focal
    UBUNTU_CODENAME=focal
    root@hosting:~# cat /etc/apt/sources.list
    # created by ISPConfig auto installer
    deb http://de.archive.ubuntu.com/ubuntu/ focal main restricted
    deb http://de.archive.ubuntu.com/ubuntu/ focal-updates main restricted
    deb http://de.archive.ubuntu.com/ubuntu/ focal universe
    deb http://de.archive.ubuntu.com/ubuntu/ focal-updates universe
    deb http://de.archive.ubuntu.com/ubuntu/ focal multiverse
    deb http://de.archive.ubuntu.com/ubuntu/ focal-updates multiverse
    deb http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
    deb http://security.ubuntu.com/ubuntu focal-security main restricted
    deb http://security.ubuntu.com/ubuntu focal-security universe
    deb http://security.ubuntu.com/ubuntu focal-security multiverse
    root@hosting:~#
    root@hosting:~# apt-get -s upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    root@hosting:~#
     
  16. pyte

    pyte Well-Known Member HowtoForge Supporter

    You are still on Ubuntu 20.04.6 LTS (Focal Fossa) and not 22, so i assume something went wrong during the update or you missed a step. Run the "do-release-upgrade" command as described in the upgrade guide and read through the output carefully. It should say that the update was successful and that you need to reboot the system if the upgrade was successfull.
     
  17. Sharezone

    Sharezone New Member


    if i run the update i have problems. i had to go back with snap
     
  18. pyte

    pyte Well-Known Member HowtoForge Supporter

    Then fix the cause of these issues. I don't know what you are trying to say with that secound setence
     
  19. Sharezone

    Sharezone New Member

    If I execute the procedure with the command
    do-release-upgrade with the final reboot . rspamd does not work.
    is it possible to have the procedure to update the operating system correctly without breaking ISP
     
  20. pyte

    pyte Well-Known Member HowtoForge Supporter

    Ahhh you've reverted back to a snapshot before the update. Well you need to upgrade the system and then fix the issues afterwards.
    So the path would be:
    • Upgrade to Ubuntu 22.04
    • Check the services
    • Check why rspamd is not working correctly
    • Fix the issues
    No one here will be able to help you resolve your issue when you roll back to the snapshot and post informations from a system before the update where everything is wokring.
     
    ahrasis likes this.

Share This Page