silly-dress-39732
09/01/2021, 8:09 AMmammoth-bear-12532
mammoth-bear-12532
mammoth-bear-12532
silly-dress-39732
09/02/2021, 3:11 AMmammoth-bear-12532
mammoth-bear-12532
silly-dress-39732
09/02/2021, 5:10 AMsilly-dress-39732
09/02/2021, 5:12 AMmammoth-bear-12532
silly-dress-39732
09/02/2021, 5:15 AMmammoth-bear-12532
mammoth-bear-12532
chmod -R 777 dags/
chmod -R 777 logs/
mammoth-bear-12532
mkdir ./dags ./logs ./plugins
echo -e "AIRFLOW_UID=$(id -u)\nAIRFLOW_GID=0" > .env
mammoth-bear-12532
docker-compose up airflow-init
docker-compose up
mammoth-bear-12532
silly-dress-39732
09/02/2021, 5:45 AMdocker-compose up hava some problem like this:
Traceback (most recent call last):
airflow-scheduler_1 | File "/usr/local/lib/python3.8/logging/config.py", line 563, in configure
airflow-scheduler_1 | handler = self.configure_handler(handlers[name])
airflow-scheduler_1 | File "/usr/local/lib/python3.8/logging/config.py", line 744, in configure_handler
airflow-scheduler_1 | result = factory(**kwargs)
airflow-scheduler_1 | File "/usr/local/lib/python3.8/logging/handlers.py", line 148, in __init__
airflow-scheduler_1 | BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
airflow-scheduler_1 | File "/usr/local/lib/python3.8/logging/handlers.py", line 55, in __init__
airflow-scheduler_1 | logging.FileHandler.__init__(self, filename, mode, encoding, delay)
airflow-scheduler_1 | File "/usr/local/lib/python3.8/logging/__init__.py", line 1147, in __init__
airflow-scheduler_1 | StreamHandler.__init__(self, self._open())
airflow-scheduler_1 | File "/usr/local/lib/python3.8/logging/__init__.py", line 1176, in _open
airflow-scheduler_1 | return open(self.baseFilename, self.mode, encoding=self.encoding)
airflow-scheduler_1 | PermissionError: [Errno 13] Permission denied: '/opt/airflow/logs/dag_processor_manager/dag_processor_manager.log'
airflow-scheduler_1 |
airflow-scheduler_1 | The above exception was the direct cause of the following exception:
silly-dress-39732
09/02/2021, 5:46 AMmammoth-bear-12532
mammoth-bear-12532
mammoth-bear-12532
docker compose rm
in the airflow_install
directorysilly-dress-39732
09/02/2021, 5:58 AMmammoth-bear-12532
ls -lR ./logs
give yousilly-dress-39732
09/02/2021, 6:03 AMmammoth-bear-12532
mammoth-bear-12532
ls -lR ./logs
from outside the container?mammoth-bear-12532
silly-dress-39732
09/02/2021, 6:09 AMmammoth-bear-12532
mammoth-bear-12532
mammoth-bear-12532