Skip to content

Unable to login because of timezone error #44407

Discussion options

You must be logged in to vote

Thanks everyone. I got success in fixing and would like to share the complete fix.

There were few things that I did in my Docker container.
[1]

RUN set -eux \
        && rm -f /etc/localtime  \
        && ln -s /usr/share/zoneinfo/UTC /etc/localtime

This was the suggestion above, and made sure that the '/etc/localtime' is not mapped to '/usr/share/zoneinfo//UTC' (note the double //). This in itself did not solve the issue.

[2] I found that even when the correct timezone was mentioned in airflow.conf, the settings were not being passed in tz library and it still ended with /UTC. So, I had to add this line as well.

ENV TZ=America/Chicago

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sandeepkalra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug area:webserver Webserver related Issues area:core area:UI Related to UI/UX. For Frontend Developers. needs-triage label for new issues that we didn't triage yet
3 participants
Converted from issue

This discussion was converted from issue #43973 on November 27, 2024 02:09.