I got this kind of Apache Proxy error in SSL_ERROR_LOG file.
[Mon Jul 18 11:03:52 2016] [error] [client [IPAddress]] (70007)The timeout specified has expired: proxy: error reading status line from remote server [serverIP]
[Mon Jul 18 11:03:52 2016] [error] [client [IPAddress]] proxy: Error reading from remote server returned by /project/webservice
[Mon Jul 18 11:12:53 2016] [error] [client [IPAddress]] (70007)The timeout specified has expired: proxy: error reading status line from remote server [serverIP]
[Mon Jul 18 11:12:53 2016] [error] [client [IPAddress]] proxy: Error reading from remote server returned by /project/webservice
[Mon Jul 18 11:15:53 2016] [error] [client [IPAddress]] (70007)The timeout specified has expired: proxy: error reading status line from remote server [serverIP]
[Mon Jul 18 11:15:53 2016] [error] [client [IPAddress]] proxy: Error reading from remote server returned by /project/webservice
Any idea for this kind of error? Client have to waits 3 minutes for a response before disconnecting forcibly. This error occurred after ssl certificate changed. We have updated certificate with SHA-1 to SHA-2 which is compatible with all browser.
Various timeouts have been observed and logged.
Check if SELinux is installed, if so then enable httpd using the below command -
sudo setsebool -P httpd_can_network_connect 1
Related
I successfully installed an SSL certificate from Let's Encrypt using certbot. My website seems to be running without any problem.
My server is Ubuntu 16.04 on Apache/2.4.18. I installed http2 module and it seems to work fine.
But, when I check my Apache error.log, I get tons of messages like these :
[Fri Sep 08 14:43:05.714366 2017] [http2:info] [pid 2129] (70007)The timeout specified has expired: [client 195.221.155.11:56932] AH02950: h2_session(6): error reading, terminating
[Fri Sep 08 14:44:35.424938 2017] [http2:info] [pid 1559] (70007)The timeout specified has expired: [client 178.149.169.177:35524] AH02950: h2_session(3): error reading, terminating
[Fri Sep 08 14:45:44.538785 2017] [http2:info] [pid 32149] (70007)The timeout specified has expired: [client 80.215.162.154:28341] AH02950: h2_session(20): error reading, terminating
[Fri Sep 08 14:48:43.594498 2017] [http2:info] [pid 1331] (70007)The timeout specified has expired: [client 90.28.109.155:51857] AH02950: h2_session(1): error reading, terminating
[Fri Sep 08 14:48:44.456602 2017] [http2:info] [pid 2129] (70007)The timeout specified has expired: [client 78.192.12.171:50312] AH02950: h2_session(6): error reading, terminating
[Fri Sep 08 14:49:04.443087 2017] [http2:info] [pid 2141] (70007)The timeout specified has expired: [client 178.50.64.162:27963] AH02950: h2_session(24): error reading, terminating
[Fri Sep 08 14:49:04.443166 2017] [http2:info] [pid 2631] (70007)The timeout specified has expired: [client 178.50.64.162:17882] AH02950: h2_session(26): error reading, terminating
[Fri Sep 08 14:50:28.678586 2017] [http2:info] [pid 2582] (70007)The timeout specified has expired: [client 37.18.174.227:16896] AH02950: h2_session(11): error reading, terminating
I've noticed that when I display any page of my website with my browser, the page displays well, but about 5 minutes after that I have this error message in the log.
Does anybody knows how to stop my error.log screaming like that ?
Upgrade Apache to a later version.
See this bug for example: https://github.com/icing/mod_h2/issues/72
There were a lot of changes to mod_http2 since 2.4.18 and it only dropped the "experimental" status in 2.4.26. See this answer for more details: https://serverfault.com/questions/840827/should-we-use-apaches-http2
I'm setting up NSS for my Apache server but I'm running into an error. I feel like this is a really easy fix that I'm overlooking.
Here's my Apache error log:
[Tue Mar 21 16:09:13 2017] [error] Password for slot internal is incorrect.
[Tue Mar 21 16:09:13 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
[Tue Mar 21 16:09:13 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
[Tue Mar 21 16:14:22 2017] [error] Password for slot internal is incorrect.
[Tue Mar 21 16:14:22 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
[Tue Mar 21 16:14:22 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
[Tue Mar 21 16:24:25 2017] [error] Password for slot internal is incorrect.
[Tue Mar 21 16:24:25 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
[Tue Mar 21 16:24:25 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
[Tue Mar 21 16:29:00 2017] [error] Password for slot internal is incorrect.
[Tue Mar 21 16:29:00 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
[Tue Mar 21 16:29:00 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
I checked apachectl -t, here is the output:
[Tue Mar 21 17:16:23 2017] [warn] module proxy_module is already loaded, skipping
[Tue Mar 21 17:16:23 2017] [warn] module proxy_http_module is already loaded, skipping
[Tue Mar 21 17:16:23 2017] [warn] module proxy_module is already loaded, skipping
[Tue Mar 21 17:16:23 2017] [warn] module proxy_http_module is already loaded, skipping
Syntax error on line 1 of /etc/apache2/conf.d/NSSPin.conf:
Invalid command 'token:password', perhaps misspelled or defined by a module not included in the server configuration
Here is my nss.conf file:
NSSPassPhraseDialog file:/etc/apache2/conf.d/NSSPin.txt
NSSPassPhraseHelper /usr/sbin/nss_pcache
I've tried multiple combinations of NSSPassPhraseDialog with file, exec, "password", password. In my /etc/apache2/conf.d/NSSPin.txt file (the file that NSSPassPhraseDialog is being linked to) I've tried "password", password, toke:password, token:"password", internal:password, internal:"password". I'm not really sure what else to do.
i want to run tile server
i configured by following this Link
When i try to access the http://myserver.domain/osm_tiles/0/0/0.png i'm getting the response as
Object not found!
When i see the apache log it says socket file is missing
tile_state: determined state of default 0 0 0 on store 7f05ba987d70: Tile size: -1, expired: 1 created: 0
[Thu Nov 06 16:15:59.396965 2014] [tile:debug] [pid 6334] ./src/mod_tile.c(166): [client 192.168.1.180:52068] Connecting to renderd on Unix socket /var/run/renderd/renderd.sock
[Thu Nov 06 16:15:59.397003 2014] [tile:warn] [pid 6334] [client 192.168.1.180:52068] socket connect failed for: /var/run/renderd/renderd.sock with reason: No such file or directory
[Thu Nov 06 16:15:59.397007 2014] [tile:notice] [pid 6334] [client 192.168.1.180:52068] Failed to connect to renderer
[Thu Nov 06 16:15:59.397010 2014] [tile:debug] [pid 6334] ./src/mod_tile.c(960): [client 192.168.1.180:52068] tile_storage_hook: Missing tile was not rendered in time. Returning File Not Found
What went wrong in the configuration..
I am using linux. I have installed webgrind for xdebug profiling of php code. I have made the proper changes in the httpd.conf etc.
when i am trying to connect from browser it says 500 Internal Server Error
I cant figure it out.
[Tue Feb 18 22:07:02 2014] [error] [client ::1] PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/share/webapps/webgrind/index.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/) in Unknown on line 0
[Tue Feb 18 22:07:02 2014] [error] [client ::1] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[Tue Feb 18 22:07:02 2014] [error] [client ::1] PHP Fatal error: Unknown: Failed opening required '/usr/share/webapps/webgrind/index.php' (include_path='.:/usr/share/pear') in Unknown on line 0
I have an error after updating my packages. When trying to start my webserver, it throws the following error.
$ sudo service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 84 of /etc/apache2/apache2.conf:
Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
And the Apache error log is (from file /var/log/apache2/error.log):
[Sat Aug 17 01:30:03 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.17RC1 configured -- resuming normal operations
[Sat Aug 17 01:41:38 2013] [notice] caught SIGTERM, shutting down
[Sat Aug 17 03:10:11.132425 2013] [mpm_prefork:notice] [pid 4182] AH00163: Apache/2.4.6 (Ubuntu) PHP/5.5.1-2+debphp.org~raring+2 configured -- resuming normal operations
[Sat Aug 17 03:10:11.143718 2013] [core:notice] [pid 4182] AH00094: Command line: '/usr/sbin/apache2'
[Sat Aug 17 03:13:56.527245 2013] [mpm_prefork:notice] [pid 4182] AH00169: caught SIGTERM, shutting down
What things do I have to do to recover or fix my server up?
Replace in apache2.conf:
LockFile /var/lock/apache2/accept.lock
with
Mutex file:${APACHE_LOCK_DIR} default
Actually, it is better to use a semaphore. Under Unix systems it is a lot faster and uses fewer resources.
And the option is just this:
Mutex sem