6.0.0-beta1
9/24/25

[#632] DB Error : already exists
Summary DB Error : already exists
Queue Ansel
Type Bug
State Resolved
Priority 1. Low
Owners
Requester casterln (at) nature (dot) berkeley (dot) edu
Created 09/23/2004 (7671 days ago)
Due
Updated 09/27/2004 (7667 days ago)
Assigned 09/27/2004 (7667 days ago)
Resolved 09/27/2004 (7667 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/27/2004 11:41:19 PM Chuck Hagenbuch State ⇒ Resolved
 
09/27/2004 09:46:50 PM casterln (at) nature (dot) berkeley (dot) edu Comment #4 Reply to this comment
close this ticket.



The port number for sql based session handling in horde/config

had a default for postgres.

I changed it to the mysqld port and now gallery creation works.

Amazing that things worked as well as they did!



  _Gary
09/27/2004 06:58:49 PM casterln (at) nature (dot) berkeley (dot) edu Comment #3 Reply to this comment
Yup, it's in there.



nature:sql # echo "select * from horde_datatree where 
datatree_id='2118'" | mysql -u root -p horde

Enter password:

datatree_id     group_uid       user_uid        datatree_name   
datatree_parents        datatree_order  datatree_data   
datatree_serialized     datatree_updated2118    horde.history   
lemauxpg@nature 
imp.lemauxpg@nature.<20031014030441.GB216@nature.Berkeley.edu>         
  NULL    NULL    0       20031014070546


09/27/2004 09:51:57 AM Jan Schneider State ⇒ Feedback
 
09/27/2004 09:51:40 AM Jan Schneider Comment #2
State ⇒ Assigned
Reply to this comment
Can you check if the value 2118 really exists in the datatree_id 
column of the horde_datatree table? If so, your sequence generator is 
broken somehow, check the horde_datatree_seq table.
09/23/2004 11:48:37 PM casterln (at) nature (dot) berkeley (dot) edu Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ DB Error : already exists
Queue ⇒ Ansel
Reply to this comment
I cannot seem to create any galleries.

Here are the lines from the log:



Sep 23 16:39:16 HORDE [error] [ansel] DB Error: already exists: INSERT 
INTO horde_datatree (datatree_id, group_uid, datatree_name, 
datatree_order, datatree_data, user_uid, datatree_serialized, 
datatree_parents) VALUES (2118, 'horde.shares.ansel', 
'562c6c1216bd899d8ed0a51b712fe296', NULL, '', 'glc', 0, '') 
[nativecode=1062 ** Duplicate entry '2118' for key 1] [on line 405 of 
"/opt/lib/php/Horde/DataTree/sql.php"]

Sep 23 16:39:16 HORDE [error] [ansel] The gallery "" could not be 
created: DB Error: already exists [on line 216 of 
"/opt/httpd-prefork/htdocs/horde/ansel/lib/Ansel.php"]

Sep 23 16:39:16 HORDE [error] [ansel] The gallery "new gallery" 
couldn't be created: The gallery "" could not be created: DB Error: 
already exists [on line 272 of 
"/opt/httpd-prefork/htdocs/horde/ansel/gallery.php"]



What do these errors indicate?  A locking problem in mysql?

As far as I can tell, the datatree mysql specs match what is in the lastest

sql/scripts.  _Gary

Saved Queries