Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your deployment failed #284

Closed
Aman123mishra opened this issue Jun 1, 2023 · 18 comments · Fixed by #285
Closed

Your deployment failed #284

Aman123mishra opened this issue Jun 1, 2023 · 18 comments · Fixed by #285
Assignees

Comments

@Aman123mishra
Copy link

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

@MarekSuwart
Copy link

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 "}]}

@MarekSuwart
Copy link

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))

@Aman123mishra
Copy link
Author

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.
3214b6b1-6870-446c-8a66-722ebd044508

@MarekSuwart
Copy link

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.

@naioja naioja self-assigned this Jun 5, 2023
@naioja
Copy link
Collaborator

naioja commented Jun 7, 2023

The PR #285 should fix the issue.

@MarekSuwart please make sure that you edit your comment #284 (comment) as it contains sensitive data.

@MarekSuwart
Copy link

thanks, but all resources are already gone :)

@Aman123mishra
Copy link
Author

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]

Script Start Thu Jun 8 07:01:56 UTC 2023###

Invalid fileServerType () given. Only 'gluster', 'azurefiles', 'nfs', 'nfs-ha' or 'nfs-byo' are allowed. Exiting

@MarekSuwart
Copy link

it works fine for me :)

@Aman123mishra
Copy link
Author

@MarekSuwart
Which template you using ?

@MarekSuwart
Copy link

minimal

@Aman123mishra
Copy link
Author

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]

Script Start Thu Jun 8 10:20:15 UTC 2023###

Invalid fileServerType () given. Only 'gluster', 'azurefiles', 'nfs', 'nfs-ha' or 'nfs-byo' are allowed.

@naioja can you please help.

@naioja
Copy link
Collaborator

naioja commented Jun 8, 2023

@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 ?

@Aman123mishra
Copy link
Author

Aman123mishra commented Jun 8, 2023

@naioja No Without any customization, I have tried with minimal deployment and also tried redeploy but same issue occur.

@MarekSuwart
Copy link

fully customizeable also works

@naioja
Copy link
Collaborator

naioja commented Jun 8, 2023

@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 #285

image

@saikondapalli11
Copy link

@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

@Aman123mishra
Copy link
Author

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. 🙂

@naioja
Copy link
Collaborator

naioja commented Jun 9, 2023

@Aman123mishra for any other problem with this deployment please open another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants