Azure / Azure/Moodle

Fully customizable deployment keeps failing

Open
#231 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
184
Forks
186
PR merge metrics
No merged PRs in 30d

Description

Hi Folks

While i am able to deploy the maximum and large templates successfully, when trying the customized option, we keep failing at the controller VM with the following error message:

`\\\\\\\"Enable failed: failed to execute command: command terminated with exit status=1\\\\n[stdout]\\\\n\\\\n[stderr]\\\\nmysqladminpass='tnvsto4apw4*7PFIWB'\\\\n+ sudo apt-get -y update\\\\n+ sudo apt-get -y install unattended-upgrades fail2ban\\\\ndebconf: unable to initialize frontend: Dialog\\\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\\\ndebconf: falling back to frontend: Readline\\\\ndebconf: unable to initialize frontend: Readline\\\\ndebconf: (This frontend requires a controlling tty.)\\\\ndebconf: falling back to frontend: Teletype\\\\ndpkg-preconfigure: unable to re-open stdin: \\\\n+ config_fail2ban\\\\n+ cat\\\\n+ mkdir -p /moodle\\\\n+ export DEBIAN_FRONTEND=noninteractive\\\\n+ DEBIAN_FRONTEND=noninteractive\\\\n+ '[' gluster = gluster ']'\\\\n+ sudo add-apt-repository ppa:gluster/glusterfs-3.10 -y\\\\n+ sudo apt-get -y update\\\\n+ sudo apt-get -y --force-yes install rsyslog git\\\\nW: --force-yes is deprecated, use one of the options starting with --allow instead.\\\\n+ '[' gluster = gluster ']'\\\\n+ sudo apt-get -y --force-yes install glusterfs-client\\\\ndebconf: unable to initialize frontend: Dialog\\\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\\\ndebconf: falling back to frontend: Readline\\\\ndebconf: unable to initialize frontend: Readline\\\\ndebconf: (This frontend requires a controlling tty.)\\\\ndebconf: falling back to frontend: Teletype\\\\ndpkg-preconfigure: unable to re-open stdin: \\\\nW: --force-yes is deprecated, use one of the options starting with --allow instead.\\\\n+ '[' mysql = mysql ']'\\\\n+ sudo apt-get -y --force-yes install mysql-client\\\\ndebconf: unable to initialize frontend: Dialog\\\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\\\ndebconf: falling back to frontend: Readline\\\\ndebconf: unable to initialize frontend: Readline\\\\ndebconf: (This frontend requires a controlling tty.)\\\\ndebconf: falling back to frontend: Teletype\\\\ndpkg-preconfigure: unable to re-open stdin: \\\\nW: --force-yes is deprecated, use one of the options starting with --allow instead.\\\\n+ '[' true = true -o gluster = azurefiles ']'\\\\n+ sudo tee /etc/apt/sources.list.d/azure-cli.list\\\\n+ echo 'deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main'\\\\n+ sudo apt-key add -\\\\n+ curl -L https://packages.microsoft.com/keys/microsoft.asc\\\\n % Total % Received % Xferd Average Speed Time Time Time Current\\\\n Dload Upload Total Spent Left Speed\\\\n\\\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\\\r100 983 100 983 0 0 22860 0 --:--:-- --:--:-- --:--:-- 22860\\\\nWarning: apt-key output should not be parsed (stdout is not a terminal)\\\\n+ sudo apt-get -y install apt-transport-https\\\\ndebconf: unable to initialize frontend: Dialog\\\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\\\ndebconf: falling back to frontend: Readline\\\\ndebconf: unable to initialize frontend: Readline\\\\ndebconf: (This frontend requires a controlling tty.)\\\\ndebconf: falling back to frontend: Teletype\\\\ndpkg-preconfigure: unable to re-open stdin: \\\\n+ sudo apt-get -y update\\\\n+ sudo apt-get -y install azure-cli\\\\ndebconf: unable to initialize frontend: Dialog\\\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\\\ndebconf: falling back to frontend: Readline\\\\ndebconf: unable to initialize frontend: Readline\\\\ndebconf: (This frontend requires a controlling tty.)\\\\ndebconf: falling back to frontend: Teletype\\\\ndpkg-preconfigure: unable to re-open stdin: \\\\n+ '[' Premium_LRS '!=' Premium_LRS ']'\\\\n+ '[' gluster = gluster ']'\\\\n+ echo -e '\\\\\\\\n\\\\\\\\rInstalling GlusterFS on gluster-vm-nvsto40:/data' '/moodle\\\\\\\\n\\\\\\\\r'\\\\n+ setup_and_mount_gluster_moodle_share gluster-vm-nvsto40 data\\\\n+ local glusterNode=gluster-vm-nvsto40\\\\n+ local glusterVolume=data\\\\n+ grep -q '/moodle.*glusterfs' /etc/fstab\\\\n+ echo -e 'gluster-vm-nvsto40:/data /moodle glusterfs defaults,_netdev,log-level=WARNING,log-file=/var/log/gluster.log 0 0'\\\\n+ mount /moodle\\\\nMount failed. Please check the log file for more details.\\\\n\\\\\\\"\\\\r\\\\n\\\\r\\\\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot \\\"\\r\\n }\\r\\n ]\\r\\n }\\r\\n}\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"`

Please let me know if this is common and if there's something wrong that we are doing. The options we are choosing are quite standard and it should deploy without any problems. MySQL DB, GlusterFS, WAF as the gateway with no HTTPS termination at the moment.

Let me know if any other details may be required. Region of choice is Southeast Asia.

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.