Repository navigation
Description
Apache Airflow version
3.0.0
If "Other Airflow 2 version" selected, which one?
No response
What happened?
I've installed Airflow 3.0.0 using the docker compose instructions as described here: https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html
I followed all steps and after running docker compose up, I logged into the admin user interface to run the example_simplest_dag . The DAG run fails and the worker shows this error log:
2025-04-23 18:14:50.194787 [info ] Task execute_workload[02ddde1a-8165-459e-91dd-518f2dd56c5d] received [celery.worker.strategy]
2025-04-23 18:14:50.304948 [info ] [02ddde1a-8165-459e-91dd-518f2dd56c5d] Executing workload in Celery: token='eyJ***' ti=TaskInstance(id=UUID('019663dc-130a-764a-ac1b-d956964ee946'), task_id='my_task', dag_id='example_simplest_dag', run_id='manual__2025-04-23T18:14:49.335659+00:00', try_number=1, map_index=-1, pool_slots=1, queue='default', priority_weight=1, executor_config=None, parent_context_carrier={}, context_carrier={}, queued_dttm=None) dag_rel_path=PurePosixPath('example_simplest_dag.py') bundle_info=BundleInfo(name='example_dags', version=None) log_path='dag_id=example_simplest_dag/run_id=manual__2025-04-23T18:14:49.335659+00:00/task_id=my_task/attempt=1.log' type='ExecuteTask' [airflow.providers.celery.executors.celery_executor_utils]
2025-04-23 18:14:50.694139 [error ] Task execute_workload[02ddde1a-8165-459e-91dd-518f2dd56c5d] raised unexpected: ServerResponseError('Invalid auth token: Signature verification failed') [celery.app.trace]
What you think should happen instead?
The DAG should return the result without errors.
How to reproduce
- create a fresh virtual machine running ubuntu server and install docker
- in an empty directory with a user allowed to run the
dockercommands run the following steps: - run
curl -LfO 'https://airflow.apache.org/docs/apache-airflow/3.0.0/docker-compose.yaml' - run
mkdir -p ./dags ./logs ./plugins ./config - run
echo -e "AIRFLOW_UID=$(id -u)" > .env - run `docker compose up airflow-init``
- run
docker compose up - if docker is not running on your machine, create ssh port forwarding to access the web-interface because otherwise you will run into this issue: Airflow 3.0.0 docker compose documentation does not show image version correctly #49622
- login with default credentials, navigate to the
example_simplest_dagDAG and trigger the run
Operating System
Ubuntu 24.04.2 LTS
Versions of Apache Airflow Providers
apache-airflow-providers-amazon | 9.6.1
apache-airflow-providers-celery | 3.10.6
apache-airflow-providers-cncf-kubernetes | 10.4.3
apache-airflow-providers-common-compat | 1.6.0
apache-airflow-providers-common-io | 1.5.4
apache-airflow-providers-common-messaging | 1.0.0
apache-airflow-providers-common-sql | 1.26.0
apache-airflow-providers-docker | 4.3.1
apache-airflow-providers-elasticsearch | 6.2.2
apache-airflow-providers-fab | 2.0.1
apache-airflow-providers-ftp | 3.12.3
apache-airflow-providers-git | 0.0.2
apache-airflow-providers-google | 15.1.0
apache-airflow-providers-grpc | 3.7.3
apache-airflow-providers-hashicorp | 4.1.1
apache-airflow-providers-http | 5.2.2
apache-airflow-providers-microsoft-azure | 12.3.1
apache-airflow-providers-mysql | 6.2.2
apache-airflow-providers-odbc | 4.9.2
apache-airflow-providers-openlineage | 2.2.0
apache-airflow-providers-postgres | 6.1.3
apache-airflow-providers-redis | 4.0.2
apache-airflow-providers-sendgrid | 4.0.1
apache-airflow-providers-sftp | 5.2.1
apache-airflow-providers-slack | 9.0.5
apache-airflow-providers-smtp | 2.0.3
apache-airflow-providers-snowflake | 6.2.2
apache-airflow-providers-ssh | 4.0.1
apache-airflow-providers-standard | 1.0.0
Deployment
Docker-Compose
Deployment details
docker compose version
Docker Compose version v2.35.1
docker version
Client: Docker Engine - Community
Version: 28.1.1
API version: 1.49
Go version: go1.23.8
Git commit: 4eba377
Built: Fri Apr 18 09:52:14 2025
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 28.1.1
API version: 1.49 (minimum version 1.24)
Go version: go1.23.8
Git commit: 01f442b
Built: Fri Apr 18 09:52:14 2025
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.27
GitCommit: 05044ec0a9a75232cad458027ca83437aae3f4da
runc:
Version: 1.2.5
GitCommit: v1.2.5-0-g59923ef
docker-init:
Version: 0.19.0
GitCommit: de40ad0
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
Activity
boring-cyborg commentedon Apr 23, 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.
prakass1 commentedon Apr 23, 2025
I face the same issue using the docker-compose setup on mac as well.
dheerajturaga commentedon Apr 24, 2025
For a workaround set
export AIRFLOW__API_AUTH__JWT_SECRET=<some_random_string>you can generate one withopenssl rand -base64 16@amoghrajesh, @jscheffl can you assign this to me, I can provide fix
inkerinmaa commentedon Apr 24, 2025
Hi. I am setting this env variable in docker-compose but when I start containers all of them still have different jwt_secret in airflow.cfg
alonahmias commentedon Apr 24, 2025
dheerajturaga commentedon Apr 24, 2025
@inkerinmaa , @alonahmias

Something like this will work
@inkerinmaa , yes all the containers would have its own airflow.cfg with different jwt_secret ( thats what I'm trying to fix) but the env variable override should force all containers to pick the one set in the env
ashb commentedon Apr 24, 2025
Might also be related to #49681
alonahmias commentedon Apr 24, 2025
So yea i read that, what helped for me is removing all the volumes and leaving only the airflow home one
muzy commentedon Apr 24, 2025
I followed the current proposed solution of this commit: 37cf759
By setting
AIRFLOW_CONFIG: '/opt/airflow/config/airflow.cfg'in thedocker-compose.ymlI can get the DAG to run successfully and the worker to successfully submit the task execution result.However, based on the discussion in #49681 around the potential implications of this configuration, I will wait for a long-term solution until marking this issue as resolved.
prakass1 commentedon Apr 24, 2025
This worked for me.
entiovirsingh commentedon Apr 29, 2025
@muzy Did you put anything specific in the config file cause mine seems to be empty and its has no effect what so ever
tranminhquan30101999-git commentedon May 29, 2025
@dheerajturaga It works for me. Thank you so much!
entiovirsingh commentedon May 29, 2025
Worked for me with the JWT , was a syntaxt error with the key of JWT xd
m-fariz-a commentedon Jun 17, 2025
I've tried this but no sign that it works. I still got error on airflow-worker
The docker-compose file screenshot is in the attachement. Besides all the environement variable, I only changed dash from the container name that the template to be using underscore.
OleksandrBrukhalskyi commentedon Jun 19, 2025
I have the same issue. The problem is I can't solve it by using env variable in docker-compose file. The cli command for base64 string generation also doesn't work
jscheffl commentedon Jun 21, 2025
@OleksandrBrukhalskyi and @m-fariz-a as actually this bug is closed it might be you are running into a follow-up problem. If you double-check your environment and still you think it is a bug, can you open a new bug ticket? Else the thread is a bit fragmented here.
rg-surge commentedon Oct 28, 2025
i had same issue in airflow helm, in my setup other components (api server, scheduler and worker had different values for
AIRFLOW__API_AUTH__JWT_SECRET) which should be same because they were populated by airflow-jwt-secret but i dont have and idea on that.doing rollout restart deployments on api server,scheduler, worker and dag processor fixed it for me.