I recently started working with Apache airflow deployed in docker container. my workflow has a few ETL stages, where a csv file is processed. After processing the data, I decided to send the processed data to an email address using the EmailOperator. I had already configured the Gmail SMTP correctly within the docker-composer, but I keep getting errors when trying to run it.
EmailOperator(task_id='send_email',to='lee@gmail.com.com',subject="Daily Report
Generated",html_content=""" <h1>Youreports are ready.</h1> """,files
['/usr/local/airflow/store_files_airflow/location_wise_profit_report.csv',
'/usr/local/airflow/store_files_airflow/store_wise_profit_report.csv'], dag=dag)
I keep getting permission errors and it seems as if the output csv file is not executable
ERROR - [Errno 13] Permission denied: '/usr/local/airflow/store_files_airflow/location_wise_profit_report.csv'