Install Script on ARM64 Ubuntu ERROR. Can I re-run the ISPconfig install script?

Discussion in 'ISPConfig 3 Priority Support' started by peterpetr, Dec 11, 2024.

  1. peterpetr

    peterpetr Member HowtoForge Supporter

    Hello ISPconfig Support,
    I'm pleased that ISPconfig is now supporting ARM processors.
    Using your https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/ tutorial and Auto-Install Script, I'm at the step where I run your Auto-Install script.
    Below is the terminal output where I have an error:
    [INFO] Installed packages quota, quotatool
    [INFO] Adding quota to fstab.
    [ERROR] Exception occurred: ISPConfigOSException -> Command mount -o remount / 2>&1 && quotaoff -avug 2>&1 && quotacheck -avugm 2>&1 && quotaon -avug 2>&1 failed. (/ispconfig.ai.php:15)
    root@u22o:/home/ubuntu#​
    Question #1:
    After I fix the /etc/fstab setup, can I just RE-RUN your Auto-Install Script for ISPconfig?
    Or, should I start with a new, clean Ubuntu 22.04 VM instance? Hoping that I can just re-run your Auto-Install Script?


    Question #2:
    I am not a Linux pro so asked ChatGPT to help me. I got the following response (see below). Is that a valid way to fix the error preventing the ISPconfig Auto-Installer Script from running?


    Thank you for your assistance with these setup issues.
    ~Peter


    When installing ISPConfig on Ubuntu 22.04 using the automated script, the encountered error points to an issue with setting up disk quotas during the installation process. Here’s a systematic guide on diagnosing the problem and resolving it:
    Diagnosis:
    The error message indicates that the command sequence involving mounting and checking quotas failed. This is typically due to improper configuration or missing necessary options in the /etc/fstab file where disk quotas are configured.
    Steps to Fix the Problem:
    1. Check Disk Quota Support: Ensure that your filesystem supports quotas. Most modern filesystems do, but it’s worth verifying that quota support is compiled in or available.

    2. Review the fstab Configuration:
      • Open the /etc/fstab file in a text editor with root privileges:

        sudo nano /etc/fstab

      • Locate the line corresponding to your root filesystem (/). It might look something like this:

        UUID=[Your UUID] / ext4 defaults 0 1

      • Modify this line to enable quota support by adding usrquota and grpquota options. It should look something like:

        UUID=[Your UUID] / ext4 defaults,usrquota,grpquota 0 1

      • Save changes and exit the text editor (Ctrl + O, press Enter, then Ctrl + X).
    3. Remount the Filesystem with Quotas:
      • Remount the filesystem to apply the changes:
        sudo mount -o remount /
    4. Initialize and Enable Quotas:
      • Turn off quotas if they are partially enabled:

        sudo quotaoff -avug

      • Check quotas on the file system:

        sudo quotacheck -avugm

      • Turn quotas back on:

        sudo quotaon -avug
    5. Verify Quota Installation:
      • Ensure no errors are present and quotas are active:
        sudo quota -v
    Proceeding Beyond the Error:
    1. Re-run the ISPConfig Installation Script:
      • Since the script execution stopped due to the error, you may manually invoke the step following the failed quota configuration. The automated script might have a retry mechanism or options to continue from the last successful point. Refer to ISPConfig’s documentation for any such options.
      • If the script has no such built-in continuation feature, it may be necessary to re-run the script from scratch, or manually proceed with installation steps, ensuring configurations done earlier are not repeated unnecessarily.
    2. Check Installation Log Files:
      • Review any available log files to determine other components’ installation status, typically found in /var/log/ispconfig_install.log.
    3. Manual Verification:
      • Log into the ISPConfig interface (if partially installed) to verify any working components and confirm the application’s configuration.
    4. Seek Community Assistance:
      • If issues persist, consider seeking help from forums such as the ISPConfig Forum or relevant Ubuntu/Linux support communities.
    By carefully following these steps, you should be able to address the quota installation error and continue with ISPConfig’s setup smoothly on Ubuntu 22.04.
     
    Last edited: Dec 11, 2024
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Rerunning it should be ok as the iSPConfig setup part has not been run yet.

    ChatGPT basically suggested what the auto-installer did already, but it did not work on your system. So, its likely that the steps suggested by ChatGPT will not work. The more likely reason for your issue is that your system either uses a different filesystem or that your kernel has no quota support. Please post the content of the /etc/fstab file. Also run the commands the auto-installer ran and post the result:

    Code:
    mount -o remount /
    quotaoff -avug
    quotacheck -avugm
    quotaon -avug
    
    Stop executing the commands when one of them returns an error.
     
  3. peterpetr

    peterpetr Member HowtoForge Supporter

    Hello Till, Thank you for your help with this. I'm posting the results for your request:
    Please post the content of the /etc/fstab file.
    Also run the commands the auto-installer ran and post the result:
    mount -o remount /
    quotaoff -avug
    quotacheck -avugm
    quotaon -avug
    Contents of /etc/fstab file:
    LABEL=cloudimg-rootfs / ext4 discard,errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 1
    LABEL=UEFI /boot/efi vfat umask=0077 0 1
    # CLOUD_IMG: This file was created/modified by the Cloud Image build process
    ######################################
    ## ORACLE CLOUD INFRASTRUCTURE CUSTOMERS
    ##
    ## If you are adding an iSCSI remote block volume to this file you MUST
    ## include the '_netdev' mount option or your instance will become
    ## unavailable after the next reboot.
    ## SCSI device names are not stable across reboots; please use the device UUID
    ## instead of /dev path.
    ##
    ## Example:
    ## UUID="94c5aade-8bb1-4d55-ad0c-388bb8aa716a" /data1 ext4 defaults,noatime,_netdev 0 2
    ##
    ## More information:
    ## https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Tasks/connectingtoavolume.htm
    ##
    Running Commands you requested:
    root@u22o:/home/ubuntu# mount -o remount /
    root@u22o:/home/ubuntu# quotaoff -avug
    quotaoff: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
    /dev/sda1 [/]: group quotas turned off
    /dev/sda1 [/]: user quotas turned off
    root@u22o:/home/ubuntu#
    root@u22o:/home/ubuntu# quotacheck -avugm
    quotacheck: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
    quotacheck: Scanning /dev/sda1 [/] done
    quotacheck: Checked 16232 directories and 133944 files
    root@u22o:/home/ubuntu#
    root@u22o:/home/ubuntu# quotaon -avug
    quotaon: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
    quotaon: using //quota.group on /dev/sda1 [/]: No such process
    quotaon: Quota format not supported in kernel.
    quotaon: using //quota.user on /dev/sda1 [/]: No such process
    quotaon: Quota format not supported in kernel.
    root@u22o:/home/ubuntu#
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The Linux Kernel on your system has no quota support. You must load the quota module. Try to run this as root user:

    modprobe quota_v2

    if this works, make it persistent with this command:

    echo "quota_v2" | tee /etc/modprobe.d/quota.conf
     
  5. peterpetr

    peterpetr Member HowtoForge Supporter

    Hi Till, thanks for your help again.
    Here's the result for running your first listed command:
    root@u22o:/home/ubuntu# modprobe quota_v2
    modprobe: FATAL: Module quota_v2 not found in directory /lib/modules/6.8.0-1017-oracle
    root@u22o:/home/ubuntu#​
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, then you better ask your hoster how to get Linux filesystem quota support into the Linux Kernel of your cloud server. Or you skip using quota by adding --no-quota command-line option to the auto-installer command. This means you can not limit the size of websites in ISPConfig then.
     
  7. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    you may need to install linux-image-extra-virtual or some variant of it, to add quota support.. on aws it's linux-modules-extra-aws.

    if quota support isn't included by default then it's because your vps provider has modified the base install.. you should check with them what package you need to install to add the quota support back into the kernel.
     
    till likes this.
  8. peterpetr

    peterpetr Member HowtoForge Supporter

    Hello Till, I managed to add the quota support (with the help of ChatGPT).

    I re-ran the ISPconfig auto-installer as follows:
    root@u22o:/home/ubuntu# wget -O - https://get.ispconfig.org | sh -s -- --use-nginx --use-ftp-ports=40110-40210

    It proceeded beyond where it stopped last time.
    Here's where it is now getting an exception:
    [INFO] Setting default system PHP version.
    update-alternatives: error: alternative /run/php/php8.1-fpm.sock for php-fpm.sock not registered; not setting
    [ERROR] Exception occurred: ISPConfigOSException -> Command update-alternatives --set php-fpm.sock /run/php/php8.1-fpm.sock failed. (/ispconfig.ai.php:15)


    #1. I am hoping you can recommend a fix or work-around for installing ISPconfig on this ARM based Ubuntu v22.04 VM?
    #2. Question: Will it be possible to re-run the ISPconfig auto-installer again?
    Thank you.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Run the failed command:

    update-alternatives --set php-fpm.sock /run/php/php8.1-fpm.sock

    and post the error you get.
     
  10. peterpetr

    peterpetr Member HowtoForge Supporter

    Here's what I ran and the result:
    root@u22o:/home/ubuntu# update-alternatives --set php-fpm.sock /run/php/php8.1-fpm.sock
    update-alternatives: error: alternative /run/php/php8.1-fpm.sock for php-fpm.sock not registered; not setting

    Thanks again.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    It's strange that your OS does not have it. You can try to register the socket manually:

    update-alternatives --install /run/php/php-fpm.sock php-fpm.sock /run/php/php8.1-fpm.sock 1

    and then rerun the installer.
     
  12. peterpetr

    peterpetr Member HowtoForge Supporter

    Hello Till,
    Many thanks! ISPconfig is now installed.
    P.
     
    till likes this.

Share This Page