ISPConfig 3 - Debian 12 - fresh autoinstall - resolvconf issue

Discussion in 'Installation/Configuration' started by remifr, Sep 13, 2024.

  1. remifr

    remifr New Member

    Hello,
    I'm trying to install ISPconfig on a fresh new VPS on Debian 12 but I get this error :
    Code:
    [INFO] Stopping Rspamd.
    [INFO] (Re)starting Bind.
    [INFO] Disabling spamassassin daemon.
    [ERROR] Exception occurred: ISPConfigOSException -> Command resolvconf -u 2>&1 failed. (/ispconfig.ai.php:15)
    I tried Apache autoinstall and Nginx, same error.

    I also tried to do : php -q install.php from the .tar archive and I get some other errors.
    Code:
    PHP Warning:  Undefined array key "installed" in /home/debian/tmp/ispconfig3_install/install/install.php on line 180
    crontab not found; please install a compatible cron daemon before ISPConfig
    
    What should I do ?

    Cheers, Remi
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    What happens when you run the command on the shell?
    Code:
    sudo resolvconf -u
     
  3. remifr

    remifr New Member

    Code:
    root@vps:/home/debian# resolvconf -u
    bash: resolvconf: command not found
    
     
  4. remifr

    remifr New Member

    I feel like it's the install that's removing it :
    Code:
    [INFO] Installing packages software-properties-common, update-inetd, dnsutils, resolvconf, clamav, clamav-daemon, zip, unzip, bzip2, xz-utils, lzip, borgbackup, 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, bind9, rspamd, redis-server, postgrey, p7zip, p7zip-full, unrar-free, lrzip
    [INFO] Installed packages software-properties-common, update-inetd, dnsutils, resolvconf, clamav, clamav-daemon, zip, unzip, bzip2, xz-utils, lzip, borgbackup, 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, bind9, rspamd, redis-server, postgrey, p7zip, p7zip-full, unrar-free, lrzip
    [INFO] Stopping Rspamd.
    [INFO] (Re)starting Bind.
    [INFO] Disabling spamassassin daemon.
    [ERROR] Exception occurred: ISPConfigOSException -> Command resolvconf -u 2>&1 failed. (/ispconfig.ai.php:15)
    
     
  5. pyte

    pyte Well-Known Member HowtoForge Supporter

    It should get installed on the system. Are you sure this is a clean Debian12 install?
    Can you provide the output of "apt policy resolvconf"
    and "whereis resolvconf" and " /usr/sbin/resolvconf"
     
  6. remifr

    remifr New Member

    Yes I already reinstalled my VPS 2 times. After the ISPConfig autoinstall, resolvconf disappears or stops working.

    Code:
    resolvconf:
      Installed: 1.91+nmu1
      Candidate: 1.91+nmu1
      Version table:
     *** 1.91+nmu1 500
            500 mirror+file:/etc/apt/mirrors/debian.list bookworm/main amd64 Packages
            100 /var/lib/dpkg/status
    
    /home/debian# whereis resolvconf
    resolvconf: /usr/sbin/resolvconf /usr/lib/resolvconf /etc/resolvconf /usr/share/resolvconf /usr/share/man/man8/resolvconf.8.gz
    
    /home/debian# /usr/sbin/resolvconf
    resolvconf: Error: Command not recognized
    Usage: resolvconf COMMAND
    
    Manage nameserver information.
    
    
     
    Last edited: Sep 13, 2024
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The installation with the auto-installer works fine here. Which exact command-line options do you use for the auto install script?

    This can't work on a system that is not installed with the correct services as the auto-installer does it, so such errors are expected.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. remifr

    remifr New Member

    Code:
    wget -O - https://get.ispconfig.org | sh -s -- --use-ftp-ports=40110-40210 --unattended-upgrades
    
    From https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/
     
  10. remifr

    remifr New Member

    Last edited: Sep 13, 2024
  11. remifr

    remifr New Member

    For solution b) apt install openresolv + reboot (my personal favorit)

    After the reboot and autoinstall, it crashes here:

    Code:
    [INFO] Installing packages software-properties-common, update-inetd, dnsutils, resolvconf, clamav, clamav-daemon, zip, unzip, bzip2, xz-utils, lzip, borgbackup, 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, bind9, rspamd, redis-server, postgrey, p7zip, p7zip-full, unrar-free, lrzip
    [ERROR] Exception occurred: ISPConfigOSException -> Installing packages failed. (/ispconfig.ai.php:15)
    
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, so apt fails here to install these packages, try:

    Code:
    apt install software-properties-common update-inetd dnsutils resolvconf clamav clamav-daemon zip unzip bzip2 xz-utils lzip borgbackup 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 bind9 rspamd redis-server postgrey p7zip p7zip-full unrar-free lrzip
    There must something wrong or configured very differently from other systems on your server as the auto-installer gets used to install several hundred servers successfully every day. And your issue is also not reproducible here on a standard debian 12 server. If you can not get your base system to work with the auto-installer, then you can use the manual install guide instead:

    https://www.howtoforge.com/perfect-server-debian-12-buster-apache-bind-dovecot-ispconfig-3-2/
     
  13. remifr

    remifr New Member

    So I have just reset the VPS to start fresh again. Did apt update && apt upgrade then your command line :
    Code:
    apt install software-properties-common update-inetd dnsutils resolvconf clamav clamav-daemon zip unzip bzip2 xz-utils lzip borgbackup 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 bind9 rspamd redis-server postgrey p7zip p7zip-full unrar-free lrzip
    
    Then launched auto install :
    Code:
    /home/debian# wget -O - https://get.ispconfig.org | sh -s -- --use-ftp-ports=40110-40210 --use-php=5.6,7.0,7.1,7.2,7.3,7.4,8.0 --unattended-upgrades
    --2024-09-13 14:56:02--  https://get.ispconfig.org/
    Resolving get.ispconfig.org (get.ispconfig.org)... failed: Temporary failure in name resolution.
    wget: unable to resolve host address ‘get.ispconfig.org’
    
    Edit : just rebooted and the resolution works again... -_-'
    And same error...
    Code:
    [INFO] (Re)starting Bind.
    [INFO] Disabling spamassassin daemon.
    [ERROR] Exception occurred: ISPConfigOSException -> Command resolvconf -u 2>&1 failed. (/ispconfig.ai.php:15)
    
     
    Last edited: Sep 13, 2024
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    You should have run the apt command after you received that other apt failure. But as I mentioned, there must be something special with your Debian setup that makes it incompatible with the auto-installer, which is not reproducible on a clean setup here, so you better use the manual install guide then.
     
  15. remifr

    remifr New Member

    Ok, that's strange because this is the auto installed Debian 12 from OVH. When I reset my VPS, I only pick "Debian 12" in the distribs' list.
    I wanted to avoid manual install but no choice here.
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    OVH is known to have some issues, they modified the standard Debian system. So, their clean Debian 12 is not as clean or standard as you might think.
     
    remifr likes this.
  17. remifr

    remifr New Member

    Damn OVH, lost so much time :rolleyes: I finally managed to finish the manual install thanks.
    Now how do I add older PHP versions ? Do you have a tutorial for PHP 7.0 ?
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

  19. remifr

    remifr New Member

  20. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    This post triggered me to set up a test system at OVH. I just did and I have not had any problems installing ISPConfig with the autoinstaller on OVH's Debian 12 image. Perhaps there was a problem they fixed.
     
    till and remifr like this.

Share This Page