Cannot rename/remove file
I installed this and I am able to create and edit new file but got permission denied while trying to rename or remove the file. May I know what is the solution for this? I'm using airflow inside docker. Thanks
Witch version are you using? Do you try to remove/rename the new files or other files? If possible, please post the python log, thanks.
Same here.
Airflow version 2.4.0:
airflow-code-editor==7.0.1
apache-airflow==2.4.0
apache-airflow-providers-amazon==5.1.0
apache-airflow-providers-celery==3.0.0
apache-airflow-providers-cncf-kubernetes==4.3.0
apache-airflow-providers-common-sql==1.2.0
apache-airflow-providers-docker==3.1.0
apache-airflow-providers-elasticsearch==4.2.0
apache-airflow-providers-ftp==3.1.0
apache-airflow-providers-google==8.3.0
apache-airflow-providers-grpc==3.0.0
apache-airflow-providers-hashicorp==3.1.0
apache-airflow-providers-http==4.0.0
apache-airflow-providers-imap==3.0.0
apache-airflow-providers-microsoft-azure==4.2.0
apache-airflow-providers-mysql==3.2.0
apache-airflow-providers-odbc==3.1.1
apache-airflow-providers-postgres==5.2.1
apache-airflow-providers-redis==3.0.0
apache-airflow-providers-sendgrid==3.0.0
apache-airflow-providers-sftp==4.0.0
apache-airflow-providers-slack==5.1.0
apache-airflow-providers-sqlite==3.2.1
apache-airflow-providers-ssh==3.1.0
I tried to create and edit files - works as a charm. However, when I try to remove/rename the new files created with code editor or any other files, I get an error 'Permission denied'
The only related thing I found in logs:
docker logs airflow_airflow-webserver_1
[2022-09-19 17:57:38,295] {git.py:82} INFO - rm-local /test.tutorial.py
[2022-09-19 17:57:38,313] {git.py:107} ERROR - [Errno 13] Permission denied: 'git'
I am running airflow in a docker container and had this same issue, installing git inside the container worked for me:
sudo apt update
sudo apt install git
I guess installing it in your local machine should work as well
Thanks, the problem was the missing giit. Fixed in v 7.2.1, now you can rename/remove files without installing git.