duplicate key value violates unique constraint

Hilfe zu OTRS Problemen aller Art
Post Reply
Phuoc
Znuny newbie
Posts: 2
Joined: 07 Dec 2021, 16:45
Znuny Version: 6.0.28
Real Name: Phuoc
Company: p-Square GmbH

duplicate key value violates unique constraint

Post by Phuoc »

Hallo,

seitdem wir eine Migration nach der Anleitung https://otrscommunityedition.com/doc/ma ... s-to-linux durchgeführt haben, bekommen wir den obigen Fehler mit verschiedenen Primary Keys bei Tickets die auf der alten Umgebung bereits bearbeitet wurden.

ERROR: duplicate key value violates unique constraint "ticket_history_pkey"
Key (id)=(11471) already exists. at /srv/data/otrs/bin/fcgi-bin/../../Kernel/System/DB.pm line 469.

duplicate key value violates unique constraint "article_pkey"

duplicate key value violates unique constraint "article_data_mime_pkey"

Hat jemand den Fehler auch schon gehabt und konnte den lösen?
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: duplicate key value violates unique constraint

Post by root »

Hi,

Ihr habt das System von Windows nach Linux migriert und habt dabei die Datenbank gewechselt? Oder habt ihr jetzt nur ein Update durchgeführt?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Phuoc
Znuny newbie
Posts: 2
Joined: 07 Dec 2021, 16:45
Znuny Version: 6.0.28
Real Name: Phuoc
Company: p-Square GmbH

Re: duplicate key value violates unique constraint

Post by Phuoc »

Hallo Roy,

wir haben hier von SLES11 auf SLES12 gewechselt und dabei auch die Datenbank von Oracle nach Postgres.
Post Reply