ISPConfig 3 AutoInstaller - Failing Ubuntu 18.04.3 plus Debian 9

Discussion in 'Installation/Configuration' started by churbz, Jan 13, 2020.

  1. churbz

    churbz New Member

    Trying to use the auto installer on a fresh Ubuntu 18.04.3 LTS VPS server from Namecheap.

    ISPConfig and "Perfect Server Howto" AutoInstaller

    https://git.ispconfig.org/ispconfig/ispconfig-autoinstaller
    Some things are required for the supplied Namecheap blank system to proceed to get the help text output:
    1. apt update
    2. apt upgrade
    3. apt install git
    4. apt install software-properties-common
    5. apt install php7.2-cli
    6. apt install php7.2-mbstring
    Code:
    cd /tmp
    git clone https://git.ispconfig.org/ispconfig/ispconfig-autoinstaller.git
    cd ispconfig-autoinstaller
    ./ispc3-ai.sh --help
    It has also been noticed that attempting to chain arguments to the ispc3-ai.sh shell script do not work as expected:
    Code:
    ./ispc3-ai.sh --channel=stable --interactive --use-php=7.3
    -or-
    ./ispc3-ai.sh --debug --use-php=7.3 --interactive
    
    Each of the above command return the --help output.

    The fatal error preventing installation is detailed below:

    Code:
    [02:58] [server1.???.com ispconfig-autoinstaller] # ./ispc3-ai.sh --interactive                               
    WARNING! This script will reconfigure your complete server!
    It should be run on a freshly installed server and all current configuration that you have done will most likely be lost!
    Type 'yes' if you really want to continue: yes
    [INFO] Starting perfect server setup for Ubuntu 18.04.3 LTS
    [INFO] Configuring apt repositories.
    [INFO] Updating packages
    [INFO] Updated packages
    [INFO] Installing packages ssh, openssh-server, nano, vim-nox, ntp, lsb-release, apt-transport-https, ca-certificates, wget, git
    [INFO] Installed packages ssh, openssh-server, nano, vim-nox, ntp, lsb-release, apt-transport-https, ca-certificates, wget, git
    [INFO] Activating rspamd repository.
    [INFO] Activating sury php repository.
    [INFO] Updating packages (after enabling 3rd party repos).
    [INFO] Updated packages
    [INFO] Checking hostname.
    [INFO] Default shell is currently dash.
    [INFO] Setting bash as default shell.
    [INFO] Default shell is now bash.
    [INFO] Installing packages dbconfig-common, postfix, postfix-mysql, postfix-doc, mariadb-client, mariadb-server, openssl, getmail4, rkhunter, binutils, sudo
    [INFO] Installed packages dbconfig-common, postfix, postfix-mysql, postfix-doc, mariadb-client, mariadb-server, openssl, getmail4, rkhunter, binutils, sudo
    [INFO] Installing packages dovecot-imapd, dovecot-pop3d, dovecot-mysql, dovecot-sieve, dovecot-managesieved, dovecot-lmtpd
    [INFO] Installed packages dovecot-imapd, dovecot-pop3d, dovecot-mysql, dovecot-sieve, dovecot-managesieved, dovecot-lmtpd
    [INFO] Generating mySQL password.
    [INFO] Writing MySQL config files.
    [INFO] Configuring postfix.
    [INFO] Restarting postfix
    [INFO] Installing packages dnsutils, resolvconf, clamav, clamav-daemon, unzip, bzip2, arj, nomarch, lzop, cabextract, apt-listchanges, libnet-ldap-perl, libauthen-sasl-perl, clamav-docs, daemon, libio-string-perl, libio-socket-ssl-perl, libnet-ident-perl, zip, libnet-dns-perl, libdbd-mysql-perl, bind9, dnsutils, spamassassin, rspamd, redis-server, postgrey
    [INFO] Installed packages dnsutils, resolvconf, clamav, clamav-daemon, unzip, bzip2, arj, nomarch, lzop, cabextract, apt-listchanges, libnet-ldap-perl, libauthen-sasl-perl, clamav-docs, daemon, libio-string-perl, libio-socket-ssl-perl, libnet-ident-perl, zip, libnet-dns-perl, libdbd-mysql-perl, bind9, dnsutils, spamassassin, rspamd, redis-server, postgrey
    [INFO] Stopping Rspamd.
    [INFO] (Re)starting Bind.
    [INFO] Disabling spamassassin daemon.
    ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
    ERROR: initialize: libfreshclam init failed.
    ERROR: Initialization error!
    [ERROR] Exception occured: ISPConfigOSException -> Command freshclam failed. (/ispconfig.ai.php:15)
    [03:05] [server1.???.com ispconfig-autoinstaller] # cat /var/log/clamav/freshclam.log
    Mon Jan 13 03:04:17 2020 -> --------------------------------------
    Mon Jan 13 03:04:17 2020 -> freshclam daemon 0.102.1 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
    Mon Jan 13 03:04:17 2020 -> ClamAV update process started at Mon Jan 13 03:04:17 2020
    Mon Jan 13 03:04:17 2020 -> daily database available for download (remote version: 25693)
    Mon Jan 13 03:04:21 2020 -> Testing database: '/var/lib/clamav/tmp/clamav-639c6a1ec825c02662fa0f9f0f448597.tmp-daily.cvd' ...
    Mon Jan 13 03:04:31 2020 -> Database test passed.
    Mon Jan 13 03:04:31 2020 -> daily.cvd updated (version: 25693, sigs: 2131608, f-level: 63, builder: raynman)
    Mon Jan 13 03:04:31 2020 -> main database available for download (remote version: 59)
    Mon Jan 13 03:04:40 2020 -> Testing database: '/var/lib/clamav/tmp/clamav-81db5d9677fbc7f061f75f003f607000.tmp-main.cvd' ...
    Mon Jan 13 03:04:48 2020 -> Database test passed.
    Mon Jan 13 03:04:48 2020 -> main.cvd updated (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
    Mon Jan 13 03:04:48 2020 -> bytecode database available for download (remote version: 331)
    Mon Jan 13 03:04:48 2020 -> Testing database: '/var/lib/clamav/tmp/clamav-3d5119848d652d96b50cfc8facdb1fb3.tmp-bytecode.cvd' ...
    Mon Jan 13 03:04:49 2020 -> Database test passed.
    Mon Jan 13 03:04:49 2020 -> bytecode.cvd updated (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
    Mon Jan 13 03:04:49 2020 -> WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory
    Mon Jan 13 03:04:49 2020 -> --------------------------------------
    [03:05] [server1.facesbrand.com ispconfig-autoinstaller] # cat /var/run/clamav/clamd.ctl
    cat: /var/run/clamav/clamd.ctl: No such file or directory
    A similar attempt to install on a fresh Debian 9 VPS server has an error when attempting the perfect server equivalent of:
    Code:
    echo "update mysql.user set plugin = 'mysql_native_password' where user='root';" | mysql -u root
    
    Under Debian, ISPConfig does not create user databases nor users.

    This has been frustrating to say the least.

    Can someone please shed some light on a solution to the discovered issues?

    Thanks.
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    It is not yet stable (still in beta) as you can read from that thread and it is also expected to cause some problems due to that. Support or report should also be posted in the same thread so the respective Developer may do some fixing, if needed.
     
    Last edited: Jan 13, 2020
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The auto-installer you used is the official one, but it's still in beta as mentioned on the page. The main problem with auto-installers is that the base systems of different providers are varying a lot. I used it last week on Debian 10 Hetzner base image and it worked fine incl. command chaining except that it did not recognizes PHP 7.4 yet which caused some issues. Also, git is not required as a prerequisite, the reason that you needed it was that you did not run and download the auto-installer in the intended way, which is e.g.:

    Code:
    wget -O - https://get.ispconfig.org | sh -s -- --use-amavis
    I'll add your notes to the issue tracker.

    The official and recommended way to install ISPConfig on Ubuntu 18.04 is this one: https://www.howtoforge.com/tutorial...l-pureftpd-bind-postfix-doveot-and-ispconfig/ and for Debian 9: https://www.howtoforge.com/tutorial...-9-stretch-apache-bind-dovecot-ispconfig-3-1/
     

Share This Page