I'm work on an apache2 server (nginx) and for some reason the respond times have been very long. It can take up to 30Sec to get a respond from the server.
I have check the PHP code and also added a timer to it so it can’t be the code. I have also created a very simple dummy file but the delay is still there.
I have also restarted all services but the problem is still there.
I keep seeing the following Errors in the error-log and suspecting that it might be related to a session problem:
[Sun Oct 06 16:50:03 2013] [error] [client 69.201.188.61] [mod_spdy/0.9.4.1-397] [32734:32734:ERROR:spdy_session.cc(304)] Session error: INVALID_CONTROL_FRAME
[Sun Oct 06 15:32:13 2013] [error] [client 84.168.213.116] [mod_spdy/0.9.4.1-397] [18811:18811:ERROR:apache_spdy_session_io.cc(88)] ap_get_brigade failed with status 104: Connection reset by peer
I Googled these error logs but couldn’t really find anything.
Any suggestions?
Thank you for your help
Related
I'm deploying a web server, and the server is running bitnami. When I try to upload a file to the server, it returns 400 errors, bad request. I read the error log of bitnami (because the code works on another server) and It has the following message:
[Wed Feb 10 15:11:33.103754 2021] [proxy_fcgi:error] [pid 10113:tid 140226278139648] (11)Resource temporarily unavailable: [client xxxxxxxx:64905] AH01075: Error dispatching request to : (reading input brigade), referer: http://xxxxxxx/test.php
I have verified the limit to upload, timely execution, php.ini, etc. And I search for information about the error but I can't find information about it. What do the reasons maybe? Thank you for your comments
question is pretty simple even if not so obvious.
I managing a website that's showing issues with connection timeout, making the web service unaccessible and not working properly when it happens.
The actual environment is WooCommerce on a self-managed secured VPS.
php7, php-fpm, wordpress 5.+, apache2, mysql, cPanel, centOs
For a couple of time the site became unreachable showing Connection Timeout error, even if all services was up and running.
How to track or log requests originating the connection timeout error?
For example, with an application ran on the server that:
log every requests that occurs with more than 30 seconds execution time
the moment of the request
the request URL.
Any software, wordpress, cPanel extension or service in order to detect the issue?
I get the solution in matter of detecting the situation when it happens.
The key information can be found in PHP-FPM log (deducted that by the fact that restarting PHP-FPM and not Apache2 was solving the problem, due to a probable PHP-FPM thread appended).
i.e., in a cPanel enviroment you would find the log at the path:
/opt/cpanel/ea-php$$/root/usr/var/log/php-fpm/error.log
In the file the following lines are noteful:
[Tue Jul 16 09:55:30.677693 2019] [proxy_fcgi:error] [pid 17283] (70007)The timeout specified has expired: [client 162.158.91.192:16946] AH01075: Error dispatching request to : (polling), referer: https://www.example.com/my-resource.php
[Tue Jul 16 10:00:30.738947 2019] [proxy_fcgi:error] [pid 17283] (70007)The timeout specified has expired: [client 162.158.91.192:16946] AH01075: Error dispatching request to : (polling), referer: https://www.example.com/my-resource.php
So I've been able to inspect the shown resource and replicate and solve the issue.
My WP installation generates a Internal Error 500 every time I activate the BuddyPress plugin.
This is the actual error:
[Sat Mar 28 19:12:28.102868 2015] [fastcgi:error] [pid 10447] (104)Connection reset by peer: [client 192.168.1.1:55431] FastCGI: comm with server "/var/www/clients/client1/web4/cgi-bin/php5-fcgi-*-80-site.eu" aborted: read failed, referer: http://site.eu/wp-admin/update.php?action=install-plugin&plugin=buddypress&_wpnonce=54e15a2310
[Sat Mar 28 19:12:28.103055 2015] [fastcgi:error] [pid 10447] [client 192.168.1.1:55431] FastCGI: incomplete headers (0 bytes) received from server "/var/www/clients/client1/web4/cgi-bin/php5-fcgi-*-80-site.eu", referer: http://site.eu/wp-admin/update.php?action=install-plugin&plugin=buddypress&_wpnonce=54e15a2310`
How should I solve that?
P.S. The strange thing is that before, when the server was running Ubuntu 12, I had no troubles activating and using BuddyPress. Then something possessed me and I decided to upgrade the OS to 14.04 and as a result the site became inaccessible. Finally, I figured that it was BuddyPress that was causing the issue, removed it from the plugins folder and the site went back to working. Now every time I try to re-add BP, I get the error above.
According to this post, installing this plugins cause the fcgi process for PHP to hit its memory limit or execution time limit, preventing it to properly finish.
This is a problem that has been occurring a few times a week for the last 12 months but it never used to last for longer than an hour maximum, sometimes a lot less. This time however, it has been showing for nearly 18 hours so clearly it's not going to go away on it's own this time. I've done the usual google search and also checked similar questions on here but nothing gave me a solution.
I have hosting with HostPapa and the error log within cPanel doesn't help me either. It normally just says that a file called robots.txt cannot be found and it also can't find a 404.shtml file. At this moment in time, the error log is completely empty, even if I try to visit the site beforehand.
Best theories I heard was either Wrong Permissions and/or disabling Zend Guard?
[Fri Sep 26 15:54:05 2014] [error] [client 62.24.222.132] File does not exist: /home/tmsth125/public_html/robots.txt, referer: http://tmsthermalstore.com/robots.txt
[Fri Sep 26 15:53:56 2014] [error] [client 62.24.222.131] File does not exist: /home/tmsth125/public_html/404.shtml, referer: http://tmsthermalstore.com/helloworld.php
[Fri Sep 26 15:53:56 2014] [error] [client 62.24.222.131] File does not exist: /home/tmsth125/public_html/helloworld.php, referer: http://tmsthermalstore.com/helloworld.php
After contacting Customer Support via Live Chat, they fixed the issue and confirmed it was related to permissions in the php.ini file.
First of all, thank you for your time in reading this :)
I am managing a server which runs apache2 and mod_fcgi which host a few sites via Virtual Hosts. Some sites are straight PHP, the others are all WordPress. The WordPress sites are all functioning great, however, any other site throws up a 500 Internal Server Error when you try to access them.
If you navigate to a non-php file on the web directory (like an image) it will display, but any .php file throws up this error.
The Apache2 error log shows nothing.
When I tail the error log of the site, I get this:
[Wed May 22 15:12:15 2013] [warn] [client x.x.x.x] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Wed May 22 15:12:15 2013] [error] [client x.x.x.x] Premature end of script headers: php-fcgi-wrapper
[Wed May 22 15:12:15 2013] [debug] mod_deflate.c(615): [client x.x.x.x] Zlib: Compressed 612 to 377 : URL /fcgi-bin/php-fcgi-wrapper/index.php
The root of the website is located in /var/www/site1/
I have quadrouple-checked my permissions and ownerships.
I have increased more memory for PHP.
I tried looking at the php.log file, but nothing is being written.
Can anyone point anything else out that could be causing this?
Thank you!
I don't have the time at the moment to back up my cgi-conflict suggestion, but it occurred to me that you may be using php short tags, when the server doesn't allow it. Wordpress I believe uses full open tags which would explain why it works.
Instead of using:
<? //some php code
?>
Try:
<?php //some php code
?>
Are you using short tags? This could be your issue.