The user ‘uingigcb’ does not have write access to your /tmp directory. You need 
to fix that. It does not make sense to use another user to create the temp 
directory and allow ‘uingigcb’ to write to it. You could even consider that a 
security issue.

Bolke

> On 22 Sep 2017, at 13:11, Iván Robla Albarrán <[email protected]> wrote:
> 
> Hi,
> 
> 
> I am trying to use the run_as_user and when a execute the job, i have this
> problem
> 
> [2017-09-21 13:03:29,681] {base_task_runner.py:112} INFO - Running:
> ['bash', '-c', u'sudo -H -u uingigcb airflow run user_test uingigcb
> 2017-09-19T00:00:00 --job_id 33 --raw -sd DAGS_FOLDER/user_test.py
> --cfg_path /tmp/tmpOJ2SIy']
> [2017-09-21 13:03:30,191] {base_task_runner.py:95} INFO - Subtask:
> [2017-09-21 13:03:30,191] {__init__.py:57} INFO - Using executor
> SequentialExecutor
> [2017-09-21 13:03:30,589] {base_task_runner.py:95} INFO - Subtask:
> Traceback (most recent call last):
> [2017-09-21 13:03:30,589] {base_task_runner.py:95} INFO - Subtask:
> File "/opt/conda/2/airflow/bin/airflow", line 28, in <module>
> [2017-09-21 13:03:30,590] {base_task_runner.py:95} INFO - Subtask:
> args.func(args)
> [2017-09-21 13:03:30,590] {base_task_runner.py:95} INFO - Subtask:
> File "/opt/conda/2/airflow/lib/python2.7/site-packages/airflow/bin/cli.py",
> line 329, in run
> [2017-09-21 13:03:30,590] {base_task_runner.py:95} INFO - Subtask:
> with open(args.cfg_path, 'r') as conf_file:
> [2017-09-21 13:03:30,590] {base_task_runner.py:95} INFO - Subtask:
> IOError: [Errno 13] Permission denied: '/tmp/tmpOJ2SIy'
> [2017-09-21 13:03:34,724] {jobs.py:2083} INFO - Task exited with return code 1
> 
> 
> The temporal dir is not create before the execution of the job
> 
> ¿Could you help me?
> 
> Thanks!!!

Reply via email to