"Unable to interact with database" error since upgrade to 2.1.1

washingtonheights

Joined: 2003-04-20
Posts: 10
Posted: Mon, 2006-07-03 00:38

Since I upgraded to v. 2.1.1, I get a database error -- "An error has occurred while interacting with the database":
(1) When trying to upload pictures with an existing account,
(2) When someone tries to create a new account.

The relevant debug info is as follows:

Error (1):

Quote:
file_exists(/www/n/naborsapts/g2data/cache/module/_all/0/0/GalleryStorage_describeMap.inc) mysql error: [1062: Duplicate entry '30' for key 1] in EXECUTE("INSERT INTO g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES (30,3907)") (mysql): INSERT INTO g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES (30,3907) 1062: Duplicate entry '30' for key 1

adodb_mysql._execute(INSERT INTO g2_AccessSubscriberMap
(g_itemId, g_accessListId) VALUES (30,3907)) % line 836, file: adodb.inc.php

adodb_mysql.execute(INSERT INTO
g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES (?,?),
Array[2]) % line 985, file: GalleryStorageExtras.class

gallerystorageextras.addmapentry(GalleryAccessSubscriberMap,
Array[2]) % line 501, file: GalleryStorage.class
mysqlstorage.addmapentry(GalleryAccessSubscriberMap,
Array[2]) % line 2923, file: GalleryCoreApi.class
gallerycoreapi.addmapentry(GalleryAccessSubscriberMap,
Array[2]) % line 294, file: GalleryEntity.class

