4

Trying to debug an Azure functions project. On the mac clicking F5 and starting the debug.

And the output is this :

[2021-07-25T08:47:57.429Z] Cannot create directory for shared memory usage: /dev/shm/AzureFunctions
[2021-07-25T08:47:57.434Z] System.IO.FileSystem: Access to the path '/dev/shm/AzureFunctions' is denied. Operation not permitted.
Value cannot be null. (Parameter 'provider')

Has anybody encountered this before and know how to fix this ? I tried running visual studio code with administrator permissions like this : sudo open ./Visual\ Studio\ Code.app

Also tried to mkdir the /dev/shm directory but it just keeps giving this error. What should I do ?

2

2 Answers 2

7

Solution was adding --verbose mode and see the logs. The problem was that azure didn't support node version 15. Downgraded nodejs to version 13.12.0 and it worked.

Sign up to request clarification or add additional context in comments.

4 Comments

how do you start the debug session in verbose mode?
Open terminal, change to api folder, and enter func start --verbose
0

Step 1: Downgrade nodejs to 14.x https://nodejs.org/download/release/v14.19.0/

Step 2: run in verbose mode Open terminal, change to api folder, and enter the below command func start --verbose

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.