My Favorites

Close

Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

smt-scc-sync and smt-sync returning mysql::db do failed: Duplicate entry errors

This document (7017148) is provided subject to the disclaimer at the end of this document.

Environment

Subscription Management Tool for SLES 11 SP3

Situation

smt-scc-sync and smt-sync returning mysql::db do failed: Duplicate entry

After migrating a SMT 11 SP3 server from the NCC to the SCC, the following errors occur when attempting to run a smt-scc-sync or an smt-sync:


2016-01-12 22:55:23 SMT::SCCSync - [error]  DBD::mysql::db do failed: Duplicate entry '286-954' for key 'PRIMARY' at /usr/lib/perl5/vendor_perl/5.10.0/SMT/SCCSync.pm line 1305.
2016-01-12 22:55:23 SMT::SCCSync - [error]  DBD::mysql::db do failed: Duplicate entry '527-788' for key 'PRIMARY' at /usr/lib/perl5/vendor_perl/5.10.0/SMT/SCCSync.pm line 1305.
2016-01-12 22:55:23 SMT::SCCSync - [error]  DBD::mysql::db do failed: Duplicate entry '565-583' for key 'PRIMARY' at /usr/lib/perl5/vendor_perl/5.10.0/SMT/SCCSync.pm line 1305.
2016-01-12 22:55:23 SMT::SCCSync - [error]  DBD::mysql::db do failed: Duplicate entry '452-778' for key 'PRIMARY' at /usr/lib/perl5/vendor_perl/5.10.0/SMT/SCCSync.pm line 1305.
...

Resolution

It should be noted that the errors are informational only and do not affect the Subscription Management Tool functionality.

To resolve the issue do the following on the Subscription Management Tool server:

(-u <user> -p <DBname>: default are for both "smt")

$> echo "DELETE FROM ProductCatalogs WHERE SRC='N'" | mysql -u smt -p smt
Enter password:
$> echo "DELETE FROM Products WHERE SRC='N'" | mysql -u smt -p smt
Enter password:
$> echo "DELETE FROM Catalogs WHERE SRC='N'" | mysql -u smt -p smt
Enter password:


This will remove the duplicate entries that are causing the error messages to occur.

Cause

During the migration the entries for the NCC were not removed from the database.

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7017148
  • Creation Date:13-JAN-16
  • Modified Date:13-JAN-16
    • SUSESubscription Management Tool

Did this document solve your problem? Provide Feedback

< Back to Support Search

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center