-
Notifications
You must be signed in to change notification settings - Fork 443
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
Permission denied when running "func start" on .NET 8 in-process Function on Ubuntu 20.04 - 22.04 - 24.04 #3766
Comments
I have the same problem with the same versions of .NET and Azure Function Core Tools on my Mac. Any luck funding solution to this anyone? |
same here on Mac M1 with OSX, did anyone found any solutions |
same here |
Thanks @gabrielweyer We will investigate and share an update on this thread. |
Same here |
Same here with azure-functions-core-tools@4/4.0.5907. Found a workaround which is working for me on MacOS:
I also updates this, not sure if this is required for the workaround:
|
Using chmod on in-proc8/func helped get past the permissions problem. However, my visual studio code fails to attach. Now that it compiles and runs, how do you debug? |
@kshyju I saw your PR and I was able to fix the permissions problem as well using When I start the debugger (f5), it builds, but the nothing happens until I get a timeout error saying: "Failed to detect running Functions host within 60"seconds. You may want to adjust the "azureFunctions.pickProcessTimeout" setting." This behavior is even happening with new functions I created to test .net8 using the in-process model I have Sonoma 14.5 macOs and I'm using:
|
@joserhonFA
|
what worked for me was changing the local.settings.json file. Try having only |
@Doo-Santi We want to run the functions as „in-process“ (dotnet). Using your settings will run the functions in „isolated“ mode (dotnet-isolated). I will try it anyway, to confirm it still works in isolated mode. Thanks! |
This doesn't work. My function use the in-process model and I migrated to .net8 but still using the in-process model |
I got it working for me, its a very inconvenient workaround but it works. Maybe it helps anybody in the meantime.
|
I tried the suggested workaround on my MacBook Pro M2 Somona 14.6.1 It worked, I started 'tmp/cli/func start' then used the command pallet to "Debug: Attach to .Net 5+ or .NET core process" and selected the running "func" application. To make debugging easier, I updated my Visual Studio Code Configuration and set the "Azure Function Func Cli Path" |
I managed to get this working by re-signing the func binary using the codesign utility after updating the permissions. First you need to generate a self-signed cert for code signing (details here) then:
@kshyju the latest release doesn't seem to include this hotfix. When will it be released? |
This solution worked for me, thank you |
Getting the same error when running
|
Same issue is happening on Ubuntu 22.04 as well since the release of sudo chmod +x /usr/lib/azure-functions-core-tools-4/in-proc8/func |
When I run
func start
I get the below error:Steps taken:
func init MyProjFolder --worker-runtime dotnet
cd MyProjFolder/
func new --template "Http Trigger" --name MyHttpTrigger
I added
FUNCTIONS_INPROC_NET8_ENABLED
tolocal.settings.json
:I updated the project to target .NET 8:
I'm able to run an in-process .NET 8 on Windows using the Azure Function Core Tools and on a Windows Function App.
The text was updated successfully, but these errors were encountered: