You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standalone DagProcessor which run in Apache Airflow Production Docker Image failed with error
airflow-dag-processor_1 |
airflow-dag-processor_1 | Traceback (most recent call last):
airflow-dag-processor_1 | File "/home/airflow/.local/bin/airflow", line 8, in <module>
airflow-dag-processor_1 | sys.exit(main())
airflow-dag-processor_1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/__main__.py", line 38, in main
airflow-dag-processor_1 | args.func(args)
airflow-dag-processor_1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/cli_parser.py", line 51, in command
airflow-dag-processor_1 | return func(*args, **kwargs)
airflow-dag-processor_1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/cli.py", line 99, in wrapper
airflow-dag-processor_1 | return f(*args, **kwargs)
airflow-dag-processor_1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/cli/commands/dag_processor_command.py", line 80, in dag_processor
airflow-dag-processor_1 | manager.start()
airflow-dag-processor_1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/dag_processing/manager.py", line 475, in start
airflow-dag-processor_1 | os.setpgid(0, 0)
airflow-dag-processor_1 | PermissionError: [Errno 1] Operation not permitted
This error not happen if directly run in host system by airflow dag-processor
Seems like this issue happen because when we run in Apache Airflow Production Docker Image airflow process is session leader, and according to man setpgid
ERRORS
setpgid() will fail and the process group will not be altered if:
[EPERM] The process indicated by the pid argument is a session leader.
What you think should happen instead
dag-processor should start in docker without error
How to reproduce
Use simple docker-compose file which use official Airflow 2.3.0 image
Apache Airflow version
2.3.0 (latest released)
What happened
Standalone DagProcessor which run in Apache Airflow Production Docker Image failed with error
This error not happen if directly run in host system by
airflow dag-processor
Seems like this issue happen because when we run in Apache Airflow Production Docker Image
airflow
process is session leader, and according toman setpgid
What you think should happen instead
dag-processor
should start in docker without errorHow to reproduce
docker-compose -f docker-compose-dag-processor.yaml up
Operating System
macOS Monterey 12.3.1
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
Docker: 20.10.12
docker-compose: 1.29.2
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: