OleksandrBrukhalskyi opened a new issue, #50538:
URL: https://github.com/apache/airflow/issues/50538
### Apache Airflow version
3.0.1
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
I upgraded to Airflow version of `3.0.1` because I had some problem with
infinite reloading during sign in in `3.0.0`
Now, I have a problem with start up process of `airflow-apiserver` in Ubuntu
Server. But it works in my host machine in Docker.
It throws this exception.
`airflow-apiserver-1 | INFO: Started server process [1055]
airflow-apiserver-1 | INFO: Waiting for application startup.
airflow-apiserver-1 | ERROR: Traceback (most recent call last):
airflow-apiserver-1 | File
"/home/airflow/.local/lib/python3.11/site-packages/starlette/routing.py", line
692, in lifespan
airflow-apiserver-1 | async with self.lifespan_context(app) as
maybe_state:
airflow-apiserver-1 | File "/usr/local/lib/python3.11/contextlib.py",
line 210, in __aenter__
airflow-apiserver-1 | return await anext(self.gen)
airflow-apiserver-1 | ^^^^^^^^^^^^^^^^^^^^^
airflow-apiserver-1 | File
"/home/airflow/.local/lib/python3.11/site-packages/fastapi/routing.py", line
133, in merged_lifespan
airflow-apiserver-1 | async with original_context(app) as
maybe_original_state:
airflow-apiserver-1 | File "/usr/local/lib/python3.11/contextlib.py",
line 210, in __aenter__
airflow-apiserver-1 | return await anext(self.gen)
airflow-apiserver-1 | ^^^^^^^^^^^^^^^^^^^^^
airflow-apiserver-1 | File
"/home/airflow/.local/lib/python3.11/site-packages/fastapi/routing.py", line
133, in merged_lifespan
airflow-apiserver-1 | async with original_context(app) as
maybe_original_state:
airflow-apiserver-1 | File "/usr/local/lib/python3.11/contextlib.py",
line 210, in __aenter__
airflow-apiserver-1 | return await anext(self.gen)
airflow-apiserver-1 | ^^^^^^^^^^^^^^^^^^^^^
airflow-apiserver-1 | File
"/home/airflow/.local/lib/python3.11/site-packages/airflow/api_fastapi/app.py",
line 62, in lifespan
airflow-apiserver-1 | await stack.enter_async_context(
airflow-apiserver-1 | File "/usr/local/lib/python3.11/contextlib.py",
line 650, in enter_async_context
airflow-apiserver-1 | result = await _enter(cm)
airflow-apiserver-1 | ^^^^^^^^^^^^^^^^
airflow-apiserver-1 | File "/usr/local/lib/python3.11/contextlib.py",
line 210, in __aenter__
airflow-apiserver-1 | return await anext(self.gen)
airflow-apiserver-1 | ^^^^^^^^^^^^^^^^^^^^^
airflow-apiserver-1 | File
"/home/airflow/.local/lib/python3.11/site-packages/fastapi/routing.py", line
133, in merged_lifespan
airflow-apiserver-1 | async with original_context(app) as
maybe_original_state:
airflow-apiserver-1 | File "/usr/local/lib/python3.11/contextlib.py",
line 210, in __aenter__
airflow-apiserver-1 | return await anext(self.gen)
airflow-apiserver-1 | ^^^^^^^^^^^^^^^^^^^^^
airflow-apiserver-1 | File
"/home/airflow/.local/lib/python3.11/site-packages/svcs/fastapi.py", line 66,
in __call__
airflow-apiserver-1 | async with self.registry, cm(app,
self.registry) as state:
airflow-apiserver-1 | File "/usr/local/lib/python3.11/contextlib.py",
line 210, in __aenter__
airflow-apiserver-1 | return await anext(self.gen)
airflow-apiserver-1 | ^^^^^^^^^^^^^^^^^^^^^
airflow-dag-processor-1 | [2025-05-13T12:26:14.926+0000] {dag.py:1895} INFO
- Sync 1 DAGs
airflow-apiserver-1 | File
"/home/airflow/.local/lib/python3.11/site-packages/airflow/api_fastapi/execution_api/app.py",
line 94, in lifespan
airflow-apiserver-1 | registry.register_value(JWTValidator,
_jwt_validator(), ping=JWTValidator.status)
airflow-apiserver-1 |
^^^^^^^^^^^^^^^^
airflow-apiserver-1 | File
"/home/airflow/.local/lib/python3.11/site-packages/airflow/api_fastapi/execution_api/app.py",
line 65, in _jwt_validator
airflow-apiserver-1 |
**get_sig_validation_args(make_secret_key_if_needed=False),
airflow-apiserver-1 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
airflow-apiserver-1 | File
"/home/airflow/.local/lib/python3.11/site-packages/airflow/api_fastapi/auth/tokens.py",
line 578, in get_sig_validation_args
airflow-apiserver-1 | return {"secret_key":
get_signing_key("api_auth", "jwt_secret", make_secret_key_if_needed)}
airflow-dag-processor-1 | [2025-05-13T12:26:14.955+0000] {dag.py:2509} INFO
- Setting next_dagrun for tutorial_dag to None, run_after=None
airflow-apiserver-1 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
airflow-apiserver-1 | File
"/home/airflow/.local/lib/python3.11/site-packages/airflow/api_fastapi/auth/tokens.py",
line 535, in get_signing_key
airflow-apiserver-1 | raise ValueError(f"The value {section}/{key}
must be set!")
airflow-apiserver-1 | ValueError: The value api_auth/jwt_secret must be
set!`
### What you think should happen instead?
_No response_
### How to reproduce
I use this Docker image:
[3.0.1](https://hub.docker.com/layers/apache/airflow/3.0.1/images/sha256-f61b93ac08dbe38b63857a854da9fc98532c0ccc6a4e101ce3ca96d5d4000fc6)
### Operating System
Ubuntu Server 22.04
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker Compose
### Deployment details
Official Docker Compose file for 3.0.1
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]