I'm running on OSX and am getting the following error when running func start in VSCODE terminal on a function project. Why is Azure Functions trying to create a shared memory directory on /dev/shm when there's no write access to /dev directory? I realized that the function still runs but the error persists.
(.venv) (base) Me@me-mbp CreateAnAzureFunction % func start
Found Python version 3.7.2 (python3).
Azure Functions Core Tools
Core Tools Version: 3.0.3477 Commit hash: <hash> (64-bit)
Function Runtime Version: 3.0.15584.0
[2021-05-16T05:44:42.667Z] Cannot create directory for shared memory usage: /dev/shm/AzureFunctions
[2021-05-16T05:44:42.669Z] System.IO.FileSystem: Access to the path '/dev/shm/AzureFunctions' is denied. Operation not permitted.
[2021-05-16T05:44:44.209Z] Traceback (most recent call last):
[2021-05-16T05:44:44.209Z] File "/usr/local/Cellar/azure-functions-core-tools@3/3.0.3477/workers/python/3.7/OSX/X64/azure_functions_worker/bindings/shared_memory_data_transfer/file_accessor_unix.py", line 127, in _get_valid_mem_map_dirs
[2021-05-16T05:44:44.209Z] os.makedirs(dir_path)
[2021-05-16T05:44:44.209Z] File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/os.py", line 211, in makedirs
[2021-05-16T05:44:44.209Z] makedirs(head, exist_ok=exist_ok)
[2021-05-16T05:44:44.209Z] File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/os.py", line 221, in makedirs
[2021-05-16T05:44:44.209Z] mkdir(name, mode)
[2021-05-16T05:44:44.209Z] PermissionError: [Errno 1] Operation not permitted: '/dev/shm'
[2021-05-16T05:44:44.306Z] Worker process started and initialized.
Functions:
Review: [GET,POST] http://localhost:7071/api/Review