flood protection - duplicate entry error
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexProblems AFTER Install/Upgrade
Author Message
SnoSheriff
Heavy poster


Joined: Mar 27, 2005
Posts: 174

PostPost subject: flood protection - duplicate entry error
Posted: Fri Mar 28, 2008 2:07 am
Reply with quote

Last night I upgraded to DF9.2.1. Today I got hundreds of emails similar to this one:

On /Your_Account.html
While executing query "INSERT INTO cpg_security_flood (flood_ip,flood_time,flood_count,log) VALUES (0x4430f21d, '1206658018', '0', DEFAULT)"

the following error occured: Duplicate entry 'D0�' for key 1

In: /home/mydomain/public_html/includes/classes/security.php on line: 308

_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: flood protection - duplicate entry error
Posted: Fri Mar 28, 2008 3:31 am
Reply with quote

I reported same as bug report 2 days ago - dragonflycms.org/Proje.../id=1039/.

In the interests of trying to narrow this down: what version of DF did you upgrade from?

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
SnoSheriff
Heavy poster


Joined: Mar 27, 2005
Posts: 174

PostPost subject: Re: flood protection - duplicate entry error
Posted: Fri Mar 28, 2008 3:55 am
Reply with quote

I moved from 9.0.6.1
_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1
Back to top
View user's profile Visit poster's website
SnoSheriff
Heavy poster


Joined: Mar 27, 2005
Posts: 174

PostPost subject: Re: flood protection - duplicate entry error
Posted: Fri Mar 28, 2008 4:21 am
Reply with quote

Just got another similar email. I'm concerned that I'm blocking google bots. Is that the case here?

On /Your_Account.html
While executing query "INSERT INTO cpg_security_flood (flood_ip,flood_time,flood_count,log) VALUES (0x42f94679, '1206694750', '0', DEFAULT)"

the following error occured: Duplicate entry 'B�Fy' for key 1

In: /home/mydomain/public_html/includes/classes/security.php on line: 308

Guest information:
User id: 1
Username: Anonymous
Admin: No
IP: 66.249.70.121
Host: crawl-66-249-70-121.googlebot.com

_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: flood protection - duplicate entry error
Posted: Fri Mar 28, 2008 4:38 am
Reply with quote

I also moved directly from 9.0.6.1. So I suspect that the connection. Hopefully Nano will see this.

Yes, that seems to be googlebot - or one of them. You can turn off flooding in meantime. I'm surprised that googlebot was hammering this hard - I thought it usually obeyed robots.txt. You have the correct version of robots.txt installed? (Note this bug - if indeed it is a bug - is not the issue with regard to stopping googlebot. As it had already got into your flooding list before the dup issue.)

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
SnoSheriff
Heavy poster


Joined: Mar 27, 2005
Posts: 174

PostPost subject: Re: flood protection - duplicate entry error
Posted: Fri Mar 28, 2008 4:47 am
Reply with quote

how do I verify the robots.txt?

Here is the pic of my settings:

_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: flood protection - duplicate entry error
Posted: Fri Mar 28, 2008 4:57 am
Reply with quote

It should be in your top level DF folder. Make sure it matches 1 on 9.2.1 zip. Should have a crawl-delay: 20 entry.

You haven't changed it from tight to loose yet I see ...

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3677
Location: Melbourne, AU

PostPost subject: Re: flood protection - duplicate entry error
Posted: Mon Mar 31, 2008 4:30 am
Reply with quote

Nothing wrong with the crawl delay, it wasnt hammering and the system did not blocked it in any way.

The duplicate keys, somehow, sometimes happen. I'm aware of this issue from few months already, i could suppress the error as a workaround but this is something that i dont want to. I want to fix it, no hide it.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
kringel
Newbie


Joined: Oct 20, 2008
Posts: 8
Location: Wermelskirchen, Germany

PostPost subject: Re: flood protection - duplicate entry error
Posted: Mon Dec 15, 2008 8:35 am
Reply with quote

Hi, guys!

I receive this error message as well, but this error occurs everytime someone tries to log in... I can't even reach admin panel! I've changed some security rights just before this error's first appereance but I can't remember, what I've changed Sad
Quote:
On /content/index.php
While executing query "INSERT INTO dragonfly_security_flood (flood_ip,flood_time,flood_count,log) VALUES (0x559ec410, '1229325296', '0', DEFAULT)"

the following error occured: Duplicate entry 'U��' for key 1

In: /*****/content/includes/classes/security.php on line: 308

Guest information:
User id: 2
Username: kringel
Admin: No
IP: ...
Host: ...
What can I do to make my homepage accessible again?


kringel's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
osDebian/apache2.2.3/mysql5.0.75/php5.2.8/dragonfly10.0.02
Back to top
View user's profile Visit poster's website
kringel
Newbie


Joined: Oct 20, 2008
Posts: 8
Location: Wermelskirchen, Germany

PostPost subject: Re: flood protection - duplicate entry error
Posted: Wed Jan 07, 2009 6:40 pm
Reply with quote

kringel wrote:
Hi, guys!

I receive this error message as well, but this error occurs everytime someone tries to log in... I can't even reach admin panel! I've changed some security rights just before this error's first appereance but I can't remember, what I've changed Sad
Hello, again

I've reinstalled Dragonfly and changed only flooding settings to "loose" and "15 Minutes ban" - and *booom* I'm out again. Where are these settings saved in the database?


kringel's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
osDebian/apache2.2.3/mysql5.0.75/php5.2.8/dragonfly10.0.02
Back to top
View user's profile Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: flood protection - duplicate entry error
Posted: Thu Jan 08, 2009 12:50 am
Reply with quote

In your case, those settings are saved in the dragonfly_config_custom table.

However, remember, if you change settings directly in the database, you must also delete the cache/conbfig_MAIN_CFG.php file so that it can re-generate.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
hadi00
Translator


Joined: Dec 01, 2004
Posts: 198
Location: Syria

PostPost subject: SQL Error:Duplicate entry 'MÓyû' for key 1?
Posted: Tue Jun 30, 2009 1:52 pm
Reply with quote

hello, i just got this, what do u think ? should I worry about something?
thnx every one..

Code:
While executing query "INSERT INTO cms_security_flood (flood_ip,flood_time,flood_count,log) VALUES (0x4dd379fb, '1246311596', '0', DEFAULT)"

the following error occured: Duplicate entry 'MÓyû' for key 1

In: /home/_XX_/public_html/includes/classes/security.php on line: 308

Guest information:
User id: 1
Username: Anonymous.
Admin: No

_________________
The truth is to stop thinking and start living

hadi00 please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Send e-mail
hadi00
Translator


Joined: Dec 01, 2004
Posts: 198
Location: Syria

PostPost subject: Re: SQL Error:Duplicate entry 'MÓyû' for key 1?
Posted: Tue Jun 30, 2009 1:56 pm
Reply with quote

Ok, got two another :
Code:
On /header/header_CBStageSh1.html
While executing query "INSERT INTO cms_security_flood (flood_ip,flood_time,flood_count,log) VALUES (0x51348f20, '1246316529', '0', DEFAULT)"

the following error occured: Duplicate entry 'Q4 ' for key 1


In: /home/_XX_/public_html/includes/classes/security.php on line: 308

Guest information:
User id: 1
Username: Anonymous.
Admin: No
IP: 81.52.143.32
Host: natcrawlbloc03-32.net.m1.fti.net
--------
Code:
On /Left/left_artists.html
While executing query "INSERT INTO cms_security_flood (flood_ip,flood_time,flood_count,log) VALUES (0x51348f20, '1246316529', '0', DEFAULT)"

the following error occured: Duplicate entry 'Q4 ' for key 1

In: /home/_XX_/public_html/includes/classes/security.php on line: 308

Guest information:
User id: 1
Username: Anonymous.
Admin: No
IP: 81.52.143.32
Host: natcrawlbloc03-32.net.m1.fti.net

_________________
The truth is to stop thinking and start living

hadi00 please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Send e-mail
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3677
Location: Melbourne, AU

PostPost subject: Re: flood protection - duplicate entry error
Posted: Sun Jul 26, 2009 5:19 am
Reply with quote

I still believe this error only happens when the same client access your site for the first time simultaneously.

No fix at this stage but speeding up the Security class by removing all latest debug functions introduced might helps.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: flood protection - duplicate entry error
Posted: Wed Jul 29, 2009 12:11 pm
Reply with quote

NanoCaiordo wrote:
I still believe this error only happens when the same client access your site for the first time simultaneously.

No fix at this stage but speeding up the Security class by removing all latest debug functions introduced might helps.

Looks as if I can pop that bubble. These 2 were emailed a little over 2 minutes apart, triggered by the same bot/IP address. This is an exceedingly obnoxious bot (this is the only site that I haven't blocked it on), but that said, the 2nd error can't have been the "first time".

At 04:12:42
Code:
On /CPGNuCalendar/view=day/date=20060413.html
While executing query "INSERT INTO nuke_security_flood (flood_ip,flood_time,flood_count,log) VALUES (0x43da7486, '1248891163', '0', DEFAULT)"

the following error occured: Duplicate entry 'CÚt†' for key 1

In: /home/asq7092/public_html/section/includes/classes/security.php on line: 308

Guest information:
User id: 1
Username: Anonymous
Admin: No
IP: 67.218.116.134
Host: crawl-9c.cuil.com 

And at 04:14:28
Code:
On /Forums/viewtopic/t=29/view=previous.html
While executing query "INSERT INTO nuke_security_flood (flood_ip,flood_time,flood_count,log) VALUES (0x43da7486, '1248891269', '0', DEFAULT)"

the following error occured: Duplicate entry 'CÚt†' for key 1

In: /home/asq7092/public_html/section/includes/classes/security.php on line: 308

Guest information:
User id: 1
Username: Anonymous
Admin: No
IP: 67.218.116.134
Host: crawl-9c.cuil.com 

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexProblems AFTER Install/Upgrade All times are GMT
Go to page 1, 2  Next
Page 1 of 2


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.9708 seconds with 19 DB Queries in 0.1348 seconds
Memory Usage: 3.03 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy