Whose Error Is It?
Postgres printed this
ERROR: duplicate key value violates unique constraint "users_pkey"
What it meansAn INSERT or UPDATE tried to write a primary key value that already exists in the users table, which the unique constraint forbids.
The first thing to checkOften the id sequence is behind after a manual import; reset it with setval to the max id, or stop setting id explicitly in your inserts.