Changed config from stop to auto_stop_machines = “suspend”. Was excited. App start time is fast now but noticed when app is restored from suspended state logging in gives “nbf” claim timestamp check failed error. This typically means there is timestamp skew between client and server. Switching back to stop eliminates this.
Hi… The auto-suspend feature is exciting, , but it’s also considered a little experimental (last I heard). The problems it causes with clock skew is one of the caveats that was mentioned when it was first released:
When resumed, your Machine may take a few seconds to update its clock, so for the first few seconds it will think that it’s in the past.
Work-arounds were discussed in the forum a couple months ago—but personally I would stick with stop in security-sensitive contexts for now.
Hi @jackoffer, we implemented a fix for the issue with temporary timestamp skew upon resuming a suspended Machine, the system clock is now synchronized immediately on resume. You may need to re-deploy your Machine in order for the updated code to take effect. Let me know if this resolves your issue!
This is the difference between the system time within the Machine (the timestamp to the left of the minus sign) and the time reported by the PTP device (which comes from the host’s own clock, ultimately).
(Times are rounded to the nearest second, for display porpoises—which is why you can see both +0 and -0.)
As a sanity check, PTP coincides nicely with the time on the client: