Errors during installation - all related to amavisd-new  [SOLVED]

Locked
silenzium
Posts: 26
Joined: Thu 30. Nov 2017, 10:59

Errors during installation - all related to amavisd-new

Post by silenzium »

Perhaps this is related to viewtopic.php?f=4&t=115&p=501&hilit=Err ... d+new#p501 but since the question is about Debian 8.5 and I have Debian 9 I better start a new thread before trying the advices from there.

I installed on a fresh Debian 9 minimal Hetzner but encountered the following errors:

Image

When I look into the install error logs there are 10 occurrences of "ERROR DETECTED" and the lines before are always:

Code: Select all

Errors were encountered while processing:
     amavisd-new
    E: Sub-process /usr/bin/dpkg returned an error code (1)
I also can't access the panel, I get an error

Code: Select all

ERR_SSL_SERVER_CERT_BAD_FORMAT
in the browser.

Any help would be greatly appreciated.

Tell me if you need detailed logs or something.

Thanks!
Best, Lorenz
User avatar
Martin
Posts: 984
Joined: Wed 20. Jan 2016, 00:43

Re: Errors during installation - all related to amavisd-new

Post by Martin »

Hello,

you should check /var/log/keyhelp/install.log for the first error. Most likely there is a package installation which can not be satisfied (custom sources.list oder default debian one?) and so other package installations afterwards fails too.
Viele Grüße,
Martin
silenzium
Posts: 26
Joined: Thu 30. Nov 2017, 10:59

Re: Errors during installation - all related to amavisd-new

Post by silenzium »

Thanks for your answer.

The first error is indeed where the amavisd-new is installed:

Code: Select all

    Setting up amavisd-new (1:2.10.1-4) ...
    Creating/updating amavis user account...
    Job for amavis.service failed because the control process exited with error code.
    See "systemctl status amavis.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript amavis, action "start" failed.
    [0;1;31m●[0m amavis.service - LSB: Starts amavisd-new mailfilter
       Loaded: loaded (/etc/init.d/amavis; generated; vendor preset: enabled)
       Active: [0;1;31mfailed[0m (Result: exit-code) since Thu 2017-11-30 12:28:25 CET; 7ms ago
         Docs: man:systemd-sysv-generator(8)
      Process: 11816 ExecStart=/etc/init.d/amavis start [0;1;31m(code=exited, status=1/FAILURE)[0m
    
    Nov 30 12:28:25 Debian-92-stretch-64-minimal amavis[11816]: Starting amavisd:…en
    Nov 30 12:28:25 Debian-92-stretch-64-minimal amavis[11816]:   a fully qualifi…h.
    Nov 30 12:28:25 Debian-92-stretch-64-minimal amavis[11816]:   You must explic…me
    Nov 30 12:28:25 Debian-92-stretch-64-minimal amavis[11816]:   in /etc/amavis/…'s
    Nov 30 12:28:25 Debian-92-stretch-64-minimal amavis[11816]:   network name!
    Nov 30 12:28:25 Debian-92-stretch-64-minimal amavis[11816]: (failed).
    Nov 30 12:28:25 Debian-92-stretch-64-minimal systemd[1]: [0;1;39mamavis.service: Cont…=1[0m
    Nov 30 12:28:25 Debian-92-stretch-64-minimal systemd[1]: [0;1;31mFailed to start LSB:…r.[0m
    Nov 30 12:28:25 Debian-92-stretch-64-minimal systemd[1]: [0;1;39mamavis.service: Unit…e.[0m
    Nov 30 12:28:25 Debian-92-stretch-64-minimal systemd[1]: [0;1;39mamavis.service: Fail…'.[0m
    Hint: Some lines were ellipsized, use -l to show in full.
    dpkg: error processing package amavisd-new (--configure):
     subprocess installed post-installation script returned error exit status 1
    Processing triggers for libc-bin (2.24-11+deb9u1) ...
    Processing triggers for systemd (232-25+deb9u1) ...
    Errors were encountered while processing:
     amavisd-new
    E: Sub-process /usr/bin/dpkg returned an error code (1)
 
    >>>>>>>>>>>>>>>>>>>>>>
    !!! ERROR DETECTED !!!
    <<<<<<<<<<<<<<<<<<<<<<
 
  [SKIPPED DUE PREVIOUS ERRORS] exec | mkdir -p -m 0755 /var/spool/spamassassin/
  [SKIPPED DUE PREVIOUS ERRORS] exec | chown amavis:amavis /var/spool/spamassassin/
The sources.list is the default of Hetzner:

Code: Select all

deb http://mirror.hetzner.de/debian/packages stretch main contrib non-free
deb http://mirror.hetzner.de/debian/security stretch/updates main contrib non-free
deb http://mirror.hetzner.de/debian/packages stretch-updates main contrib non-free

deb http://ftp.de.debian.org/debian/ stretch main non-free contrib
deb http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free

Should I try to install the package from another mirror or change the sources.list and then rerun the KeyHelp installer? What would you suggest?

Thanks!
Best, Lorenz
User avatar
Martin
Posts: 984
Joined: Wed 20. Jan 2016, 00:43

Re: Errors during installation - all related to amavisd-new

Post by Martin »

Hello,

accroding to the first error, amavis install fails because your system did not have a FQDN:
Nov 30 12:28:25 Debian-92-stretch-64-minimal amavis[11816]: Starting amavisd:…en
Nov 30 12:28:25 Debian-92-stretch-64-minimal amavis[11816]: a fully qualifi…h.
Nov 30 12:28:25 Debian-92-stretch-64-minimal amavis[11816]: You must explic…me
Nov 30 12:28:25 Debian-92-stretch-64-minimal amavis[11816]: in /etc/amavis/…'s
Nov 30 12:28:25 Debian-92-stretch-64-minimal amavis[11816]: network name!
Viele Grüße,
Martin
silenzium
Posts: 26
Joined: Thu 30. Nov 2017, 10:59

Re: Errors during installation - all related to amavisd-new  [SOLVED]

Post by silenzium »

Thank you, setting the FQDN in /etc/hostname and /etc/mailname and /etc/hosts did it.

Rerun the installer and now everything is [OKAY]!

Props for the support!

Best, silenzium
Best, Lorenz
Locked