AutoInstaller Error with Nginx

Discussion in 'Installation/Configuration' started by D-Spayre, May 13, 2024.

  1. D-Spayre

    D-Spayre New Member

    Hi,
    Hoping someone can help me, I've been trying to use the AutoInstaller with Nginx.
    sudo -s
    wget -O - https://get.ispconfig.org | sh -s -- --use-nginx --no-dns --no-mail --use-ftp-ports=40110-40210 --unattended-upgrades

    But I keep getting this error.
    [INFO] Installing packages nginx-full, fcgiwrap
    [ERROR] Exception occurred: ISPConfigOSException -> Installing packages failed. (/ispconfig.ai.php:15)

    If I use the Apache AutoInstaller no issues at all, just when installing Nginx.

    Ubuntu 22.04.4 LTS
    Fresh Install on a HPE ProLiant DL380 Gen9 machine using VMware ESXi.

    Not sure what I'm missing.

    Thank you,
    D
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    First, check that the harddisk is not full and also double-check that you use Ubuntu 22.04 and not 24.04. If that's ok, please run the installation with the additional --debug option to see which exact command fails. You can then run that command that failed manually to get a more detailed error message on the shell from apt.
     
  3. D-Spayre

    D-Spayre New Member

    Thanks for the reply.
    Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-106-generic x86_64)
    95GB of free space

    Keep in mind that it works fine with:
    wget -O - https://get.ispconfig.org | sh -s -- --use-ftp-ports=40110-40210 --unattended-upgrades

    I just get the error with this:
    wget -O - https://get.ispconfig.org | sh -s -- --use-nginx --use-ftp-ports=40110-40210 --unattended-upgrades

    Attached is the syslog file

    Thank you,
    D
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The syslog does not help here. Please see my instructions from post #2 on how to proceed to narrow down the error.
     
  5. D-Spayre

    D-Spayre New Member

    Sorry where do I find the debug file? I thought it was in the syslog. Is it the term.log that's in the Log\APT folder?
    Thank you,
    D
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Ah sorry, yes. I missed mentioning the log location. The log file is /tmp/ispconfig-ai/var/log/ispconfig.log
     
  7. D-Spayre

    D-Spayre New Member

    Thank you

    13.05.2024-16:33:40 - /lib/class.ISPConfig.inc.php:117: [DEBUG] Trying to autoload class file "/tmp/ispconfig-ai/lib/os/class.ISPConfigBaseOS.inc.php" for class "ISPConfigBaseOS"
    13.05.2024-16:33:40 - /lib/class.ISPConfig.inc.php:117: [DEBUG] Trying to autoload class file "/tmp/ispconfig-ai/lib/class.ISPConfigFunctions.inc.php" for class "ISPConfigFunctions"
    13.05.2024-16:33:40 - /lib/class.ISPConfig.inc.php:441: [INFO] Starting perfect server setup for Ubuntu 22.04.4 LTS
    13.05.2024-16:33:40 - /lib/class.ISPConfig.inc.php:117: [DEBUG] Trying to autoload class file "/tmp/ispconfig-ai/lib/os/class.ISPConfigUbuntu2204OS.inc.php" for class "ISPConfigUbuntu2204OS"
    13.05.2024-16:33:40 - /lib/class.ISPConfig.inc.php:117: [DEBUG] Trying to autoload class file "/tmp/ispconfig-ai/lib/os/class.ISPConfigUbuntu2004OS.inc.php" for class "ISPConfigUbuntu2004OS"
    13.05.2024-16:33:40 - /lib/class.ISPConfig.inc.php:117: [DEBUG] Trying to autoload class file "/tmp/ispconfig-ai/lib/os/class.ISPConfigUbuntuOS.inc.php" for class "ISPConfigUbuntuOS"
    13.05.2024-16:33:40 - /lib/class.ISPConfig.inc.php:117: [DEBUG] Trying to autoload class file "/tmp/ispconfig-ai/lib/os/class.ISPConfigDebianOS.inc.php" for class "ISPConfigDebianOS"
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    That's not an error. Check the file for errors or attach it as .txt file to the thread. Plus post the complete screen output that you got from installation process.
     
  9. D-Spayre

    D-Spayre New Member

    That's all that's in the ispconfig.log file, I attached the setup-20240513163340.log file and a screenshot of the error. If that's not what you need I can do another fresh install and run the --debug again.

    Thank you
     

    Attached Files:

  10. pyte

    pyte Well-Known Member HowtoForge Supporter

    Can you check what happens when you install the packages "nginx-full" and "fcgiwrap" manually? I assume that there is an error of some sort while trying to install these packages via apt
     
  11. D-Spayre

    D-Spayre New Member

    Hi,

    Please see attached. I ran these commands on a fresh install.

    Thank you,
    D
     

    Attached Files:

  12. pyte

    pyte Well-Known Member HowtoForge Supporter

    Well thats the reason why the installer is failing then. Is this a clean system you are installing on?

    This indicates that nginx is unable to bind on ipv6, which it trys to with a default upstream config. Did you disable IPv6 on the system?
     
    till and D-Spayre like this.
  13. D-Spayre

    D-Spayre New Member

    Sorry to waste your time, I figured out the issue. Even though I have a clean install its a template I use for my Ubuntu servers. I have IPv6 disabled. Looks like if you don't have IPv6 Enabled you won't be able to install Nginx. Now IPv6 was Disable using GRUB. Not sure if that matters. But after Re-Enabling IPv6 everything installed perfectly.

    Thanks again
    D
     
  14. D-Spayre

    D-Spayre New Member

    Sorry just noticed your reply. You are correct. I had IPv6 disabled on my template. :(

    Thank you for your help...
     
    pyte likes this.
  15. pyte

    pyte Well-Known Member HowtoForge Supporter

    The packages installed correctly. However the post installation script enableds the systemd unit and trys to start the service and if this post installation script fails and returns a non-zero exit code, apt "fails" too, even tho the package is installed. I guess the correct behavoir would be that the post install script for nginx checks if ipv6 is enabled and only then uses the default config with ipv6.
    However as apt "fails" with a non zero exit code, the ispconfig installer cannot differentiate what that error means so it fails.

    Glad it was just an easy to fix issue :)
     
    till and ahrasis like this.

Share This Page