Friday, September 26, 2014

Xamarin Error 429 - clocks not synced

I am building out a disconnected network for our VS/Xamarin iOS build environment. 

Problem:
I have successfully paired the Mac and Windows boxes on our local network.  I noted that there is a discrepancy in the clocks between the two machines.  How to fix this problem.

Solution:
Make your Mac the time server

  1. Unload the current npd daemon.
    • sudo launchctl unload /System/Library/LaunchDaemons/org.ntp.ntpd.plist 
  2. Edit the ntp-restrict.conf
    • /etc/ntp-restrict.conf
    • Remove the “noquery” from the 1st two restrict lines:
  3. Now load the npd file again
    • sudo launchctl load /System/Library/LaunchDaemons/org.ntp.ntpd.plist
  4. Test npd to ensure it is running
    • sudo ntpdate -u localhost
On your Windows PC
  1. Open Date and Time Dialog
  2. Select the Internet time tab
  3. Change Settings
  4. Select Synchronize with and Internet time server.
  5. Place the IP Address of the Mac you are using as the time server (192.168.0.100) in the Server block
  6. Update Now
  7. OK
Now
  1. Open up command window as admin
  2. type in command: w32tm /config /manualpeerlist:192.168.0.100 /syncfromflags:MANUAL
 Now the windows box will sync its time with the Mac box and should not have the 429 errors any longer.


Source
http://macmule.com/2013/12/15/how-to-use-osx-server-as-a-time-server/

No comments:

Post a Comment