Closed Aman123mishra closed 1 year ago
Same here (error when deploying scale set template):
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"VMExtensionProvisioningError","message":"VM has reported a failure when processing extension 'setup_moodle'. Error message: \"Enable failed: failed to execute command: command terminated with exit status=1\n[stdout]\n### Script Start Fri Jun 2 10:16:05 UTC 2023###\nInvalid fileServerType () given. Only 'gluster', 'azurefiles', 'nfs', 'nfs-ha' or 'nfs-byo' are allowed. Exiting\n\n[stderr]\nluster-vm-v74jpr0\",\"glusterVolName\":\"data\",\"nfsByoIpExportPath\":\"\",\"nfsHaLbIP\":\"172.31.2.100\",\"nfsHaExportPath\":\"/drbd/data\",\"fileServerDiskSize\":128},\"phpProfile\":{\"phpVersion\":\"7.4\"}}'\n++ jq -r .fileServerProfile.fileServerDiskSize\n/usr/bin/jq: line 1: syntax error near unexpected token
newline'\n/usr/bin/jq: line 1: <!DOCTYPE html>'\n+ export fileServerDiskSize=\n+ fileServerDiskSize=\n++ jq -r .phpProfile.phpVersion\n++ echo '{\"siteProfile\":{\"siteURL\":\"lb-v74jpr.northeurope.cloudapp.azure.com\",\"httpsTermination\":\"VMSS\",\"thumbprintSslCert\":\"None\",\"thumbprintCaCert\":\"None\"},\"moodleProfile\":{\"version\":\"MOODLE_38_STABLE\",\"dbName\":\"moodle\",\"dbUser\":\"moodle\",\"dbUserAzure\":\"moodle\",\"dbPassword\":\"9#36^4jprfjhkERCQ\",\"adminPassword\":\"XLjprfjhk,1*8\",\"storageAccountName\":\"absv74jprnaf\",\"storageAccountKey\":\"IF3oa847XHA88TrSWRy090OT07NNrUx9C8wk0hYY1N6iZi9/8yVrfNJEGFfz1WJ1mmuBzULUjEE7+AStYQPd6Q==\",\"storageAccountType\":\"Standard_LRS\",\"redisDns\":\"redis-v74jpr.redis.cache.windows.net\",\"redisKey\":\"None\",\"elasticVm1IP\":\"172.31.5.20\",\"installO365pluginsSwitch\":false,\"installObjectFsSwitch\":false,\"installGdprPluginsSwitch\":false,\"searchType\":\"none\",\"azureSearchKey\":\"None\",\"azureSearchNameHost\":\"azure-search-v74jpr.search.windows.net\",\"tikaVmIP\":\"none\",\"syslogServer\":\"controller-vm-v74jpr\",\"webServerType\":\"nginx\",\"htmlLocalCopySwitch\":true,\"isMigration\":false},\"dbServerProfile\":{\"type\":\"mysql\",\"fqdn\":\"mysqlflex-v74jpr.mysql.database.azure.com\",\"adminLogin\":\"dbadmin\",\"adminLoginAzure\":\"dbadmin\",\"adminPassword\":\"bv74jprfjhk*7PFIWB\",\"mssqlDbServiceObjectiveName\":\"S1\",\"mssqlDbEdition\":\"Standard\",\"mssqlDbSize\":\"250GB\"},\"fileServerProfile\":{\"type\":\"nfs\",\"nfsVmName\":\"controller-vm-v74jpr\",\"glusterVmName\":\"gluster-vm-v74jpr0\",\"glusterVolName\":\"data\",\"nfsByoIpExportPath\":\"\",\"nfsHaLbIP\":\"172.31.2.100\",\"nfsHaExportPath\":\"/drbd/data\",\"fileServerDiskSize\":128},\"phpProfile\":{\"phpVersion\":\"7.4\"}}'\n/usr/bin/jq: line 1: syntax error near unexpected token
newline'\n/usr/bin/jq: line 1: <!DOCTYPE html>'\n+ export phpVersion=\n+ phpVersion=\n++ echo '{\"siteProfile\":{\"siteURL\":\"lb-v74jpr.northeurope.cloudapp.azure.com\",\"httpsTermination\":\"VMSS\",\"thumbprintSslCert\":\"None\",\"thumbprintCaCert\":\"None\"},\"moodleProfile\":{\"version\":\"MOODLE_38_STABLE\",\"dbName\":\"moodle\",\"dbUser\":\"moodle\",\"dbUserAzure\":\"moodle\",\"dbPassword\":\"9#36^4jprfjhkERCQ\",\"adminPassword\":\"XLjprfjhk,1*8\",\"storageAccountName\":\"absv74jprnaf\",\"storageAccountKey\":\"IF3oa847XHA88TrSWRy090OT07NNrUx9C8wk0hYY1N6iZi9/8yVrfNJEGFfz1WJ1mmuBzULUjEE7+AStYQPd6Q==\",\"storageAccountType\":\"Standard_LRS\",\"redisDns\":\"redis-v74jpr.redis.cache.windows.net\",\"redisKey\":\"None\",\"elasticVm1IP\":\"172.31.5.20\",\"installO365pluginsSwitch\":false,\"installObjectFsSwitch\":false,\"installGdprPluginsSwitch\":false,\"searchType\":\"none\",\"azureSearchKey\":\"None\",\"azureSearchNameHost\":\"azure-search-v74jpr.search.windows.net\",\"tikaVmIP\":\"none\",\"syslogServer\":\"controller-vm-v74jpr\",\"webServerType\":\"nginx\",\"htmlLocalCopySwitch\":true,\"isMigration\":false},\"dbServerProfile\":{\"type\":\"mysql\",\"fqdn\":\"mysqlflex-v74jpr.mysql.database.azure.com\",\"adminLogin\":\"dbadmin\",\"adminLoginAzure\":\"dbadmin\",\"adminPassword\":\"bv74jprfjhk*7PFIWB\",\"mssqlDbServiceObjectiveName\":\"S1\",\"mssqlDbEdition\":\"Standard\",\"mssqlDbSize\":\"250GB\"},\"fileServerProfile\":{\"type\":\"nfs\",\"nfsVmName\":\"controller-vm-v74jpr\",\"glusterVmName\":\"gluster-vm-v74jpr0\",\"glusterVolName\":\"data\",\"nfsByoIpExportPath\":\"\",\"nfsHaLbIP\":\"172.31.2.100\",\"nfsHaExportPath\":\"/drbd/data\",\"fileServerDiskSize\":128},\"phpProfile\":{\"phpVersion\":\"7.4\"}}'\n++ jq -r .moodleProfile.isMigration\n/usr/bin/jq: line 1: syntax error near unexpected token
newline'\n/usr/bin/jq: line 1: <!DOCTYPE html>'\n+ export isMigration=\n+ isMigration=\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ check_fileServerType_param\n+ local fileServerType=\n+ '[' '' '!=' gluster -a '' '!=' azurefiles -a '' '!=' nfs -a '' '!=' nfs-ha -a '' '!=' nfs-byo ']'\n+ echo 'Invalid fileServerType () given. Only '\\''gluster'\\'', '\\''azurefiles'\\'', '\\''nfs'\\'', '\\''nfs-ha'\\'' or '\\''nfs-byo'\\'' are allowed. Exiting'\n+ exit 1\n\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot "}]}
looks like the storage account needs to be in Premium SKU, so it can have NFS enabled (currently the standard sku is in the template))
I don't think so, Bcz in my case already in premium and in the march month i was successfully deployed Large size template for the testing purpose but this time all template getting same error. As i have seen in the helper_function.sh file, check_fileServerType_parm() function where fileservertype not passed may be that is the reason.
yes, thou not Premium but i think NFS should be enabled on the storage account, and what i can see after the deployment it is not.
The PR https://github.com/Azure/Moodle/pull/285 should fix the issue.
@MarekSuwart please make sure that you edit your comment https://github.com/Azure/Moodle/issues/284#issuecomment-1573500117 as it contains sensitive data.
thanks, but all resources are already gone :)
The PR #285 should fix the issue.
@MarekSuwart please make sure that you edit your comment #284 (comment) as it contains sensitive data.
Hi Joian,
Thanks, but still facing same issue.
The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'. (Code: ResourceDeploymentFailure)
VM has reported a failure when processing extension 'setup_moodle'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1 [stdout]
Invalid fileServerType () given. Only 'gluster', 'azurefiles', 'nfs', 'nfs-ha' or 'nfs-byo' are allowed. Exiting
it works fine for me :)
@MarekSuwart
Which template you using ?
minimal
I don't know why i am getting same error.
@MarekSuwart getting this error with minimal template
VM has reported a failure when processing extension 'setup_moodle'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1 [stdout]
Invalid fileServerType () given. Only 'gluster', 'azurefiles', 'nfs', 'nfs-ha' or 'nfs-byo' are allowed.
@naioja can you please help.
@Aman123mishra I actually tested with the Minimal deployment as well and that was successful, I wondering if there's not something else. Are you doing any customizations to the deployment template ?
@naioja No Without any customization, I have tried with minimal deployment and also tried redeploy but same issue occur.
fully customizeable also works
@naioja No Without any customization, I have tried with minimal deployment and also tried redeploy but same issue occur.
Please make sure you are deploying from our master branch and if you use your own fork please update it.
Make sure that the _artifacts Location points to the right updated repo branch https://raw.githubusercontent.com/Azure/Moodle/master/ as in the screenshot below. Basically you would need to make sure the following PR is present https://github.com/Azure/Moodle/pull/285
@naioja No Without any customization, I have tried with minimal deployment and also tried redeploy but same issue occur.
Hi Aman,
Please retry the steps as naioja mentioned and let us know how the deployment goes on.
Thanks
Hi @naioja, Now Maximum template deployed successfully. There was so many conflicts because previously so many time i tried to deploy these templates in different different resource groups but now finally its done. Now i have start to migrate current running Moodle into this template. I will keep updating. Thanks for you support.🙂
@saikondapalli11 Yes, Now its working Thanks for your support. 🙂
@Aman123mishra for any other problem with this deployment please open another issue.
Hi,
I have tried to deploy all template but all template getting same error under the scaleSetTemplate.
"VM has reported a failure when processing extension 'setup_moodle'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1 [stdout]
Script Start Thu Jun 1 05:18:00 UTC 2023
Invalid fileServerType () given. Only 'gluster', 'azurefiles', 'nfs', 'nfs-ha' or 'nfs-byo' are allowed. Exiting"
Can some one help me on this.
Thanks