Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastCGI error: Stream got blocked, or terminated #188

Closed
baijingqi opened this issue Jul 28, 2021 · 5 comments
Closed

FastCGI error: Stream got blocked, or terminated #188

baijingqi opened this issue Jul 28, 2021 · 5 comments

Comments

@baijingqi
Copy link

Today when i cleared opcode, i got this error:

image

The command I runed is " /usr/local/php-fpm/bin/php cachetool.phar opcache:reset". I never seen this error before. after I built again , the error disappeared.

This is my php environment info:
image

I don't know what happened , could you explain it to me ? thanks a lot

@gordalina
Copy link
Owner

The error seems to be related to the connection being terminated. Are you restarting php-fpm? Can you post more information about what you are doing and in the steps involved?

@baijingqi
Copy link
Author

I'sorry that i don't have more info. the first picture recorded what Jenkins consoled out when building project. I'm sure it is impossible that someone restarted php-fpm at that time . If I see this error again , i will record more info and tell you . thanks .

@andyexeter
Copy link

We've been seeing this issue intermittently during deployments.

Our deployment script runs the following after updating a web app's document root symlink:

cachetool opcache:reset --fcgi=/run/php-fpm/www.sock

I'd say something like 1 time out of every 10, the follow error is thrown:

  In FastCGI.php line 143:                                                       
                                                                                 
    FastCGI error: Stream got blocked, or terminated. (/run/php-fpm/www.sock)    
                                                                                 
                                                                                 
  In Socket.php line 553:                                                        
                                                                                 
    Stream got blocked, or terminated.

PHP and CacheTool versions are:

[root@srv-php1 ~]# php -v
PHP 7.4.23 (cli) (built: Sep 17 2021 14:35:44) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.23, Copyright (c), by Zend Technologies
[root@srv-php1 ~]# cachetool --version
CacheTool 6.1.1

I'll try updating CacheTool to the latest version and report back if it happens again.

@futureisrise
Copy link

Still have same issue with such config

[www]
user = www-data
group = www-data

listen = /run/php/php7.4-fpm.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0666

@baijingqi
Copy link
Author

baijingqi commented Dec 31, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants