Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

February 03 2010

maracuja
15:19
maracuja
11:24

February 02 2010

maracuja
18:05
maracuja
10:52
maracuja
10:20
maracuja
10:20

January 27 2010

maracuja
19:26
maracuja
15:19
Play fullscreen
Truckers delight

January 15 2010

maracuja
16:10
Play fullscreen
Olbermann Slams Limbaugh And Robertson For Sick Comments

January 12 2010

maracuja
14:52
Play fullscreen
Mistabishi - Printer Jam
maracuja
13:56

January 08 2010

maracuja
23:45
Play fullscreen
The Space Raiders
maracuja
14:21
maracuja
10:33

January 06 2010

maracuja
11:27

php curl s3 tarzan select/poll returning error

ok for the last couple of days i've been blighted by an odd error that is affecting the staging server of one of my sites. i've been using the awesome AWS framework Tarzan to send files to S3 and everything was running fine up to christmas. i left for the christmas break and had a great time etc, but came back and the site no longer worked.

after much searching and debugging i finally tracked the problem down to curl producing this error "select/poll returning error". not tremendously helpful and no response seemed to be coming back either which really puzzled me*. thing is the code worked absolutely fine on my local machine.

anyway fruitless google searches, i decided to download the latest version of tarzan and just test a file upload in isolation on the staging server. what a good idea THAT was. it immediately gave me a skewed time error, which as it turns out, was the problem causing the uploads to fail.

the system time on my staging server had become 15 minutes out of sync with amazon's server time. as soon as i update my server's time to The Actual Time™ my uploads started working again.

Now I don't my server to lose track of time again so I did a little research found out about a neat wee app that keeps time for you called NTP and here's how you install it ...

$ sudo yum install ntp
$ sudo /usr/sbin/ntpdate pool.ntp.org
$ sudo /sbin/service ntpd start

i'm going to go and relax with a coffee now

* when i use words like puzzled or tricky, what i mean is i was screaming, shouting and throwing things across the room in a primeval rage

January 05 2010

maracuja
23:10
Play fullscreen
Critical Thinking

January 02 2010

maracuja
13:00

December 30 2009

maracuja
23:37
maracuja
23:36
maracuja
23:36
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.