Repository navigation
Closed
Labels
area:Executors-coreLocalExecutor & SequentialExecutorarea:corearea:schedulerkind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet
Description
Apache Airflow version
3.1.3
If "Other Airflow 2/3 version" selected, which one?
No response
What happened?
scheduler | 2025-11-26T08:07:05.179595Z [error ] Exception when executing SchedulerJob._run_scheduler_loop [airflow.jobs.scheduler_job_runner.SchedulerJobRunner] loc=scheduler_job_runner.py:1082
scheduler | Traceback (most recent call last):
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/scheduler_job_runner.py", line 1078, in _execute
scheduler | self._run_scheduler_loop()
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/scheduler_job_runner.py", line 1376, in _run_scheduler_loop
scheduler | executor.heartbeat()
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/traces/tracer.py", line 58, in wrapper
scheduler | return func(*args, **kwargs)
scheduler | ^^^^^^^^^^^^^^^^^^^^^
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/base_executor.py", line 257, in heartbeat
scheduler | self.sync()
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/local_executor.py", line 210, in sync
scheduler | self._read_results()
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/local_executor.py", line 215, in _read_results
scheduler | key, state, exc = self.result_queue.get()
scheduler | ^^^^^^^^^^^^^^^^^^^^^^^
scheduler | File "/usr/lib/python3.12/multiprocessing/queues.py", line 389, in get
scheduler | return _ForkingPickler.loads(res)
scheduler | ^^^^^^^^^^^^^^^^^^^^^^^^^^
scheduler | TypeError: HTTPStatusError.__init__() missing 2 required keyword-only arguments: 'request' and 'response'
scheduler | 2025-11-26T08:07:05.181398Z [info ] Shutting down LocalExecutor; waiting for running tasks to finish. Signal again if you don't want to wait. [airflow.executors.local_executor.LocalExecutor] loc=local_executor.py:221
dag-processor | 2025-11-26T08:07:05.181743Z [info ] Setting next_dagrun for tutorial_taskflow_api to None, run_after=None [airflow.models.dag] loc=dag.py:688
scheduler | 2025-11-26T08:07:05.192052Z [info ] Exited execute loop [airflow.jobs.scheduler_job_runner.SchedulerJobRunner] loc=scheduler_job_runner.py:1094
scheduler | Traceback (most recent call last):
scheduler | File "/home/xp/airflow_venv/bin/airflow", line 8, in <module>
scheduler | sys.exit(main())
scheduler | ^^^^^^
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/__main__.py", line 55, in main
scheduler | args.func(args)
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/cli/cli_config.py", line 49, in command
scheduler | return func(*args, **kwargs)
scheduler | ^^^^^^^^^^^^^^^^^^^^^
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/utils/cli.py", line 114, in wrapper
scheduler | return f(*args, **kwargs)
scheduler | ^^^^^^^^^^^^^^^^^^
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/utils/providers_configuration_loader.py", line 54, in wrapped_function
scheduler | return func(*args, **kwargs)
scheduler | ^^^^^^^^^^^^^^^^^^^^^
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/cli/commands/scheduler_command.py", line 52, in scheduler
scheduler | run_command_with_daemon_option(
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/cli/commands/daemon_utils.py", line 86, in run_command_with_daemon_option
scheduler | callback()
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/cli/commands/scheduler_command.py", line 55, in <lambda>
scheduler | callback=lambda: _run_scheduler_job(args),
scheduler | ^^^^^^^^^^^^^^^^^^^^^^^^
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/cli/commands/scheduler_command.py", line 43, in _run_scheduler_job
scheduler | run_job(job=job_runner.job, execute_callable=job_runner._execute)
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/utils/session.py", line 100, in wrapper
scheduler | return func(*args, session=session, **kwargs)
scheduler | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/job.py", line 368, in run_job
scheduler | return execute_job(job, execute_callable=execute_callable)
scheduler | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/job.py", line 397, in execute_job
scheduler | ret = execute_callable()
scheduler | ^^^^^^^^^^^^^^^^^^
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/scheduler_job_runner.py", line 1078, in _execute
scheduler | self._run_scheduler_loop()
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/scheduler_job_runner.py", line 1376, in _run_scheduler_loop
scheduler | executor.heartbeat()
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/traces/tracer.py", line 58, in wrapper
scheduler | return func(*args, **kwargs)
scheduler | ^^^^^^^^^^^^^^^^^^^^^
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/base_executor.py", line 257, in heartbeat
scheduler | self.sync()
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/local_executor.py", line 210, in sync
scheduler | self._read_results()
scheduler | File "/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/local_executor.py", line 215, in _read_results
scheduler | key, state, exc = self.result_queue.get()
scheduler | ^^^^^^^^^^^^^^^^^^^^^^^
scheduler | File "/usr/lib/python3.12/multiprocessing/queues.py", line 389, in get
scheduler | return _ForkingPickler.loads(res)
scheduler | ^^^^^^^^^^^^^^^^^^^^^^^^^^
scheduler | TypeError: HTTPStatusError.__init__() missing 2 required keyword-only arguments: 'request' and 'response'
scheduler | INFO: Shutting down
What you think should happen instead?
No response
How to reproduce
in ubuntu 24.04
$ pip install apache-airflow[EXTRAS]==AIRFLOW_VERSION --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-AIRFLOW_VERSION/constraints-PYTHON_VERSION.txt"
$ airflow standalone
Operating System
ubuntu 24.04
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
area:Executors-coreLocalExecutor & SequentialExecutorarea:corearea:schedulerkind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet
Activity
boring-cyborg commentedon Nov 26, 2025
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
love1angel commentedon Nov 26, 2025
i already find the root cause. because my localhost 8080 already used.
so i changed the port to 8081 use variable
and airflow still trying to use 8080
love1angel commentedon Nov 26, 2025
the whole trace here: