Thread
#prefect-server
    Raúl Mansilla

    Raúl Mansilla

    9 months ago
    Hello all, I´m facing an issue that I´m not able to fix easily…RuntimeError: Unable to find any timezone configuration
    Anna Geller

    Anna Geller

    9 months ago
    I believe you should be able to set your timezone the same way in Server:
    Raúl Mansilla

    Raúl Mansilla

    9 months ago
    I´m assuming it is happening inside the dask cluster. Dask scheduler and worker are running in alpine docker containers that have tzdata installed. I´ve checked in all the ec2 and containers and all of them are showing date accordingly. I´m not sure what else I can do for fixing this.
    Anna Geller

    Anna Geller

    9 months ago
    I think as long as you set it in the UI, this should adjust your timezone in the backend. LMK if that’s not the case
    Raúl Mansilla

    Raúl Mansilla

    9 months ago
    I think I can´t in my prefect server ui
    Kevin Kho

    Kevin Kho

    9 months ago
    I have encountered this for non-Prefect related stuff. I don’t know when it happens but it can be fixed by adding the TZ env variable globally in the container. Or you can do it through a Python script:
    os.environ['TZ'] = 'Europe/London'
    Link
    Raúl Mansilla

    Raúl Mansilla

    9 months ago
    mmm let me check that out!
    Kevin Kho

    Kevin Kho

    9 months ago
    Basically all of the time-based libraries will look for the default timezone of the system and in this case they are unable to
    You can install tzdata also like mentioned
    Raúl Mansilla

    Raúl Mansilla

    9 months ago
    yep, it is already installed
    I´m going to try to set it during container creation
    just by doing this inside worker container fix the issue ->
    cp /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone
    Kevin Kho

    Kevin Kho

    9 months ago
    That would be nice to comment in this issue. Do you want me to?
    Raúl Mansilla

    Raúl Mansilla

    9 months ago
    this is only for alpine based containers, for container should be ->
    ENV TZ UTC
    RUN cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
    I can do it! no problem
    Kevin Kho

    Kevin Kho

    9 months ago
    Thank you!
    Raúl Mansilla

    Raúl Mansilla

    9 months ago
    Thanks to you too!