What is this error? PermissionError: [Errno 1] Operation not permitted: '/dev/shm'

santra 6 Reputation points
2022-02-17T08:59:22.36+00:00

I am working on the Mac OS with VS code. I have written a init.py file but I am getting an error

For detailed output, run func with --verbose flag.    
[2022-02-17T08:48:00.818Z] Traceback (most recent call last):    
[2022-02-17T08:48:00.820Z]   File "/usr/local/Cellar/azure-functions-core-tools@4/4.0.3971/workers/python/3.8/OSX/X64/azure_functions_worker/bindings/shared_memory_data_transfer/file_accessor_unix.py", line 127, in _get_valid_mem_map_dirs    
[2022-02-17T08:48:00.821Z]     os.makedirs(dir_path)    
[2022-02-17T08:48:00.821Z]   File "/Users/stra/opt/anaconda3/lib/python3.8/os.py", line 213, in makedirs    
[2022-02-17T08:48:00.821Z]     makedirs(head, exist_ok=exist_ok)    
[2022-02-17T08:48:00.821Z]   File "/Users/stra/opt/anaconda3/lib/python3.8/os.py", line 223, in makedirs    
[2022-02-17T08:48:00.821Z]     mkdir(name, mode)    
[2022-02-17T08:48:00.821Z] PermissionError: [Errno 1] Operation not permitted: '/dev/shm'    

Does anyone know how to solve this problem. I have also tried to remove parts of host.json as discussed in https://learn.microsoft.com/en-us/answers/questions/396617/azure-functions-core-tools-error-osx-devshmazurefu.html. I have tried stack overflow ideas but does not work.

Please can anybody help.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,936 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,506 Reputation points
    2022-03-04T16:51:24.47+00:00

    @santra ,

    Apologies for the delay in getting back to you.

    It appears that this issue has been fixed in the latest version of the function core tools. V4-latest

    Also this issue will be fixed at the python functions level as well. However I dont have the ETA at the moment, I will update this thread once its released.

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.