I'm currently working with a workflow in Azure Logic Apps (Locally) that's spitting out the following errors:
Error 1:
Failed to start Worker Channel. Process fileName: /Users/matas.kaucikas/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle.Workflows/1.58.21/NetFxWorker/Microsoft.Azure.Workflows.Functions.NetFxWorker.exe
Error 2:
System.Diagnostics.Process: An error occurred trying to start process '/Users/matas.kaucikas/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle.Workflows/1.58.21/NetFxWorker/Microsoft.Azure.Workflows.Functions.NetFxWorker.exe' with working directory '/Users/matas.kaucikas/Developer/MeteringOPS/Get Order Details'. Permission denied.
Error 3:
Failed to start a new language worker for runtime: node.
[2024-03-13T09:46:12.117Z] System.Diagnostics.Process: An error occurred trying to start process '/Users/matas.kaucikas/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle.Workflows/1.58.21/NetFxWorker/Microsoft.Azure.Workflows.Functions.NetFxWorker.exe' with working directory '/Users/matas.kaucikas/Developer/MeteringOPS/Get Order Details'. Permission denied.
What I've currently got installed:
- All extensions are up-to-date to the latest versions. This includes:
Azure Functions Core Tools (4.0.5571)
Azure Logic Apps (Standard) - (2.199.5)
Azure Functions - (1.13.4)
.NET 6 SDK
Visual Studio Code - 1.87.2
Further details of Visual Studio Code version:
Version: 1.87.2
Commit: 863d2581ecda6849923a2118d93a088b0745d9d6
Date: 2024-03-08T15:20:57.520Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.4.0
My Operating System:
- Macbook Pro (16-inch, 2021)
- Apple M1 Pro Chip
- Sonoma 14.4
Things I've tried to do to remediate the issue:
- Downgrade versions of all dependencies (including extensions)
- Completely remove dependencies for them to be then reinstalled automatically when booting up VS Code for Mac
- Downgrade host.json to a previous version based on suggestions from forums to the following:
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle.Workflows",
"version": "[1.*, 1.2.18)"
}
}
What seems to resolve the issue:
- When running the same workflow on a Windows machine, I've not encountered any issues and the workflow and it's necessary dependencies seem to function as expected.
Reason why I think this is happening:
- Further digressing the error, it seems like the Azure Functions Core Tools is trying to execute an .exe file, which is something that only Windows machines understand, hence why the error is initiated on the Mac machine. The alternative would be to point to the dll instead of exe, but the caveat is that Azure Functions Core tools is supposed to cross-platform, so that should realistically dynamically change based on the operating system.
I hope this provides enough information to hopefully resolve the issue. Look forward to hearing any suggestions. Thanks for your time.