You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "santurini (via GitHub)" <gi...@apache.org> on 2025/12/09 18:29:57 UTC
[D] Failing DAGs out of nowhere [airflow]
GitHub user santurini created a discussion: Failing DAGs out of nowhere
### Apache Airflow version
Other Airflow 2/3 version (please specify below)
### If "Other Airflow 2/3 version" selected, which one?
3.0.2
### What happened?
All my dags are failing out of nowhere with this log:
Log message source details: sources=["Could not read served logs: Invalid URL 'http://:8793/log/dag_id=debug_variable_access/run_id=manual__2025-12-09T16:09:40.619210+00:00/task_id=read_and_log_variables/attempt=1.log': No host supplied"]
### What you think should happen instead?
The dag should run succesfully
### How to reproduce
Example DAG:
```
from __future__ import annotations
from datetime import datetime
from airflow.decorators import dag, task
from airflow.models import Variable
@dag(
dag_id="debug_variable_access",
start_date=datetime(2024, 1, 1),
schedule=None,
catchup=False,
tags=["debug"],
)
def debug_variable_dag():
@task
def read_and_log_variables():
"""Reads the specific variables and logs them."""
import logging
try:
# Using the default_var parameter will prevent the task from failing
# and will help us debug the value.
token = Variable.get("GIT_TOKEN", default_var="[GIT_TOKEN NOT FOUND]")
version = Variable.get("COMPANY_DATA_MODEL_PKG_VERSION", default_var="[VERSION NOT FOUND]")
logging.info(f"GIT_TOKEN found: '{token}'")
logging.info(f"COMPANY_DATA_MODEL_PKG_VERSION found: '{version}'")
except Exception as e:
logging.error(f"An unexpected error occurred: {e}")
read_and_log_variables()
debug_variable_dag()
```
### Operating System
PRETTY_NAME="Ubuntu 24.04.2 LTS" NAME="Ubuntu" VERSION_ID="24.04" VERSION="24.04.2 LTS (Noble Numbat)" VERSION_CODENAME=noble ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=noble LOGO=ubuntu-logo
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
Kubernetes deployment values:
```
images:
airflow:
repository: ${IMAGE_NAME}
tag: ${VERSION}
pullPolicy: Always
ingress:
apiServer:
enabled: true
annotations:
projectcontour.io/response-timeout: "120s"
hosts:
- name: "airflow.staging.translated.cloud"
ingressClassName: "contour"
env:
- name: "AIRFLOW__API__AUTH_BACKEND"
value: "airflow.api.auth.backend.basic_auth"
- name: "AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION"
value: "True"
- name: "AIRFLOW__CORE__LOAD_EXAMPLES"
value: "False"
- name: AIRFLOW__CORE__EXECUTE_TASKS_NEW_PYTHON_INTERPRETER
value: "True"
- name: AIRFLOW__LOGGING__REMOTE_LOGGING
value: "True"
- name: AIRFLOW__LOGGING__REMOTE_LOG_CONN_ID
value: "LoggingS3Connection"
- name: AIRFLOW__LOGGING__REMOTE_BASE_LOG_FOLDER
value: "s3://logs-archive-product-team/Airflow"
- name: AIRFLOW__LOGGING__ENCRYPT_S3_LOGS
value: "False"
- name: AIRFLOW__CORE__ENABLE_XCOM_PICKLING
value: "True"
- name: AIRFLOW__SMTP__SMTP_HOST
value: "smtp.gmail.com"
- name: AIRFLOW__SMTP__SMTP_PORT
value: "587"
- name: AIRFLOW__SMTP__SMTP_SSL
value: "False"
- name: AIRFLOW__SMTP__SMTP_STARTTLS
value: "True"
- name: AIRFLOW__SMTP__SMTP_USER
value: "robot@translated.net"
- name: "CM_API_URL"
value: "https://cm-api.translated.cloud/api"
secret:
- envName: "GIT_TOKEN"
secretName: "airflow-git-token"
secretKey: "GIT_TOKEN"
data:
metadataSecretName: "airflow-pgbouncer-connection"
fernetKey: ${FERNET_KEY}
webserverSecretKey: ${WEBSERVER_SECRET_KEY}
workers:
replicas: 1
registry:
secretName: regcred
postgresql:
enabled: false
pgbouncer:
enabled: true
configSecretName: airflow-pgbouncer-config
metricsExporterSidecar:
statsSecretName: airflow-pgbouncer-stats
dags:
gitSync:
enabled: true
repo: git@github.com:translated/airflow-dags.git
branch: develop
ref: develop
depth: 1
subPath: "dags"
sshKeySecret: airflow-ssh-secret
```
### Anything else?
For every dag that previously was working now I have this error
### 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)
GitHub link: https://github.com/apache/airflow/discussions/59253
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] Failing DAGs out of nowhere [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
GitHub user potiuk added a comment to the discussion: Failing DAGs out of nowhere
But in case you need "support" and you do not want / have no time / skills to do the Deployment Manager task - there are other ways of installing airflow and the expectations from the Deployment Manager of different types of deployments are explained nicely in https://airflow.apache.org/docs/apache-airflow/stable/installation/index.html - ranging from setting up systemd and similar things to managed airflow -> they have varying degrees of the "deep dive" Deployment Manager needs to learn to be able to diagnose such errors.
GitHub link: https://github.com/apache/airflow/discussions/59253#discussioncomment-15231391
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] Failing DAGs out of nowhere [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
GitHub user potiuk added a comment to the discussion: Failing DAGs out of nowhere
We generally do not provide "support" - people here help if they see they can help others - usually in their free time, but there is nothing like "support" - usually you get "support" when you pay for it - and here you get the software absolutely for free with no guarantees and promises of support (basicallly you get what you pay for).
Generally, really hard to say what is wrong here - because it's hard to say what fails "dag fails" does not seem correct description (but I am guessing) it looks like your UI has a trouble with getting logs rather than your dag failing, which is a different problem
So I'd start with more precise description of what exactly you do and what exactly fails. Adding screenshots might help - looking at k8s logs (not airflow logs - but kubernetes ones - in the same way you look for any other application you run - or learning how to do it if yoy do not use k8s is a good idea to - that might help you to identify failing components.
It is likely your k8s is misconfigured. I am tempted to think that your DNS is a problem - the workers usually store the address of their pods as the URL where api server reads logs from. You can also look at "hostname_callable" parameter in Airflow Configuration and understand how it works - and configure it so tha it does not rely on your DNS.
But this is wild guess only - more failure and warning logs that are suspicious from your system would be needed - but those are usually "deployment" logs - i.e. your k8s logs that you (as Deployment Manager who chose K8S as the deployment) should be able to browse, read and understand which are the "normal" logs and which indicate some erroneous behaviour.
GitHub link: https://github.com/apache/airflow/discussions/59253#discussioncomment-15231367
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] Failing DAGs out of nowhere [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
GitHub user potiuk added a comment to the discussion: Failing DAGs out of nowhere
Not enough information - converted to a discussion - please avoid opening issue if you have no reproducible case to report.
You should:
a) look more at your logs and see what changed that suddenly - something with your deployment.
b) upgrade - at the very least to latest 3.0 and ideall to 3.1.4 that is about to be released today
By **not** upgrading you are likely hitting one of the (I guess) ~ 500 issues fixed since 3.0.2 was released. It's very likely (and if you want to be sure you can look through changelog and see if some of the fixes might relate to it, or just upgrade - which will likely be faster than going through 500 issues.
GitHub link: https://github.com/apache/airflow/discussions/59253#discussioncomment-15211626
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] Failing DAGs out of nowhere [airflow]
Posted by "santurini (via GitHub)" <gi...@apache.org>.
GitHub user santurini added a comment to the discussion: Failing DAGs out of nowhere
@potiuk I have some follow ups:
I have started with a fresh installation of version 3.1.3 and still, everytime I try to run a dag, the dag fails with this one and only log:
```
Log message source details sources=["Could not read served logs: Invalid URL 'http://:8793/log/dag_id=debug_variable_access/run_id=manual__2025-12-11T09:22:28+00:00/task_id=read_and_log_variables/attempt=1.log': No host supplied"]
```
I've looked at the runs history and this behaviour showed up 2 days ago out of nowhere as I mentioned.
When doing the fresh installation I also added the `apiSecretKey` and `jwtSecret` to avoid inconsistencies but nothing changed.
I have no more ideas on where and what to look for, what information do you need to provide support?
GitHub link: https://github.com/apache/airflow/discussions/59253#discussioncomment-15229146
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org