<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I think centos messed up and named their rpm : “firefox-45.1-1el7” instead of “forefox45-1.1.el7” (see the missing dot)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>They corrected their mistake, but you now have to remove the badly named RPM from your RPM mirror and spacewalk channels.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>The error is due to the fact that when inserted into the spacewalk database, dots are ignored, and thus both rpms appear to have the same name, which is used as a primary key.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Maxime Veroone<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> spacewalk-list-bounces@redhat.com [mailto:spacewalk-list-bounces@redhat.com] <b>De la part de</b> Coffman, Anthony J<br><b>Envoyé :</b> mardi 24 mai 2016 14:46<br><b>À :</b> spacewalk-list@redhat.com<br><b>Objet :</b> [Spacewalk-list] Duplicate key during reposync<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>This started on Saturday and seems to affect reposync for only one channel (CentOS 7 Updates)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>It’s happened every night since.  I’m guessing the firefox updates have something to do with this since those seem to be the packages that are “stuck” (refuse to sync).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Is anybody else seeing this?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>--Tony Coffman<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>2016-05-21 01:17:55,007 [DefaultQuartzScheduler_Worker-6] INFO  com.redhat.rhn.taskomatic.task.RepoSyncTask  - Syncing repos for channel: CentOS 7 Updates (x86_64)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2016-05-21 01:23:37,472 [Thread-13053] INFO  com.redhat.rhn.taskomatic.task.RepoSyncTask  - ======================================<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| Channel: centos7-x86_64-updates<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>======================================<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Repo URL: <a href="http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates">http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Packages in repo:              1676<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Packages already synced:       1674<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Packages to sync:                 2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>1/2 : firefox-45.1.1-1.el7.centos-0.i686<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2/2 : firefox-45.1.1-1.el7.centos-0.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Linking packages to channel.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>2016-05-21 01:23:37,472 [Thread-13054] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask  - ERROR: (23, 'ERROR:  duplicate key value violates unique constraint "rhn_cnp_cid_nid_uq"', 'Could not update database entry.')<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Traceback (most recent call last):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  File "/usr/bin/spacewalk-repo-sync", line 218, in <module><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    sys.exit(abs(main() or 0))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  File "/usr/bin/spacewalk-repo-sync", line 211, in main<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    sync.sync()<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py", line 224, in sync<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    [self.channel_label], [], "server.app.yumreposync")<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  File "/usr/lib/python2.6/site-packages/spacewalk/server/taskomatic.py", line 69, in add_to_repodata_queue_for_channel_package_subscription<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    add_to_repodata_queue(channel, caller, reason[:128])<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  File "/usr/lib/python2.6/site-packages/spacewalk/server/taskomatic.py", line 53, in add_to_repodata_queue<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    queue.add(entry)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  File "/usr/lib/python2.6/site-packages/spacewalk/server/taskomatic.py", line 44, in add<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    bypass_filters=self._boolean_as_char(entry.bypass_filters))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 151, in execute<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    return self._execute_wrapper(self._execute, *p, **kw)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 296, in _execute_wrapper<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    raise sql_base.SQLSchemaError(error_code, e.pgerror, e)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>spacewalk.server.rhnSQL.sql_base.SQLSchemaError: (99999, 'ERROR:  current transaction is aborted, commands ignored until end of transaction block', '', InternalError('current transaction is aborted, commands ignored until end of transaction block\n',))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>2016-05-21 01:23:37,525 [DefaultQuartzScheduler_Worker-6] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask  - Executing a task threw an exception: org.quartz.JobExecutionException<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2016-05-21 01:23:37,526 [DefaultQuartzScheduler_Worker-6] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask  - Message: Command '[/usr/bin/spacewalk-repo-sync, --channel, centos7-x86_64-updates, --type, yum]' exited with error code 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2016-05-21 01:23:37,536 [DefaultQuartzScheduler_Worker-6] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask  - Cause: null<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2016-05-21 01:23:37,552 [DefaultQuartzScheduler_Worker-6] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask  - Stack trace:org.quartz.JobExecutionException: Command '[/usr/bin/spacewalk-repo-sync, --channel, centos7-x86_64-updates, --type, yum]' exited with error code 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        at com.redhat.rhn.taskomatic.task.RhnJavaJob.executeExtCmd(RhnJavaJob.java:112)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        at com.redhat.rhn.taskomatic.task.RepoSyncTask.execute(RepoSyncTask.java:74)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        at com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:89)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:185)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) <o:p></o:p></span></p></div></body></html>