question

shimshad-5222 avatar image
4 Votes"
shimshad-5222 asked shimshad-5222 edited

Permission denied: './outputs'

When I tried to run experiments in azure ml notebook using azure ml python SDK it giving an error message as permission denied.
I am also facing the same issue when I am trying to save CSV files in the same folder as the notebook saved.

compute instance using : STANDARD_DS3_V2
code -
experi = Experiment(workspace=ws,name="newsampleexperiment12")
run = experi.start_logging()

error message :

PermissionError Traceback (most recent call last)
<ipython-input-7-8946b6d7df18> in <module>
----> 1 run = experi.start_logging()

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/experiment.py in start_logging(self, args, *kwargs)
259 """
260 from azureml.core.run import Run
--> 261 return Run._start_logging(self, args, _parent_logger=self._logger, *kwargs)
262
263 @_check_for_experiment_id

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/run.py in _start_logging(experiment, name, run_id, outputs, snapshot_directory, **kwargs)
586 typev2 = RunTypeV2(orchestrator="External", traits=['unspecified'])
587 run = Run._create(experiment, name=name, run_id=run_id, outputs=outputs,
--> 588 properties=properties, typev2=typev2, **kwargs)
589 run._client.start()
590 if snapshot_directory:

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/run.py in _create(experiment, name, run_id, outputs, properties, tags, typev2, display_name, **kwargs)
706 properties=properties, tags=tags, typev2=typev2,
707 display_name=display_name)
--> 708 return Run._dto_to_run(experiment, run_dto, outputs=outputs, **kwargs)
709
710 @property

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/run.py in _dto_to_run(experiment, run_dto, outputs, **kwargs)
198 :rtype: Run
199 """
--> 200 return Run(experiment, run_dto.run_id, outputs=outputs, _run_dto=run_dto, **kwargs)
201
202 @classmethod

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/run.py in init(self, experiment, run_id, outputs, **kwargs)
171
172 """
--> 173 super(Run, self).init(experiment, run_id, outputs=outputs, **kwargs)
174 self._parent_run = None
175

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/run_impl/run_base.py in init_(self, experiment, run_id, outputs, logs, _run_dto, _worker_pool, _user_agent, _ident, _batch_upload_metrics, py_wd, deny_list, flush_eager, redirect_output_stream, **kwargs)
76 for output in outputs:
77 try:
---> 78 os.makedirs(output)
79 except OSError as exception:
80 if exception.errno != errno.EEXIST:

/anaconda/envs/azureml_py36/lib/python3.6/os.py in makedirs(name, mode, exist_ok)
218 return
219 try:
--> 220 mkdir(name, mode)
221 except OSError:
222 # Cannot rely on checking for EEXIST, since the operating system

PermissionError: [Errno 13] Permission denied: './outputs'

azure-machine-learning
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@shimshad-5222 Thanks for the question. Can you confirm are you able to get the workspace details.

0 Votes 0 ·

yes i can

0 Votes 0 ·
ramr-msft avatar image
0 Votes"
ramr-msft answered shimshad-5222 edited

@shimshad-5222 Thanks for the question. Please follow the document/sample for creating the workspace and experiment logging. We are able to successfully execute and see the outputs+ logs and snapshots.
https://docs.microsoft.com/en-us/azure/machine-learning/tutorial-1st-experiment-hello-world#create-and-run-a-python-script

https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/track-and-monitor-experiments/logging-api/logging-api.ipynb

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have the same problem. I am trying to run the "Run experiments.ipynb" notebook from the "mslearn-dp100" repo. However I keep getting this "PermissionError: [Errno 13] Permission denied: './outputs'". I am able to get the workspace details, but as soon as I try run = experiment.start_logging() I get an error. I also tried it in MS Visual Code, but I also get an error.

0 Votes 0 ·

I have restarted the computing instance and I didn't do anything on the azure ml for a while then it is working fine.

0 Votes 0 ·
AntonMalarev-7961 avatar image
1 Vote"
AntonMalarev-7961 answered

Update: after switching from Chrome to Edge everything started working. I hope it helps you @shimshad-5222

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.