unlink(/www/n/naborsapts/g2data/tmp/MUF_7HxkzO) fclose(Resource id #56) file_exists(/www/n/naborsapts/g2data/locks/1/1/1130) unlink(/www/n/naborsapts/g2data/locks/1/1/1130) getParameter default.theme for core plugin Loading plugin matrix Class not defined, trying to include it. file_exists(/www/n/naborsapts/htdocs/wahi/gallery2/modules/core/classes/helpers/../../../../config.php) file_exists(/www/n/naborsapts/htdocs/wahi/gallery2/modules/core/classes/helpers/../../../../plugins/index.themes) file_exists(/www/n/naborsapts/htdocs/wahi/gallery2/modules/core/classes/helpers/../../../../themes/matrix/theme.inc) matrix plugin successfully instantiated Check the version of the matrix plugin file_exists(/www/n/naborsapts/g2data/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the matrix plugin is ok Loading plugin core core plugin successfully instantiated Check the version of the core plugin The version of the core plugin is ok file_exists(/www/n/naborsapts/htdocs/wahi/gallery2/modules/core/classes/helpers/../../../../modules/core/ErrorPage.inc) getParameter id.adminGroup for core plugin

And for error (2):

Quote:
file_exists(/www/n/naborsapts/g2data/cache/module/_all/0/0/GalleryStorage_describeEntity.inc) getParameter lock.system for core plugin file_exists(/www/n/naborsapts/g2data/cache/module/_all/0/0/GalleryStorage_describeMap.inc) mysql error: [1062: Duplicate entry '31' for key 1] in EXECUTE("INSERT INTO g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES (31,0)") (mysql): INSERT INTO g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES (31,0) 1062: Duplicate entry '31' for key 1

adodb_mysql._execute(INSERT INTO
g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES
(31,0)) % line 836, file: adodb.inc.php
adodb_mysql.execute(INSERT INTO g2_AccessSubscriberMap
(g_itemId, g_accessListId) VALUES (?,?), Array[2]) % line 985, file: GalleryStorageExtras.class
gallerystorageextras.addmapentry(GalleryAccessSubscriberMap,
Array[2]) % line 501, file: GalleryStorage.class
mysqlstorage.addmapentry(GalleryAccessSubscriberMap,
Array[2]) % line 2923, file: GalleryCoreApi.class
gallerycoreapi.addmapentry(GalleryAccessSubscriberMap,
Array[2]) % line 294, file: GalleryEntity.class

getParameter default.theme for core plugin Loading plugin matrix Class not defined, trying to include it. file_exists(/www/n/naborsapts/htdocs/wahi/gallery2/modules/core/classes/helpers/../../../../config.php) file_exists(/www/n/naborsapts/htdocs/wahi/gallery2/modules/core/classes/helpers/../../../../plugins/index.themes) file_exists(/www/n/naborsapts/htdocs/wahi/gallery2/modules/core/classes/helpers/../../../../themes/matrix/theme.inc) matrix plugin successfully instantiated Check the version of the matrix plugin file_exists(/www/n/naborsapts/g2data/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the matrix plugin is ok Loading plugin core core plugin successfully instantiated Check the version of the core plugin The version of the core plugin is ok file_exists(/www/n/naborsapts/htdocs/wahi/gallery2/modules/core/classes/helpers/../../../../modules/core/ErrorPage.inc) getParameter id.adminGroup for core plugin

--
www.washington-heights.us/gallery2/

 
washingtonheights

Joined: 2003-04-20
Posts: 10
Posted: Thu, 2006-07-06 22:40

Hello, Any ideas? Thanks. -WaHI Online

 
washingtonheights

Joined: 2003-04-20
Posts: 10
Posted: Fri, 2006-07-14 20:08

Ahem ... Anyone have any ideas what I could do to be able to use the Gallery again? No one can upload images to the gallery anymore. Should I reinstall from scratch? If so, how can I save all the images and descriptions, etc.? If not, would you recommend another script that might work better?

Thanks for your help.

-- WaHI Online

 
washingtonheights

Joined: 2003-04-20
Posts: 10
Posted: Thu, 2006-07-20 20:46

Help, please! Don't know what to do.

 
smeagol

Joined: 2004-07-30
Posts: 8
Posted: Thu, 2006-07-20 21:41

unfortunately I don't know a solution to your specific problem, but you can perhaps try and restore a backup copy of your gallery2. easier than reinstalling from scratch I think.

 
washingtonheights

Joined: 2003-04-20
Posts: 10
Posted: Sun, 2006-08-06 20:08

Hello again,

Unfortunately, I don't have a backup that goes back that far -- I upgraded some time ago, and the Gallery stopped working since the upgrade.

Should I reinstall from scratch? And if I do, will I lose the photographs, or can I still connect to the same database? If the problem is with the database, does anyone have a suggestion on how I can preserve the photos while upgrading? These photos have been uploaded by a bunch of community members, and I would hate to have to tell them that they have to say good-bye to the photos that they painstakingly uploaded to the website.

Please, help!

www.washington-heights.us/gallery2/

 
catnip
catnip's picture

Joined: 2006-08-23
Posts: 17
Posted: Wed, 2006-08-30 02:21

I'm having the same exact problem with my gallery when someone trying to upload photos. I've never updated & gallery was working fine until Saturday, when it suddenly started throwing these errors. Restoring my g2 tables didn't help, and my forum, which shares the same database is working fine, so it makes me think that despite the error message, it's not database related.
I've been asking for help for 4 days, good luck finding some too.

_____________________________________________________________________________________________________
____________________________________________[img]http://karma-syphon.com/buttons/ks2.png[/img]____________________________________________

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Tue, 2006-09-26 16:10

catnip: I guess you didn't experience the problem because of some caching, but it was there.
Please post full error msg, and we will figure it out.

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Tue, 2006-09-26 16:12

washingtonheights: dunno, one would need to take a closer look.
I'd start with flushing db (and template) cache -these are maintenance tasks in admin part of g2-, then check if it still gives the same error.

 
catnip
catnip's picture

Joined: 2006-08-23
Posts: 17
Posted: Tue, 2006-09-26 17:26

Oh, it's been fixed for quite some time now, but thanks!
_____________________________________________________________________________________________________
____________________________________________[img]http://karma-syphon.com/buttons/ks2.png[/img]_______________________