So I've written a sync function using the low level sdk calls and I'm getting errors sometimes. not always, it seems to be after its been syncing for aroun 20 or 30 mins. I'm uploading about 30gb of data so it takes a while. If i do it in a linear fashion its okay, but I'm running it in a big Parallel.For loop. Anyway, here is the error:
`
Amazon.S3.AmazonS3Exception: The difference between the request time and the current time is too large. ---> Amazon.Runtime.Internal.HttpErrorResponseException: The remote server returned an error: (403) Forbidden. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0
at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x0000f] in <eae584ce26bc40229c1b1aa476bfa589>:0
`
I thought at first that perhaps some of the files were timing out or something but from reading into the error it looks like its a syncing issue. I found this documentation: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/windows-set-time.html#windows-configuring-ntp which gives advice on how to configure NTP on widows using w32tm. I have no idea what any of this means but it seems to be a way to keep the time in sync which I would assume fixes my error. I've followed the configuration step w32tm /config /manualpeerlist:169.254.169.123 /syncfromflags:manual /update
and started Windows Time
in the Services window.
I'm still getting the error when uploading, and when I run w32tm /query /source
I get this response:
"Local CMOS Clock".
Help I'm very confuse