0

I am trying to deploy Azure functions with Great_expectations folders. The function is getting executed in the local system but facing the below error while executing the function in the portal.

Result: Failure Exception: OSError: [Errno 30] Read-only file system: './tmp' Stack: File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/dispatcher.py", line 405, in _handle__invocation_request invocation_id, fi_context, fi.func, args) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/dispatcher.py", line 612, in _run_sync_func func)(params) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/extension.py", line 215, in _raw_invocation_wrapper result = function(**args) File "/home/site/wwwroot/GETrigger/main.py", line 54, in main os.chmod('./tmp',0o777)

rickvdbosch
  • 14,105
  • 2
  • 40
  • 53

1 Answers1

0

As per my knowledge there is a missing tmp to the file path

filepath = '/tmp/' + key

for further details you can check the links with related discussions

  1. Azure Function in Python
  2. Read Only file system
SaiSakethGuduru
  • 2,218
  • 1
  • 5
  • 15