History always repeats itself and sometimes that's good. Here's a second chance to be part of it: tmdtc.com

Thursday 19 November 2009

About Virtualbox, S3, time drift, 403 reponses

I was working on the FileAttachment code of myowndb.com in a virtualbox debian guest, when all request sent to S3 got the 403 Access Forbidden reponse, even code that was working fine in production. The good thing was that the production server still worked flawlessly, but I really asked myself what I had changed to break my code.

After checking my credentials, the code, trying with S3cmd and getting the same problem, I found a forum thread where having the wrong time could cause that problem.

And that was indeed the problem! My time had drifted 15 minutes, so I was sending out request with a timestamp in the future.... An ntpdate later, everything was working fine. Phew!....

No comments: