Thank you for posting your analysis to the Microsoft Q&A Platform. I share your assessment regarding the extension looking for to run unsupported exe file on Mac. I checked https://github.com/Azure/azure-functions-core-tools/issues and this particular issue doesn't appear to be reported.I would suggest reporting this issue via VS Code. That way the team can have more telemetry regarding the issue. On my end, I'll share this issue with the product team to make the aware of the issue. If you happen to have the GitHub issue number, please share the link down below.
How to fix NetFxWorker issues on Azure Functions Core Tools on Mac?
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.
Azure Functions
Azure Logic Apps
2 answers
Sort by: Most helpful
-
Ryan Hill 30,186 Reputation points Microsoft Employee Moderator
2024-03-16T16:11:45.7733333+00:00 -
Pinaki Ghatak 5,595 Reputation points Microsoft Employee Moderator
2024-05-03T08:48:39.1666667+00:00 Hello @Matas Kaucikas
Based on the errors you provided, it seems like there is a permission issue with the NetFxWorker.exe file that Azure Functions Core Tools is trying to execute. This could be due to a permission setting on your Macbook Pro that is preventing the execution of the file. One thing you could try is to check the permissions on the file and make sure that it has the necessary permissions to be executed. You can do this by running the following command in your terminal:
ls -l /Users/matas.kaucikas/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle.Workflows/1.58.21/NetFxWorker/Microsoft.Azure.Workflows.Functions.NetFxWorker.exe
This will show you the permissions on the file. If the file does not have execute permissions, you can add them by running the following command:
chmod +x /Users/matas.kaucikas/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle.Workflows/1.58.21/NetFxWorker/Microsoft.Azure.Workflows.Functions.NetFxWorker.exe
I hope this helps