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
질문됨 일 년 전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
전문가
답변함 일 년 전
  • 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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인