#189 error 'ERROR: duplicate key value violates unique constraint "rpminfo_unique_nvra"
Closed 7 years ago Opened 7 years ago by chandankumar.

I was trying to build python-typing for f25 branch using fedpkg. But after successful completion of build on Koji, It is giving some weired db insertion error:

<class 'pg.DatabaseError'>: error 'ERROR: duplicate key value violates unique constraint "rpminfo_unique_nvra"
DETAIL: Key (name, version, release, arch, external_repo_id)=(python2-typing, 3.5.2.2, 1.fc25, noarch, 0) already exists.
' in 'INSERT INTO rpminfo (build_id, name, arch, buildtime, payloadhash, epoch, version, buildroot_id, release, external_repo_id, id, size) VALUES (811737, 'python2-typing', 'noarch', 1477058313, 'd04f938c2d54f3fcecf27e86c02ac00a', NULL, '3.5.2.2', 6687769, '1.fc25', 0, 8356042, 43270)'

For more info below is the koji builds where this issue is coming:
http://koji.fedoraproject.org/koji/taskinfo?taskID=16151792
http://koji.fedoraproject.org/koji/taskinfo?taskID=16151833

Please have a look.


This NVRA is already taken in Fedora's koji instance. Here is the build:
http://koji.fedoraproject.org/koji/buildinfo?buildID=773637

It is unusual for things to fail in this way, normally when there is an overlap like this, there is also an NVR overlap (caught much earlier). In this case, that did not happen because the srpm names differ (python-typing vs python2-typing).

Regardless, this NVRA is taken, so you much use a different one. Bump your release

Thanks Miken, I found what is the issue actually, python2-typing package already exists. my package python-typing provides python2-typing package also. That's why it is conflicting.
You can close this issue.

@mikem changed the status to Closed

7 years ago

Login to comment on this ticket.

Metadata