Homestead: Include time syncing

Created on 16 Feb 2017  路  4Comments  路  Source: laravel/homestead

I've had it happen a couple of times where the virtual machine has gotten 5-15 minutes behind time and as a result things like OAuth fails because it checks token times.

To get around it I have installed ntp and run

sudo ntpdate time.nist.gov

That seems to solve it. If the homestead box by default had ntp installed and synced the time that would help.

Thanks.

In Progress Needs PFixing help wanted

Most helpful comment

All 4 comments

Thanks, I'll get this added to https://github.com/laravel/settler

Looks like default Ubuntu ntp conf should be fine for what we need?

# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
pool 0.ubuntu.pool.ntp.org iburst
pool 1.ubuntu.pool.ntp.org iburst
pool 2.ubuntu.pool.ntp.org iburst
pool 3.ubuntu.pool.ntp.org iburst

# Use Ubuntu's ntp server as a fallback.
pool ntp.ubuntu.com

Awesome!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

teleclimber picture teleclimber  路  3Comments

leandroruel picture leandroruel  路  4Comments

mattmcdonald-uk picture mattmcdonald-uk  路  3Comments

svpernova09 picture svpernova09  路  3Comments

Modelizer picture Modelizer  路  5Comments