Greengrass log showing different log time 2 hours in front of what the system time is

0

Why is my GG logs showing time difference of 2 hours than my system time. I have NTPD service setup that sets the time to local timezone, but when greengrass service starts, the greengrass.log (as well as all the other component logs) are showing 2 hours ahead.

Sash
已提问 1 年前311 查看次数
1 回答
0

If you're running Greengrass in a Docker container, be aware that Docker containers often default to UTC, regardless of the host system's time zone. If this is the case, you can set the timezone for your Docker container explicitly.

also, some other services can use UTC by default like Sitewise, SDK + Cron jobs so please check all the relevant services related to your logging and check the default timezones.

https://docs.aws.amazon.com/iot-sitewise/latest/userguide/metrics.html

profile picture
专家
已回答 1 年前
  • We are not using SiteWise, only the core IoT services and Greengrass. We are also not running GG on docker container on the device. How can I set default timezone for Greengrass, if the default timezone and the NTP sync is on the local time. (in our case, Australia/Melbourne)?

    I am just a little confused how a process (greengrass / nucleus) that inherits the OS' time settings, has a different time on the logs.

    The issue that I am facing (or at least, I think that I may be facing), is:

    com.aws.greengrass.deployment.exceptions.AWSIotException: Unable to get response .... .... Caused by: javax.net.ssl.SSLException: Connection reset

    and it may be due to the difference in the time.

  • Greengrass logs are always UTC time, this is not configurable. You can tell it is UTC because the time ends with Z

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则