GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — No logs after task completion · Issue #45376 · apache/airflow

No logs after task completion #45376

New issue
Copy link
New issue
Copy link
Closed
Closed
No logs after task completion#45376
Copy link
Labels
area:UIRelated to UI/UX. For Frontend Developers.area:helm-chartAirflow Helm Chartarea:loggingkind:bugThis is a clearly a bug

Description

@asemelianov
asemelianov
opened on Jan 3, 2025
Issue body actions

Official Helm Chart version

1.15.0 (latest released)

Apache Airflow version

2.10.4

Kubernetes Version

1.28

Helm Chart configuration

No response

Docker Image customizations

No response

What happened

We use CeleryKubernetes Executor. Not in all cases, but sometimes after the task is completed, the output with logs disappears. In order for the output with logs to appear in the UI, you have to refresh the page.
Снимок экрана 2025-01-03 в 15 16 52

What you think should happen instead

No response

How to reproduce

We launch the pipeline, select any task and wait for its completion. After the task is completed, the output disappears. We refresh the page, the output with logs is in place. Sometimes refreshing the page does not immediately display the logs, but you need to wait about a minute.

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
Reacted by kencieszykowski and Antoine R

Activity

  1. asemelianov
    added
    area:helm-chartAirflow Helm Chart
    kind:bugThis is a clearly a bug
    needs-triagelabel for new issues that we didn't triage yet
    on Jan 3, 2025
  2. boring-cyborg commented on Jan 3, 2025

    @boring-cyborg
    boring-cyborgBot
    on Jan 3, 2025 – with boring-cyborg
    More actions

    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.

  3. dosubot
    added
    area:logging
    area:UIRelated to UI/UX. For Frontend Developers.
    on Jan 3, 2025
  4. javier-salazar-zefr commented on Jan 3, 2025

    @javier-salazar-zefr
    javier-salazar-zefr
    on Jan 3, 2025
    More actions

    We experienced a similar issue with version 2.10.3. In our case what was happening was that it would fail to fetch remote logs. From looking at the requests it seemed it only tried to get attempt=1 which did not exist in the bucket then after refreshing it would get attempt=2.log and that would successfully show the logs in the UI, this behavior was consistent with every task on the DAG.

    After trying different things we ended up downgrading to 2.9.2 and the issue went away. In version 2.9.2 it seems that it gets all attempts on the first time loading the screen so it showed 1 and 2, if we looked at 1 we could see the same error we saw on that first load on 2.10.3 but clicking on the 2 tab showed the full logs from the bucket.

    Unsure if this would be the same issue but they sound similar.

  5. potiuk commented on Jan 6, 2025

    @potiuk
    potiuk
    on Jan 6, 2025
    Member
    More actions

    Unsure if this would be the same issue but they sound similar.

    That sounds like related to num_try change @dstandish (#39336)

  6. potiuk
    added this to the Airflow 2.10.5 milestone on Jan 6, 2025
  7. asemelianov commented on Jan 7, 2025

    @asemelianov
    asemelianov
    on Jan 7, 2025
    Author
    More actions

    @javier-salazar-zefr @potiuk thanks!

  8. dstandish commented on Jan 7, 2025

    @dstandish
    dstandish
    on Jan 7, 2025
    Contributor
    More actions

    This issue (i.e. the one reported by @asemelianov ) does not seem try number related. The reported issue is after task completion, the logs are temporarily absent. This is not terribly surprising because while the task is running, airlfow will read logs from the worker. Then, when task done, the logs are uploaded to blob storage (most commonly) and then the webserver will have to read from there instead. There were other recent meddlings with this area of code, i.e. dealing with scenarios when the logs are not found on worker, and that also could change this behavior.

    I'm not quite clear on the scenario from @javier-salazar-zefr but it may warrant a separate issue with more detailed explanation.

  9. Jorricks commented on Jan 14, 2025

    @Jorricks
    Jorricks
    on Jan 14, 2025
    Contributor
    More actions

    I think this might be unrelated to the issue posted here, but decided to reply here as #39336 was mentioned as a potential issue here. I think the try_number is actually correct except in a very specific case;

    We just did the Airflow upgrade of 2.3.4 to 2.10.4. Usually, we are very strict on turning of all components during any sort of maintenance, this time we were a bit more Yolo (as it was our beta environment). The only preparation was setting some pools to 0, leading to quite some tasks being queued in the pools.

    We found out that the tasks that were queued before the upgrade were uploading logs to try_number=0. This checks out with the change regarding the try_number; #39336. This is because previously with Airflow 2.3.4 we'd increment the version in the workers, now with 2.10.4 we increment it in the scheduler. For the tasks that were queued with 2.3.4, but executed on celery workers of 2.10.4, they never got an incremented try_number.

    We were actually very impressed with the upgrade as we left some 2.3.4 workers on (on k8s in terminating state) that were still finishing some tasks, and even during the DB upgrade & after the DB upgrade, the jobs they were executing finished fine and were marked in the DB as a success.

    TLDR; we only had issues with the ones that are scheduled with <2.10 and executed with celery workers >=2.10, as we could not fetch their logs.

  10. utkarsharma2
    modified the milestones: Airflow 2.10.5, This milestone has been deleted on Feb 10, 2025
  11. karenbraganz
    removed
    needs-triagelabel for new issues that we didn't triage yet
    on Apr 10, 2025
  12. kaxil
    modified the milestones: This milestone has been deleted, Airflow 2.11.0 on Apr 29, 2025
  13. eladkal commented on Jan 13, 2026

    @eladkal
    eladkal
    on Jan 13, 2026
    Contributor
    More actions

    I'm closing this one as reported on Airflow 2.10.
    If anyone experience similar problem on latest Airflow version please open a new issue and we will look into it.

  14. eladkal
    closed this as completedon Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIRelated to UI/UX. For Frontend Developers.area:helm-chartAirflow Helm Chartarea:loggingkind:bugThis is a clearly a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.