Skip to content

Instantly share code, notes, and snippets.

@tjstein
Created Apr 1, 2011
Embed
What would you like to do?
wtf
root@thestartupcafe:/etc/nginx/sites-available# strace -s 128 -p 23999
Process 23999 attached - interrupt to quit
epoll_wait(6, {{EPOLLIN, {u32=245678976, u64=245678976}}}, 512, 4294967295) = 1
accept4(8, {sa_family=AF_INET, sin_port=htons(56494), sin_addr=inet_addr("72.10.62.12")}, [16], SOCK_NONBLOCK) = 3
epoll_ctl(6, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLET, {u32=245679329, u64=245679329}}) = 0
epoll_wait(6, {{EPOLLIN, {u32=245679329, u64=245679329}}}, 512, 60000) = 1
recvfrom(3, "GET / HTTP/1.1\r\nHost: thestartupcafe.com\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefo"..., 1024, 0, NULL, NULL) = 954
stat("/var/www/thestartupcafe.com/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/var/www/thestartupcafe.com/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/var/www/thestartupcafe.com/index.php", {st_mode=S_IFREG|0644, st_size=397, ...}) = 0
epoll_ctl(6, EPOLL_CTL_MOD, 3, {EPOLLIN|EPOLLOUT|EPOLLET, {u32=245679329, u64=245679329}}) = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("205.186.144.180")}, [16]) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 4
ioctl(4, FIONBIO, [1]) = 0
epoll_ctl(6, EPOLL_CTL_ADD, 4, {EPOLLIN|EPOLLOUT|EPOLLET, {u32=245679505, u64=245679505}}) = 0
connect(4, {sa_family=AF_FILE, path="/var/run/php5-fpm.sock"}, 110) = 0
getsockopt(4, SOL_SOCKET, SO_ERROR, [1054427218630934528], [4]) = 0
writev(4, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\5C\5\0\f\0QUERY_STRING\16\3REQUEST_METHODGET\f\0CONTENT_TYPE\16\0CONTENT_LENGTH\v\nSCRIPT_NAME/index.php\v\1REQUEST_URI/\f\nDO"..., 1392}], 1) = 1392
epoll_wait(6, {{EPOLLOUT, {u32=245679505, u64=245679505}}, {EPOLLOUT, {u32=245679329, u64=245679329}}}, 512, 60000) = 2
recvfrom(3, 0x7fffd2189d7f, 1, 2, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
epoll_wait(6, {{EPOLLIN|EPOLLOUT, {u32=245679505, u64=245679505}}}, 512, 59999) = 1
recvfrom(4, "\1\6\0\1\0E\3\0X-Powered-By: PHP/5.3.3-8ubuntu12~lucid1\r\nContent-type: text/html\r\n\r\n\0\0\0\1\3\0\1\0\10\0\0\0\0\0\0\0ef=", 4096, 0, NULL, NULL) = 96
readv(4, [{"8\220\235\16\0\0\0\0\4\0\0\0\0\0\0\0H\222\235\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0P\226\235\16\0\0\0\0\1\0\0\0\0\0\0\0\270\0\0\0\0\0\0\0\n\0\0\0\0\0\0\0\320\217\235\16\0\0\0\0\370\221\235\16\0\0\0\0"..., 4000}], 1) = 0
close(4) = 0
writev(3, [{"HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Fri, 01 Apr 2011 00:12:13 GMT\r\nContent-Type: text/html; charset=UTF-8\r\nTransfer-Encoding: "..., 252}, {"14\r\n", 4}, {"\37\213\10\0\0\0\0\0\0\3", 10}, {"\3\0\0\0\0\0\0\0\0\0", 10}, {"\r\n0\r\n\r\n", 7}], 5) = 283
write(12, "72.10.62.12 - - [31/Mar/2011:17:12:13 -0700] \"GET / HTTP/1.1\" 200 31 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) G"..., 155) = 155
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
recvfrom(3, 0xea2a3f0, 1024, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
epoll_wait(6, <unfinished ...>
Process 23999 detached
@tjstein
Copy link
Author

tjstein commented Apr 1, 2011

2011/03/31 16:41:01 [crit] 21828#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 72.10.62.12, server: thestartupcafe.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "thestartupcafe.com"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment