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

Error during Azure Function deployment #28

Open
vanaldi opened this issue Jun 1, 2022 · 2 comments
Open

Error during Azure Function deployment #28

vanaldi opened this issue Jun 1, 2022 · 2 comments

Comments

@vanaldi
Copy link

vanaldi commented Jun 1, 2022

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I created a nested IoT Edge hierarchy following
https://github.com/Azure-Samples/iot-edge-for-iiot/blob/master/1-SimulatePurdueNetwork.md
and
https://github.com/Azure-Samples/iot-edge-for-iiot/blob/master/2-DeployOfflineDashboard.md
then run the script
.\Scripts\deploy.ps1
choosing the CloudWorkflow option
and
Custom deployment as a deployment option
An existing resource group (the one used for the nested edges)
An existing IoT Hub (the one used for the nested edges)
Enable IoT Edge monitoring
Upload metrics as IoT messages

I had this error during the Azure Function deployment

Deploying code to Function App iotedgelogsapp-91b304a7
WARNING: Getting scm site credentials for zip deployment
WARNING: Starting zip deployment. This operation can take a while to complete ...
WARNING: Deployment endpoint responded with status code 202
WARNING: Configuring default logging for the app, if not already enabled
ERROR: Zip deployment failed. {'id': '9f97537381e54130bbb9fd4f57def1cc', 'status': 3, 'status_text': '', 'author_email': 'N/A', 'author': 'N/A', 'deployer': 'ZipDeploy', 'message': 'Created via a push deployment', 'progress': '', 'received_time': '2022-06-01T14:21:27.3115273Z', 'start_time': '2022-06-01T14:21:27.3115273Z', 'end_time': '2022-06-01T14:21:29.0770729Z', 'last_success_end_time': None, 'complete': True, 'active': False, 'is_temp': False, 'is_readonly': True, 'url': 'https://iotedgelogsapp-91b304a7.scm.azurewebsites.net/api/deployments/latest', 'log_url': 'https://iotedgelogsapp-91b304a7.scm.azurewebsites.net/api/deployments/latest/log', 'site_name': 'iotedgelogsapp-91b304a7', 'provisioningState': 'Failed'}. Please run the command az webapp log deployment show -n iotedgelogsapp-91b304a7 -g testNestedEdge

Any log messages given by the failure

From 'https://iotedgelogsapp-91b304a7.scm.azurewebsites.net/api/deployments/latest/log'
{"Message":"An error has occurred.","ExceptionMessage":"No log found for 'latest'.","ExceptionType":"System.IO.FileNotFoundException","StackTrace":" at Kudu.Core.Deployment.DeploymentManager.GetLogEntries(String id) in C:\Kudu Files\Private\src\master\Kudu.Core\Deployment\DeploymentManager.cs:line 98\r\n at Kudu.Services.Deployment.DeploymentController.GetLogEntry(String id) in C:\Kudu Files\Private\src\master\Kudu.Services\Deployment\DeploymentController.cs:line 376"}

running “az webapp log deployment show -n iotedgelogsapp-91b304a7 -g testNestedEdge”
[
{
"details_url": null,
"id": "ba1db209-176b-48b3-9073-b672026c3ce7",
"log_time": "2022-06-01T14:21:27.7215351Z",
"message": "Updating submodules.",
"type": 0
},
{
"details_url": null,
"id": "ef034d16-b2a8-4338-9e24-0c35dace3878",
"log_time": "2022-06-01T14:21:28.0146338Z",
"message": "Preparing deployment for commit id '9f97537381'.",
"type": 0
},
{
"details_url": null,
"id": "972d4b56-9ea3-487e-b852-9888b6db3973",
"log_time": "2022-06-01T14:21:28.9226745Z",
"message": "Deployment Failed.",
"type": 0
}
]

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@eedorenko
Copy link
Contributor

A couple of questions:

  • In what location do you create resources. I tried out Cloud Workflow Sample / Custom Deployment in westus2 and it worked fine for me.
  • Did it create "iotedgelogsapp-91b304a7" Function App in "testNestedEdge" resource group? Can you troubleshoot with the portal this function app to understand what actually happened to the deployment?

@vanaldi
Copy link
Author

vanaldi commented Jun 7, 2022

A couple of questions:

  • In what location do you create resources. I tried out Cloud Workflow Sample / Custom Deployment in westus2 and it worked fine for me.
    Resources were created in East US (I used a MSDN personal account, not the MS one. Not sure if this is making any difference)
  • Did it create "iotedgelogsapp-91b304a7" Function App in "testNestedEdge" resource group? Can you troubleshoot with the portal this function app to understand what actually happened to the deployment?
    Yes "iotedgelogsapp-91b304a7" was created by the script
    Where exactly can I troubleshoot the function app in the portal?
    I can see this, but not sure if it is what you are referring to
    image

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