Azure / Moodle

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

Fully customizable deployment keeps failing #231

Open canc3r1 opened 3 years ago

canc3r1 commented 3 years ago

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

Duzima commented 3 years ago

Hello! I also get an error when trying to implement the custom template. I need to deploy using "NFS-HA", but it always fails. The error required that the operating system's disk size is correct. I tried to change it, but I was unsuccessful. Could anyone help? I attached some images to demonstrate the error. Captura de tela 2021-03-23 165505 Captura de tela 2021-03-23 165720 Captura de tela 2021-03-23 170724 Captura de tela 2021-03-23 170801

SorraTheOrc commented 3 years ago

This looks like a bug. It seems you have provided enough information to repro it and I'm trying that now. Will follow up soon

Duzima commented 3 years ago

This looks like a bug. It seems you have provided enough information to repro it and I'm trying that now. Will follow up soon

Thank you Sorra for responding!

lorde85 commented 3 years ago

This looks like a bug. It seems you have provided enough information to repro it and I'm trying that now. Will follow up soon

Hi @SorraTheOrc I'm having the exact same issue, did you manage to check this? Any help you can provide?

SorraTheOrc commented 3 years ago

@UmakanthOS can we have one of the team look into this please. I did try multiple times but keep getting pulled away.