Autoinstaller reproducable fails without BIND

Discussion in 'Installation/Configuration' started by Azraelo, Dec 5, 2021.

  1. Azraelo

    Azraelo New Member

    Hello,

    I try to run the installation on Debian Bullseye with the following parameters:
    --no-dns --no-quota --no-roundcube --no-mailman --lang=de --no-firewall --no-local-dns
    It fails at the step when installing apache as the dns resolution doesn't work any more.
    "resolvectl status" gives "Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found.".

    Isn't it possible any more to install/use ISPConfig without BIND?

    Regards
    Azraelo

    Log:
    Code:
    wget -O - https://get.ispconfig.org | sh -s -- --no-dns --no-quota --no-roundcube --no-mailman --lang=de --no-firewall --no-local-dns --debug
    --2021-12-05 00:02:20--  https://get.ispconfig.org/
    Resolving get.ispconfig.org (get.ispconfig.org)... 104.26.10.246, 104.26.11.246, 172.67.75.112, ...
    Connecting to get.ispconfig.org (get.ispconfig.org)|104.26.10.246|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2004 (2.0K) [application/octet-stream]
    Saving to: 'STDOUT'
    
    -                                                               100%[=======================================================================================================================================================>]   1.96K  --.-KB/s    in 0s    
    
    2021-12-05 00:02:20 (42.5 MB/s) - written to stdout [2004/2004]
    
    PHP cli missing, trying to install.
    Selecting previously unselected package perl-modules-5.32.
    (Reading database ... 20788 files and directories currently installed.)
    Preparing to unpack .../00-perl-modules-5.32_5.32.1-4+deb11u2_all.deb ...
    Unpacking perl-modules-5.32 (5.32.1-4+deb11u2) ...
    Selecting previously unselected package libgdbm6:amd64.
    Preparing to unpack .../01-libgdbm6_1.19-2_amd64.deb ...
    Unpacking libgdbm6:amd64 (1.19-2) ...
    Selecting previously unselected package libgdbm-compat4:amd64.
    Preparing to unpack .../02-libgdbm-compat4_1.19-2_amd64.deb ...
    Unpacking libgdbm-compat4:amd64 (1.19-2) ...
    Selecting previously unselected package libperl5.32:amd64.
    Preparing to unpack .../03-libperl5.32_5.32.1-4+deb11u2_amd64.deb ...
    Unpacking libperl5.32:amd64 (5.32.1-4+deb11u2) ...
    Selecting previously unselected package perl.
    Preparing to unpack .../04-perl_5.32.1-4+deb11u2_amd64.deb ...
    Unpacking perl (5.32.1-4+deb11u2) ...
    Selecting previously unselected package bzip2.
    Preparing to unpack .../05-bzip2_1.0.8-4_amd64.deb ...
    Unpacking bzip2 (1.0.8-4) ...
    Selecting previously unselected package libmagic-mgc.
    Preparing to unpack .../06-libmagic-mgc_1%3a5.39-3_amd64.deb ...
    Unpacking libmagic-mgc (1:5.39-3) ...
    Selecting previously unselected package libmagic1:amd64.
    Preparing to unpack .../07-libmagic1_1%3a5.39-3_amd64.deb ...
    Unpacking libmagic1:amd64 (1:5.39-3) ...
    Selecting previously unselected package file.
    Preparing to unpack .../08-file_1%3a5.39-3_amd64.deb ...
    Unpacking file (1:5.39-3) ...
    Selecting previously unselected package media-types.
    Preparing to unpack .../09-media-types_4.0.0_all.deb ...
    Unpacking media-types (4.0.0) ...
    Selecting previously unselected package mailcap.
    Preparing to unpack .../10-mailcap_3.69_all.deb ...
    Unpacking mailcap (3.69) ...
    Selecting previously unselected package mime-support.
    Preparing to unpack .../11-mime-support_3.66_all.deb ...
    Unpacking mime-support (3.66) ...
    Selecting previously unselected package xz-utils.
    Preparing to unpack .../12-xz-utils_5.2.5-2_amd64.deb ...
    Unpacking xz-utils (5.2.5-2) ...
    Selecting previously unselected package libicu67:amd64.
    Preparing to unpack .../13-libicu67_67.1-7_amd64.deb ...
    Unpacking libicu67:amd64 (67.1-7) ...
    Selecting previously unselected package libsodium23:amd64.
    Preparing to unpack .../14-libsodium23_1.0.18-1_amd64.deb ...
    Unpacking libsodium23:amd64 (1.0.18-1) ...
    Selecting previously unselected package libxml2:amd64.
    Preparing to unpack .../15-libxml2_2.9.10+dfsg-6.7_amd64.deb ...
    Unpacking libxml2:amd64 (2.9.10+dfsg-6.7) ...
    Selecting previously unselected package psmisc.
    Preparing to unpack .../16-psmisc_23.4-2_amd64.deb ...
    Unpacking psmisc (23.4-2) ...
    Selecting previously unselected package php-common.
    Preparing to unpack .../17-php-common_2%3a76_all.deb ...
    Unpacking php-common (2:76) ...
    Selecting previously unselected package php7.4-common.
    Preparing to unpack .../18-php7.4-common_7.4.21-1+deb11u1_amd64.deb ...
    Unpacking php7.4-common (7.4.21-1+deb11u1) ...
    Selecting previously unselected package php7.4-json.
    Preparing to unpack .../19-php7.4-json_7.4.21-1+deb11u1_amd64.deb ...
    Unpacking php7.4-json (7.4.21-1+deb11u1) ...
    Selecting previously unselected package php7.4-opcache.
    Preparing to unpack .../20-php7.4-opcache_7.4.21-1+deb11u1_amd64.deb ...
    Unpacking php7.4-opcache (7.4.21-1+deb11u1) ...
    Selecting previously unselected package php7.4-readline.
    Preparing to unpack .../21-php7.4-readline_7.4.21-1+deb11u1_amd64.deb ...
    Unpacking php7.4-readline (7.4.21-1+deb11u1) ...
    Selecting previously unselected package php7.4-cli.
    Preparing to unpack .../22-php7.4-cli_7.4.21-1+deb11u1_amd64.deb ...
    Unpacking php7.4-cli (7.4.21-1+deb11u1) ...
    Selecting previously unselected package php-cli.
    Preparing to unpack .../23-php-cli_2%3a7.4+76_all.deb ...
    Unpacking php-cli (2:7.4+76) ...
    Setting up media-types (4.0.0) ...
    Setting up libsodium23:amd64 (1.0.18-1) ...
    Setting up libicu67:amd64 (67.1-7) ...
    Setting up libmagic-mgc (1:5.39-3) ...
    Setting up psmisc (23.4-2) ...
    Setting up perl-modules-5.32 (5.32.1-4+deb11u2) ...
    Setting up libmagic1:amd64 (1:5.39-3) ...
    Setting up file (1:5.39-3) ...
    Setting up bzip2 (1.0.8-4) ...
    Setting up xz-utils (5.2.5-2) ...
    update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
    Setting up libxml2:amd64 (2.9.10+dfsg-6.7) ...
    Setting up libgdbm6:amd64 (1.19-2) ...
    Setting up php-common (2:76) ...
    Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.
    Setting up php7.4-common (7.4.21-1+deb11u1) ...
    
    Creating config file /etc/php/7.4/mods-available/calendar.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/ctype.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/exif.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/fileinfo.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/ffi.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/ftp.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/gettext.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/iconv.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/pdo.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/phar.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/posix.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/shmop.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/sockets.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/sysvmsg.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/sysvsem.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/sysvshm.ini with new version
    
    Creating config file /etc/php/7.4/mods-available/tokenizer.ini with new version
    Setting up php7.4-readline (7.4.21-1+deb11u1) ...
    
    Creating config file /etc/php/7.4/mods-available/readline.ini with new version
    Setting up libgdbm-compat4:amd64 (1.19-2) ...
    Setting up libperl5.32:amd64 (5.32.1-4+deb11u2) ...
    Setting up php7.4-opcache (7.4.21-1+deb11u1) ...
    
    Creating config file /etc/php/7.4/mods-available/opcache.ini with new version
    Setting up php7.4-json (7.4.21-1+deb11u1) ...
    
    Creating config file /etc/php/7.4/mods-available/json.ini with new version
    Setting up perl (5.32.1-4+deb11u2) ...
    Setting up mailcap (3.69) ...
    Setting up mime-support (3.66) ...
    Setting up php7.4-cli (7.4.21-1+deb11u1) ...
    update-alternatives: using /usr/bin/php7.4 to provide /usr/bin/php (php) in auto mode
    update-alternatives: using /usr/bin/phar7.4 to provide /usr/bin/phar (phar) in auto mode
    update-alternatives: using /usr/bin/phar.phar7.4 to provide /usr/bin/phar.phar (phar.phar) in auto mode
    
    Creating config file /etc/php/7.4/cli/php.ini with new version
    Setting up php-cli (2:7.4+76) ...
    update-alternatives: using /usr/bin/php.default to provide /usr/bin/php (php) in auto mode
    update-alternatives: using /usr/bin/phar.default to provide /usr/bin/phar (phar) in auto mode
    update-alternatives: using /usr/bin/phar.phar.default to provide /usr/bin/phar.phar (phar.phar) in auto mode
    Processing triggers for libc-bin (2.31-13+deb11u2) ...
    Processing triggers for php7.4-cli (7.4.21-1+deb11u1) ...
    Selecting previously unselected package libonig5:amd64.
    (Reading database ... 23151 files and directories currently installed.)
    Preparing to unpack .../libonig5_6.9.6-1.1_amd64.deb ...
    Unpacking libonig5:amd64 (6.9.6-1.1) ...
    Selecting previously unselected package php7.4-mbstring.
    Preparing to unpack .../php7.4-mbstring_7.4.21-1+deb11u1_amd64.deb ...
    Unpacking php7.4-mbstring (7.4.21-1+deb11u1) ...
    Selecting previously unselected package php-mbstring.
    Preparing to unpack .../php-mbstring_2%3a7.4+76_all.deb ...
    Unpacking php-mbstring (2:7.4+76) ...
    Setting up libonig5:amd64 (6.9.6-1.1) ...
    Setting up php7.4-mbstring (7.4.21-1+deb11u1) ...
    
    Creating config file /etc/php/7.4/mods-available/mbstring.ini with new version
    Setting up php-mbstring (2:7.4+76) ...
    Processing triggers for libc-bin (2.31-13+deb11u2) ...
    Processing triggers for php7.4-cli (7.4.21-1+deb11u1) ...
    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 Debian GNU/Linux 11 (bullseye)
    [INFO] Checking hostname.
    [INFO] Enabling contrib and non-free repositories.
    [INFO] Updating packages
    [INFO] Updated packages
    [INFO] Installing packages ssh, openssh-server, nano, vim-nox, lsb-release, apt-transport-https, ca-certificates, wget, git, gnupg, software-properties-common, ntp
    [INFO] Installed packages ssh, openssh-server, nano, vim-nox, lsb-release, apt-transport-https, ca-certificates, wget, git, gnupg, software-properties-common, ntp
    [INFO] Activating rspamd repository.
    [INFO] Activating sury php repository.
    [INFO] Activating GoAccess repository.
    [INFO] Updating packages (after enabling 3rd party repos).
    [INFO] Updated packages
    [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, rkhunter, binutils, sudo, getmail
    [INFO] Installed packages dbconfig-common, postfix, postfix-mysql, postfix-doc, mariadb-client, mariadb-server, openssl, rkhunter, binutils, sudo, getmail
    [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 software-properties-common, dnsutils, resolvconf, clamav, clamav-daemon, clamav-docs, zip, unzip, bzip2, xz-utils, lzip, rar, arj, nomarch, lzop, cabextract, apt-listchanges, libnet-ldap-perl, libauthen-sasl-perl, daemon, libio-string-perl, libio-socket-ssl-perl, libnet-ident-perl, libnet-dns-perl, libdbd-mysql-perl, spamassassin, rspamd, redis-server, postgrey, p7zip, p7zip-full, unrar-free, lrzip
    [INFO] Installed packages software-properties-common, dnsutils, resolvconf, clamav, clamav-daemon, clamav-docs, zip, unzip, bzip2, xz-utils, lzip, rar, arj, nomarch, lzop, cabextract, apt-listchanges, libnet-ldap-perl, libauthen-sasl-perl, daemon, libio-string-perl, libio-socket-ssl-perl, libnet-ident-perl, libnet-dns-perl, libdbd-mysql-perl, spamassassin, rspamd, redis-server, postgrey, p7zip, p7zip-full, unrar-free, lrzip
    [INFO] Stopping Rspamd.
    [INFO] (Re)starting Bind.
    [INFO] Disabling spamassassin daemon.
    [INFO] Installing packages apache2, apache2-doc, apache2-utils, libapache2-mod-fcgid, apache2-suexec-pristine, libapache2-mod-python, libapache2-mod-passenger
    [ERROR] Exception occured: ISPConfigOSException -> Installing packages failed. (/ispconfig.ai.php:15)
     
    Last edited: Dec 5, 2021
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Doch, es get.
    But you posted on english forum in german.
    Anyway, maybe using both --no-dns and --no-local-dns together does not work? Of if they are both used then --use-unbound should be added?
     
    till likes this.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    To install ISPConfig without BIND, use the options:

    Code:
    --use-unbound --no-dns
    That's because you tried to install a system without BIND and without having installed (or letting install) a different DNS resolver on your system.
     
  4. Azraelo

    Azraelo New Member

    Sorry, I fixed my original post.
    Thanks for the hint with "--use-unbound".
    With the suggested parameter combination it works just fine.
     
  5. Azraelo

    Azraelo New Member

    Did something change in the autoinstaller or debian?
    Currently I am installing with the following command:
    Code:
    wget -O - https://get.ispconfig.org | sh -s -- --no-dns --no-quota --no-roundcube --no-mailman --lang=de --no-firewall --no-local-dns --debug --use-unbound
    But although it worked before, now it is again installing the package resolvconf again at this step:
    Code:
    [INFO] Installing packages software-properties-common, dnsutils, resolvconf, clamav, clamav-daemon, clamav-docs, zip, unzip, bzip2, xz-utils, lzip, rar, arj, nomarch, lzop, cabextract, apt-listchanges, libnet-ldap-perl, libauthen-sasl-perl, daemon, libio-string-perl, libio-socket-ssl-perl, libnet-ident-perl, libnet-dns-perl, libdbd-mysql-perl, spamassassin, rspamd, redis-server, postgrey, p7zip, p7zip-full, unrar-free, lrzip
    And after this step dns resolving fails again.

    What am I missing?
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Why shouldn't resolvconf be installed?
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You are not installing using the way @till wrote in #3.
    What are you trying to achieve for the installed system? There's gotta be some way to resolve names on the system.
     
    Th0m likes this.
  8. Azraelo

    Azraelo New Member

    Thanks, I had lost the installation parameter list and when recreating I made the error.
    All prior installations with ISPConfig were without unbound/bind/resolvconf and thus I thought I wouldn't need unbound at all. (The autoinstaller apparently doesn't support such a setup)
    First I had to understand how this works with each other.

    Thanks for still answering me although I made this mistake.
     

Share This Page