airflow-code-editor icon indicating copy to clipboard operation
airflow-code-editor copied to clipboard

Cannot rename/remove file

Open victoriokhomas opened this issue 3 years ago • 1 comments

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

victoriokhomas avatar Sep 12 '22 04:09 victoriokhomas

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.

andreax79 avatar Sep 12 '22 13:09 andreax79

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'

dnillovna avatar Sep 19 '22 18:09 dnillovna

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

AliciaaGarrido avatar Jan 30 '23 08:01 AliciaaGarrido

Thanks, the problem was the missing giit. Fixed in v 7.2.1, now you can rename/remove files without installing git.

andreax79 avatar Jan 30 '23 11:01 andreax79