2022-05-10, 09:16 PM
Hello,
I'm running myBB 1.8.30 on a Linux-x86_64 system with a PosrgreSQL-12.10 backend. In the past few days, I've been seeing this error whenever the Bing (search engine) is crawling my forum:
I've not been able to reproduce this manually. Is this a known issue?
Full error output is here:
thanks!
I'm running myBB 1.8.30 on a Linux-x86_64 system with a PosrgreSQL-12.10 backend. In the past few days, I've been seeing this error whenever the Bing (search engine) is crawling my forum:
duplicate key value violates unique constraint "mybb_sessions_sid_key"
I've not been able to reproduce this manually. Is this a known issue?
Full error output is here:
Type: 20
File: (Line no. 0)
Message
SQL Error: 0 - ERROR: duplicate key value violates unique constraint "mybb_sessions_sid_key"
DETAIL: Key (sid)=(bot=2) already exists.
Query: INSERT
INTO mybb_sessions (uid,sid,time,ip,location,useragent,location1,location2,nopermission)
VALUES (0,'bot=2',1652188516,'\x9d37273a','/dv/showthread.php?tid=26013','Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)',7,26013,0)
Back Trace: #0 errorHandler->email_error(20, SQL Error: 0 - ERROR: duplicate key value violates unique constraint "mybb_sessions_sid_key"
DETAIL: Key (sid)=(bot=2) already exists.
Query: INSERT
INTO mybb_sessions (uid,sid,time,ip,location,useragent,location1,location2,nopermission)
VALUES (0,'bot=2',1652188516,'\x9d37273a','/dv/showthread.php?tid=26013','Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)',7,26013,0), , 0) called at [/var/www/html/dv/inc/class_error.php:229]
#1 errorHandler->error(20, Array ([error_no] => 0,[error] => ERROR: duplicate key value violates unique constraint "mybb_sessions_sid_key"
DETAIL: Key (sid)=(bot=2) already exists.
,[query] => INSERT
INTO mybb_sessions (uid,sid,time,ip,location,useragent,location1,location2,nopermission)
VALUES (0,'bot=2',1652188516,'\x9d37273a','/dv/showthread.php?tid=26013','Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)',7,26013,0))) called at [/var/www/html/dv/inc/db_pgsql.php:585]
#2 DB_PgSQL->error(INSERT
INTO mybb_sessions (uid,sid,time,ip,location,useragent,location1,location2,nopermission)
VALUES (0,'bot=2',1652188516,'\x9d37273a','/dv/showthread.php?tid=26013','Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)',7,26013,0), Resource id #7) called at [/var/www/html/dv/inc/db_pgsql.php:330]
#3 DB_PgSQL->query(INSERT
INTO mybb_sessions (uid,sid,time,ip,location,useragent,location1,location2,nopermission)
VALUES (0,'bot=2',1652188516,'\x9d37273a','/dv/showthread.php?tid=26013','Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)',7,26013,0), 0, 1) called at [/var/www/html/dv/inc/db_pgsql.php:355]
#4 DB_PgSQL->write_query(
INSERT
INTO mybb_sessions (uid,sid,time,ip,location,useragent,location1,location2,nopermission)
VALUES (0,'bot=2',1652188516,'\x9d37273a','/dv/showthread.php?tid=26013','Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)',7,26013,0)
) called at [/var/www/html/dv/inc/db_pgsql.php:784]
#5 DB_PgSQL->insert_query(sessions, Array ([uid] => 0,[sid] => 'bot=2',[time] => 1652188516,[ip] => '\x9d37273a',[location] => '/dv/showthread.php?tid=26013',[useragent] => 'Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)',[location1] => 7,[location2] => 26013,[nopermission] => 0), ) called at [/var/www/html/dv/inc/db_pgsql.php:1373]
#6 DB_PgSQL->replace_query(sessions, Array ([uid] => 0,[sid] => bot=2,[time] => 1652188516,[ip] => '\x9d37273a',[location] => /dv/showthread.php?tid=26013,[useragent] => Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm),[location1] => 7,[location2] => 26013,[nopermission] => 0), sid, ) called at [/var/www/html/dv/inc/class_session.php:556]
#7 session->create_session() called at [/var/www/html/dv/inc/class_session.php:473]
#8 session->load_spider(2) called at [/var/www/html/dv/inc/class_session.php:104]
#9 session->init() called at [/var/www/html/dv/global.php:49]
#10 require_once(/var/www/html/dv/global.php) called at [/var/www/html/dv/showthread.php:28]
thanks!