Post by MarcPinnell » Tue Mar 20, 2018 8:59 am

Using OC 3.02 with cPanel Linux hosting running Apache 2.4. I am getting somewhat random the "client denied" error message shown below. The logs are full of them. They occur mainly when you are trying to add an item to the cart. I have verified permissions are all set to 755/644. This store went live in the last week and that's when the errors started. It might have popped up once or twice on the dev server (same config), but with all the testing I didn't pay attention to it because it was so infrequent. Now it is potentially holding up sales.

Customer claims that a typical weekend would have seen 10-20 orders. They had 4 this past weekend. They are convinced this is the problem - even though we can't get it to happen consistently.

Site: https://creativemathematics.com

This is what I see in my cPanel error log. Giving you a big chunk so you can see it happens repeatedly (check the time stamps) when trying to add to cart. This most recent one was me testing and I only clicked the button once:

Code: Select all

[Mon Mar 19 17:46:09.606436 2018] [:error] [pid 30650] [client 69.10.160.3:58329] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 17:46:09.548062 2018] [:error] [pid 30937] [client 69.10.160.3:58297] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 17:46:08.790724 2018] [:error] [pid 30711] [client 69.10.160.3:58295] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 17:46:08.229584 2018] [:error] [pid 30937] [client 69.10.160.3:58297] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 17:46:07.841118 2018] [:error] [pid 30717] [client 69.10.160.3:58326] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 17:46:07.797596 2018] [:error] [pid 30711] [client 69.10.160.3:58295] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 17:46:07.375331 2018] [:error] [pid 30937] [client 69.10.160.3:58297] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 17:46:06.896477 2018] [:error] [pid 30711] [client 69.10.160.3:58295] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 17:46:06.351677 2018] [:error] [pid 30937] [client 69.10.160.3:58297] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 17:46:06.099109 2018] [:error] [pid 30711] [client 69.10.160.3:58295] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 17:46:05.275164 2018] [:error] [pid 30711] [client 69.10.160.3:58295] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 15:55:58.958800 2018] [:error] [pid 14125] [client 70.231.224.143:55107] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=checkout/checkout
[Mon Mar 19 15:55:16.746553 2018] [:error] [pid 13904] [client 70.231.224.143:55101] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=checkout/checkout
[Mon Mar 19 15:52:32.943275 2018] [:error] [pid 13758] [client 70.231.224.143:55091] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=checkout/checkout
[Mon Mar 19 14:49:13.965184 2018] [:error] [pid 5973] [client 69.10.160.3:55769] client denied by server configuration: /home/creativemathemat/public_html/admin/index.php, referer: https://creativemathematics.com/admin/index.php?route=marketplace/installer&user_token=95mp08tFmNlGDAYfl1kf8zXxVbAxLwSD
[Mon Mar 19 14:35:04.806985 2018] [:error] [pid 4298] [client 69.10.160.3:55583] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 14:35:03.850061 2018] [:error] [pid 4298] [client 69.10.160.3:55583] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 14:35:02.973470 2018] [:error] [pid 4298] [client 69.10.160.3:55583] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
[Mon Mar 19 14:35:02.389478 2018] [:error] [pid 4298] [client 69.10.160.3:55583] client denied by server configuration: /home/creativemathemat/public_html/index.php, referer: https://creativemathematics.com/index.php?route=product/product&product_id=324&search=BC&category_id=60&sort=p.mpn
This pops up in a box on the product page when you click "add to cart" (only first part, it's basically a full page that isn't rendering):

Code: Select all

Not Found
Not Found
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="ltr" lang="en" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="en" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="ltr" lang="en">
<!--<![endif]-->
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>The page you requested cannot be found!</title>
		<base href="https://creativemathematics.com/" />
						<script src="https://creativemathematics.com/catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
		<link href="https://creativemathematics.com/catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
		<script src="https://creativemathematics.com/catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
		<link href="https://creativemathemati
I've googled a bunch and tried everything I could get my hands on that related to OC, but many of the posts are out of date.

Why is it pulling the index.php file so many times? Why at all really? Suggestions for fixes? Is this an htaccess problem?

Need to get this fixed ASAP before they hang me!!!

TIA

New member

Posts

Joined
Wed Jul 26, 2017 1:12 am

Post by IP_CAM » Tue Mar 20, 2018 11:32 am

Well, this -client denied by server configuration- Information has nothing really
to do with OpenCart, as long as you have no specific .htaccess Content, disallowing
certain IP-Ranges from accessing this Site, like:

Code: Select all

<Files *>
order allow,deny
allow from all
deny from 2.228.
deny from 5.101.
deny from 5.133.
deny from 5.189.
You should therefore better contact the Hoster, to find out, if+why
he's frequently and obviously blocking the referrer 69.10.160.3. xxx.
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by MarcPinnell » Tue Mar 20, 2018 9:10 pm

The funny part (or maybe not so funny part) is that I am the host! :) There isn't anything I can think of that should be causing that in the hosting. I haven't see that before in any of the other 400+ sites that we host - however, this is the first OpenCart install on our servers.

All I can find in the htaccess that is similar to what you reference is this section:

Code: Select all

<FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
	Require all denied
</FilesMatch>

New member

Posts

Joined
Wed Jul 26, 2017 1:12 am

Post by MarcPinnell » Wed Mar 21, 2018 2:07 am

For those that might come across this page in the future...

What I ultimately discovered is that one of the extensions in use was making a horrendous number of calls to the server. Basically the extension was updating the price of the product (on the product page) based on the product options selected. This particular type of product was a workshop signup. So if you purchased a workshop for 3 people, 9 option fields were generated to be filled in (First, Last, email). Then as you started to fill out those fields, EVERY single keypress was creating a call back to the server to check to see if a price update was needed. Just adding a single attendee could generate 50 server calls within seconds of each other. The server was choking and couldn't answer fast enough, thereby creating the 404/server denied errors.

New member

Posts

Joined
Wed Jul 26, 2017 1:12 am

Post by IP_CAM » Wed Mar 21, 2018 5:08 am

Well, you just forgot, to add a Link to this Extension Page, so, others would be
able to make sure, not to add such Performance-Killers to their OC Software.
But this is not the only Routine, frequently keeping OC Pages from loading,
last week, by waiting for a product page to display, I realized, that the built-in:

Code: Select all

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style"><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a class="addthis_button_tweet"></a> <a class="addthis_button_pinterest_pinit"></a> <a class="addthis_counter addthis_pill_style"></a></div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-515eeaf54693130e"></script>
<!-- AddThis Button END --> 
Routine tried to get eBay to reply, and the page got stuck, until this connection
worked. This, regardless of, if this is switched on in Admin, or not...
So, better frequently test your Site by Use of GTmetrix.com, they'll tell you about such! ;)
Good Luck!
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by MarcPinnell » Wed Mar 21, 2018 9:06 am

One more update. The ultimate problem was found to be mod_evasive module in Apache 2.4. The defaults were set too low for the number of calls that OC was making. Doubled all the setting and problem disappeared immediately.

New member

Posts

Joined
Wed Jul 26, 2017 1:12 am
Who is online

Users browsing this forum: moreduff and 267 guests