librelist archives

« back to archive

duplicate key value violates unique constraint "django_admin_log_pkey"

duplicate key value violates unique constraint "django_admin_log_pkey"

From:
Ben Wyss
Date:
2011-06-24 @ 08:09
Hello,
It seems that most actions from the geonode admin panel return a error:
duplicate key value violates unique constraint "django_admin_log_pkey".
The full error:
http://pastebin.com/pUZa5R85

Thanks in advance for any help with this.

Re: [geonode] duplicate key value violates unique constraint "django_admin_log_pkey"

From:
Ariel Nunez
Date:
2011-06-24 @ 11:33
If I were you I would do

django-admin.py reset admin

That would delete all the records in the admin_log table and let you start
fresh.

Admin Log is only useful to record.the.changes.done via.the asmin and your
index seems to be corrupted.
On Jun 24, 2011 4:09 AM, "Ben Wyss" <ben@openquake.org> wrote:
> Hello,
> It seems that most actions from the geonode admin panel return a error:
> duplicate key value violates unique constraint "django_admin_log_pkey".
> The full error:
> http://pastebin.com/pUZa5R85
>
> Thanks in advance for any help with this.

Re: [geonode] duplicate key value violates unique constraint "django_admin_log_pkey"

From:
ben
Date:
2011-06-24 @ 13:31
Hi Ariel, thanks that did the trick!
Cheers, Ben

On 6/24/11 1:33 PM, Ariel Nunez wrote:
>
> If I were you I would do
>
> django-admin.py reset admin
>
> That would delete all the records in the admin_log table and let you 
> start fresh.
>
> Admin Log is only useful to record.the.changes.done via.the asmin and 
> your index seems to be corrupted.
>
> On Jun 24, 2011 4:09 AM, "Ben Wyss" <ben@openquake.org 
> <mailto:ben@openquake.org>> wrote:
> > Hello,
> > It seems that most actions from the geonode admin panel return a error:
> > duplicate key value violates unique constraint "django_admin_log_pkey".
> > The full error:
> > http://pastebin.com/pUZa5R85
> >
> > Thanks in advance for any help with this.


-- 
Ben Wyss
OpenQuake Community Manager
GEM Foundation
c/o Eucentre, Via Ferrata 1
27100 Pavia
Italy
www.openquake.org