Azure / Moodle

Tooling and guidance on deploying Scalable Moodle Clusters on Azure.
MIT License
153 stars 165 forks source link

Creation of instances failed #294

Closed MarekSuwart closed 1 year ago

MarekSuwart commented 1 year ago

Hi, recently my moodle setup stoped to work (after some scalin-out and in). Ive noticed that inside the status of the instances in vmss , where we can see all steps done by instance, under the "setup_moodle (Microsoft.Azure.Extensions.CustomScript, 2.1.10)" step we can see something like :

Enable succeeded: [stdout] ### Script Start Mon Jun 26 12:35:59 UTC 2023### + set -ex ++ date + echo '### Function Start Mon Jun 26 12:36:00 UTC 2023###' ### Function Start Mon Jun 26 12:36:00 UTC 2023### + curl -sL https://packages.microsoft.com/keys/microsoft.asc + gpg --dearmor + tee /etc/apt/trusted.gpg.d/microsoft.gpg ++ lsb_release -cs + AZ_REPO=bionic + tee /etc/apt/sources.list.d/azure-cli.list + echo 'deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ bionic main' deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ bionic main + add-apt-repository ppa:ondrej/php -y + apt-get -qq -o=Dpkg::Use-Pty=0 update + export DEBIAN_FRONTEND=noninteractive + DEBIAN_FRONTEND=noninteractive + apt-get --yes --no-install-recommends -qq -o=Dpkg::Use-Pty=0 -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install azure-cli ca-certificates curl apt-transport-https lsb-release gnupg software-properties-common unzip rsyslog postgresql-client mysql-client git unattended-upgrades tuned varnish php7.4 php7.4-cli php7.4-curl php7.4-zip php-pear php7.4-mbstring mcrypt php7.4-dev graphviz aspell php7.4-soap php7.4-json php7.4-redis php7.4-bcmath php7.4-ldap php7.4-gd php7.4-pgsql php7.4-mysql php7.4-xmlrpc php7.4-intl php7.4-xml php7.4-bz2 E: Unable to locate package php7.4 E: Couldn't find any package by glob 'php7.4' E: Couldn't find any package by regex 'php7.4' E: Unable to locate package php7.4-cli E: Couldn't find any package by glob 'php7.4-cli' E: Couldn't find any package by regex 'php7.4-cli' E: Unable to locate package php7.4-curl E: Couldn't find any package by glob 'php7.4-curl' E: Couldn't find any package by regex 'php7.4-curl' E: Unable to locate package php7.4-zip E: Couldn't find any package by glob 'php7.4-zip' E: Couldn't find any package by regex 'php7.4-zip' E: Unable to locate package php7.4-mbstring E: Couldn't find any package by glob 'php7.4-mbstring' E: Couldn't find any package by regex 'php7.4-mbstring' E: Unable to locate package php7.4-dev E: Couldn't find any package by glob 'php7.4-dev' E: Couldn't find any package by regex 'php7.4-dev' E: Unable to locate package php7.4-soap E: Couldn't find any package by glob 'php7.4-soap' E: Couldn't find any package by regex 'php7.4-soap' E: Unable to locate package php7.4-json E: Couldn't find any package by glob 'php7.4-json' E: Couldn't find any package by regex 'php7.4-json' E: Unable to locate package php7.4-redis E: Couldn't find any package by glob 'php7.4-redis' E: Couldn't find any package by regex 'php7.4-redis' E: Unable to locate package php7.4-bcmath E: Couldn't find any package by glob 'php7.4-bcmath' E: Couldn't find any package by regex 'php7.4-bcmath' E: Unable to locate package php7.4-ldap E: Couldn't find any package by glob 'php7.4-ldap' E: Couldn't find any package by regex 'php7.4-ldap' E: Unable to locate package php7.4-gd E: Couldn't find any package by glob 'php7.4-gd' E: Couldn't find any package by regex 'php7.4-gd' E: Unable to locate package php7.4-pgsql E: Couldn't find any package by glob 'php7.4-pgsql' E: Couldn't find any package by regex 'php7.4-pgsql' E: Unable to locate package php7.4-mysql E: Couldn't find any package by glob 'php7.4-mysql' E: Couldn't find any package by regex 'php7.4-mysql' E: Unable to locate package php7.4-xmlrpc E: Couldn't find any package by glob 'php7.4-xmlrpc' E: Couldn't find any package by regex 'php7.4-xmlrpc' E: Unable to locate package php7.4-intl E: Couldn't find any package by glob 'php7.4-intl' E: Couldn't find any package by regex 'php7.4-intl' E: Unable to locate package php7.4-xml E: Couldn't find any package by glob 'php7.4-xml' E: Couldn't find any package by regex 'php7.4-xml' E: Unable to locate package php7.4-bz2 E: Couldn't find any package by glob 'php7.4-bz2' E: Couldn't find any package by regex 'php7.4-bz2' [stderr]

Looks like no PHP 7.4 on that repo?

Also did a small test (new installation) with a minimal setup, and also this cant start because of the same error

MarekSuwart commented 1 year ago

`Support for Ubuntu 18.04 was removed from Ondřej Surý's PPA on June 15, 2023 as that version of Ubuntu is no longer supported. As per the description on the PPA landing page:

... Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided. `

This template is now useless as it uses outdated Ubuntu and PHP that no one wants to support :/

naioja commented 1 year ago

Hi @MarekSuwart thank you for reporting this. While we have plans to revamp the repository for now I've switched the default OS to Ubuntu 20.04. Long term target is to use Ubuntu 22.04, php 8.x and Moodle 4 LTS.