Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS image clock is off #4

Closed
dnfield opened this issue Feb 26, 2019 · 5 comments
Closed

macOS image clock is off #4

dnfield opened this issue Feb 26, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@dnfield
Copy link

dnfield commented Feb 26, 2019

I'm able to correct it like this:

  set_clock_script:
    - sudo sntp -sS pool.ntp.org
    - date # to print out the date and verify

Before adding this step, I was finding the clock to be off by well over an hour for the timezone it was set to. this messed up some JWT logic I was trying to enable. This might be as intended (if someone else on that machine changes the date manually), but just trying to verify.

@fkorotkov fkorotkov added the bug Something isn't working label Feb 26, 2019
@fkorotkov
Copy link
Contributor

Should be fixed now. Could you please try again

@fkorotkov
Copy link
Contributor

It was an unrelated to VM issue.

@dnfield
Copy link
Author

dnfield commented Feb 26, 2019

It seems to be working, but I'm not sure if that's because I added that script to my .cirrus.yml or not.

Do you think that is safe to remove now? Could some other user end up changing the clock on me?

@fkorotkov
Copy link
Contributor

@dnfield it's safe since I simply added sudo sntp -sS time.apple.com to the startup script. 😅Even though the VM has time auto syncing enabled, seems time sometimes drifts after VM gets from the suspended state into running. Anka VMs unlike Docker containers store memory snapshot as well as FS snapshot for quicker startup time.

@dnfield
Copy link
Author

dnfield commented Feb 26, 2019

Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants