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

Deploy issue #261

Open
viperfx opened this issue Apr 19, 2020 · 16 comments
Open

Deploy issue #261

viperfx opened this issue Apr 19, 2020 · 16 comments

Comments

@viperfx
Copy link

viperfx commented Apr 19, 2020

I got the following error when deploying the CMS

The template deployment '1b12de26-3045-40f1-b7e3-142fd7fdf8cd' is not valid according to the validation procedure. The tracking id is '684a1893-d5e9-4622-8082-2fa6f7b1ad78'. See inner errors for details.

@gracez72
Copy link

Hi, thanks for raising the issue! Do you have error details for the template deployment and was this deployed using the Deploy to Azure button in the dev branch?

@viperfx
Copy link
Author

viperfx commented Apr 20, 2020 via email

@gracez72
Copy link

If you click deploy after using the button, there should be a link next to the "Deployment Failed" message that says "View Error". If you click that link, there should be a popup that gives the error details. If that doesn't provide any additional details, you can also go to the Azure portal and to the resource group that you are attempting to deploy to. There should be header called "Deployments" under "Settings" on the left side navigation bar, and if you click it, it will provide a summary of which resources failed to create and a link to "Operation details", which provide detailed summaries of why the particular resource failed.

@viperfx
Copy link
Author

viperfx commented Apr 20, 2020

Just tried that, and all the past event are success. Will try deploy again and see what happens.

@viperfx
Copy link
Author

viperfx commented Apr 20, 2020

One doubt I had - when I create a App Service Plan - should the OS be linux or windows?

@viperfx
Copy link
Author

viperfx commented Apr 20, 2020

Ive tried it again, and no further details were given. When I click View Error, a similar message to the one at the top is provided.

Ive checked deployments and there are no entries for the deployment showing up in the resource group I selected.

@gracez72
Copy link

The OS for the App Service Plan should be linux! Another thing you could try if you use Powershell and have the tracking id from the message, is to run Get-AzLog -CorrelationId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -DetailedOutput, this should provide the detailed error messages. I will try to deploy using the button as well and see if I run into similar issues.

@viperfx
Copy link
Author

viperfx commented Apr 20, 2020

Okay. Would you like me to put the return here? or shall I send it to your team via email? Do you have a dev team alias I can reach out on?

@viperfx
Copy link
Author

viperfx commented Apr 20, 2020

It looks like the main error is "The specified app service plan was not found."

Can you confirm the instructions for how to set the server_farm_id

PS - The input labels are very confusing and the documentation on some fields and where to get them are missing.

@viperfx
Copy link
Author

viperfx commented Apr 20, 2020

Managed to get past when I changed the region.

Deploying started .. up to "Updating Microsoft.DocumentDB/databaseAccounts"

Failed with this error

DatabaseAccount name 'acms-cosmos' already exists. ActivityId: 86fcf2bb-5c92-409e-beb5-0cb232436d0f, Microsoft.Azure.Documents.Common/2.10.0

@gracez72
Copy link

Adding any errors/details here on this issue would be great so others can also refer to it if they get similar errors! The server_farm_id refers to the Azure App Service Plan and is usually in the following format: /subscriptions/{app_service_plan_subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Web/serverfarms/{app_service_plan_name}
We are currently still editing the deploy to azure process and will update the documentation and input names so that is more clear.

The 'DatabaseAccount name already exists' error may be because a previous deploy attempt successfully created the cosmosDB. If you check under the 'Deployments' header in the resource group, creating a new cosmosDB might have failed because it was already deployed before, but the other resources should be able to use the existing database account and successfully deploy.

@viperfx
Copy link
Author

viperfx commented Apr 21, 2020

I have checked and there is no Cosmos DB that exists with that name.

{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
  "details": [
    {
      "code": "BadRequest",
      "message": "{\r\n  \"code\": \"BadRequest\",\r\n  \"message\": \"DatabaseAccount name 'acms-cosmos' already exists.\\r\\nActivityId: f1dea428-3802-4c2d-8b6f-f3cc8c8d11ad, Microsoft.Azure.Documents.Common/2.10.0\"\r\n}"
    }
  ]
}

@viperfx
Copy link
Author

viperfx commented Apr 21, 2020

I had to deploy it, to let it fail, then edit the template manually so I can change the database name in the variables. I redeployed, and the cosmosDB was created. Everything was running, but when I went to the site I get ":( Application Error". Clearly there are quite a few bugs, and I think I will let the project mature a bit before I try again.

@gracez72
Copy link

Thank you for the comments, I will fix the CosmosDB bug and update the documentation with the issues that you ran into. I have encountered "Application Error" before and I was able to fix it by restarting the Azure App Service, but I'll test the deployment process again and document any fixes to errors I encounter.

@viperfx
Copy link
Author

viperfx commented Apr 25, 2020

Just an update - I was able to make the deploy "successfully"

But got the following when visiting the site:

image

@viperfx
Copy link
Author

viperfx commented May 6, 2020

Is there any updates on this 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

No branches or pull requests

2 participants