phalcon Invo用户validation返回recv()失败(104:由对等方重置连接)

在注册页面; 1-点击事件首先去我的用户模型和检查validation`

$validator = new Validation(); $validator->add( 'email', new EmailValidator([ 'message' => 'Invalid email given' ])); $validator->add( 'email', new UniquenessValidator([ 'message' => 'Sorry, The email was registered by another user' ])); $validator->add( 'username', new UniquenessValidator([ 'message' => 'Sorry, That username is already taken' ])); // until this point there is no problem but after return side return $this->validate($validator); }` 

2-直到返回; 没有问题,但在返回给我这个错误。

当读取来自上游的响应报头,客户端:192.168.176.1,server:localhost,request:“POST / register HTTP / 1.1”时,recv()失败(104: ,上游:“fastcgi://192.168.176.3:9000”,主机:“phalcon.dev”,引用者:“ http://phalcon.dev/register ”

我正在使用泊坞窗,这是我的docker

 version: '2' services: ################################################################ db: image: mysql:latest container_name: mysql expose: - 3306 ports: - "3307:3306" volumes: - ./docker/mysql:/var/lib/mysql environment: MYSQL_DATABASE: invo MYSQL_USER: test MYSQL_PASSWORD: test123 MYSQL_ROOT_PASSWORD: admin123 ################################################################ app: build: ./docker/php/ container_name: php tty: true # ports: # - "6900:6900" volumes: - ./docker/nginxlog:/var/log/nginx - ./invo:/var/www/html ################################################################ web: tty: true image: linxlad/nginx container_name: nginx ports: - "80:80" volumes: - ./docker/nginx:/etc/nginx/conf.d - ./docker/nginx/selfconf/nginx.conf:/etc/nginx/nginx.conf - ./docker/nginxlog:/var/log/nginx - ./invo:/var/www/html links: - app depends_on: - app 

看起来问题可能是FastCGI和Nginx之间的问题

我build议:

 - check your fastcgi_process / server - check your access-log - enable debug-log 

你是否也启用opcache? 如果是这样,将memory_consumption增加到您的网站需要的任何级别。 禁用opcache也可能工作。

 # .../fpm/php.ini [opcache] opcache.memory_consumption = 392 

你也应该从你的php / nginx日志中挖掘,这可能会帮助你指出你现在面临的真正的问题。