Got the same problem The problem was with spawn-fcgi(custom build from scratch) , after reinstalling it from distribution everything works just fine.