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
gefragt vor einem Jahr311 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor einem Jahr
  • 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

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen