You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/06/01 22:03:17 UTC

[GitHub] [airflow] jhonatanrt edited a comment on issue #16207: Airflow scheduler - Can't start correctly because it has error message about DagFileProcessor0-Process failed

jhonatanrt edited a comment on issue #16207:
URL: https://github.com/apache/airflow/issues/16207#issuecomment-852480383


   > @jhonatanrt, can you post the complete traceback?
   
   Ok, no problem.
   Another thing, You can see "sync s3" because I put bash to sync with s3 bucket to get new Dags File. I'm working in AWS ECS Fargate and I only have problem with the scheduler container.
   `
   
   [38;5;6mairflow-scheduler 21:35:27.38 INFO  ==&gt; ** Airflow setup finished! **
   --
   airflow-scheduler 21:35:27.40 INFO  ==&gt; ** Starting Airflow **
   ____________       _____________
   ____    \|__( )_________  __/__  /________      __
   ____  /\| \|_  /__  ___/_  /_ __  /_  __ \_ \| /\| / /
   ___  ___ \|  / _  /   _  __/ _  / / /_/ /_ \|/ \|/ /
   _/_/  \|_/_/  /_/    /_/    /_/  \____/____/\|__/
   [2021-06-01 21:35:28,607] {scheduler_job.py:1253} INFO - Starting the scheduler
   [2021-06-01 21:35:28,607] {scheduler_job.py:1258} INFO - Processing each file at most -1 times
   [2021-06-01 21:35:28,611] {dag_processing.py:254} INFO - Launched DagFileProcessorManager with pid: 154
   [2021-06-01 21:35:28,612] {scheduler_job.py:1822} INFO - Resetting orphaned tasks for active dag runs
   [2021-06-01 21:35:28,616] {settings.py:52} INFO - Configured default timezone Timezone('UTC')
   Process DagFileProcessor0-Process:
   Traceback (most recent call last):
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
   self.run()
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 108, in run
   self._target(*self._args, **self._kwargs)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 166, in _run_file_processor
   set_context(log, file_path)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/logging_mixin.py", line 174, in set_context
   handler.set_context(value)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 56, in set_context
   local_loc = self._init_file(filename)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 144, in _init_file
   open(log_file_path, "a").close()
   PermissionError: [Errno 13] Permission denied: '/opt/bitnami/airflow/logs/scheduler/2021-06-01/demo.py.log'
   Process DagFileProcessor1-Process:
   Traceback (most recent call last):
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
   self.run()
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 108, in run
   self._target(*self._args, **self._kwargs)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 166, in _run_file_processor
   set_context(log, file_path)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/logging_mixin.py", line 174, in set_context
   handler.set_context(value)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 56, in set_context
   local_loc = self._init_file(filename)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 144, in _init_file
   open(log_file_path, "a").close()
   PermissionError: [Errno 13] Permission denied: '/opt/bitnami/airflow/logs/scheduler/2021-06-01/demo.py.log'
   sync s3
   Process DagFileProcessor2-Process:
   Traceback (most recent call last):
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
   self.run()
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 108, in run
   self._target(*self._args, **self._kwargs)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 166, in _run_file_processor
   set_context(log, file_path)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/logging_mixin.py", line 174, in set_context
   handler.set_context(value)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 56, in set_context
   local_loc = self._init_file(filename)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 144, in _init_file
   open(log_file_path, "a").close()
   PermissionError: [Errno 13] Permission denied: '/opt/bitnami/airflow/logs/scheduler/2021-06-01/demo.py.log'
   Process DagFileProcessor3-Process:
   Traceback (most recent call last):
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
   self.run()
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 108, in run
   self._target(*self._args, **self._kwargs)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 166, in _run_file_processor
   set_context(log, file_path)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/logging_mixin.py", line 174, in set_context
   handler.set_context(value)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 56, in set_context
   local_loc = self._init_file(filename)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 144, in _init_file
   open(log_file_path, "a").close()
   PermissionError: [Errno 13] Permission denied: '/opt/bitnami/airflow/logs/scheduler/2021-06-01/demo.py.log'
   sync s3
   Process DagFileProcessor4-Process:
   Traceback (most recent call last):
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
   self.run()
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 108, in run
   self._target(*self._args, **self._kwargs)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 166, in _run_file_processor
   set_context(log, file_path)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/logging_mixin.py", line 174, in set_context
   handler.set_context(value)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 56, in set_context
   local_loc = self._init_file(filename)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 144, in _init_file
   open(log_file_path, "a").close()
   PermissionError: [Errno 13] Permission denied: '/opt/bitnami/airflow/logs/scheduler/2021-06-01/demo.py.log'
   Process DagFileProcessor5-Process:
   Traceback (most recent call last):
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
   self.run()
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 108, in run
   self._target(*self._args, **self._kwargs)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 166, in _run_file_processor
   set_context(log, file_path)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/logging_mixin.py", line 174, in set_context
   handler.set_context(value)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 56, in set_context
   local_loc = self._init_file(filename)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 144, in _init_file
   open(log_file_path, "a").close()
   PermissionError: [Errno 13] Permission denied: '/opt/bitnami/airflow/logs/scheduler/2021-06-01/demo.py.log'
   sync s3
   Process DagFileProcessor6-Process:
   Traceback (most recent call last):
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
   self.run()
   File "/opt/bitnami/python/lib/python3.8/multiprocessing/process.py", line 108, in run
   self._target(*self._args, **self._kwargs)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 166, in _run_file_processor
   set_context(log, file_path)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/logging_mixin.py", line 174, in set_context
   handler.set_context(value)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 56, in set_context
   local_loc = self._init_file(filename)
   File "/opt/bitnami/airflow/venv/lib/python3.8/site-packages/airflow/utils/log/file_processor_handler.py", line 144, in _init_file
   
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org