SUSEConnect error: SUSE::Connect::CannotDetectBaseProduct

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

Environment

SUSE Linux Enterprise Server for SAP Applications 12 Service Pack 2
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)

Situation

The following debug logs are printed when trying to register a server using the SUSEConnect command.
For example:
# SUSEConnect -r <ActivationCode> -e <EmailAddress> --debug
............
Output: 'Warning: The /etc/products.d/baseproduct symlink is dangling or missing!
The link must point to your core products .prod file in /etc/products.d.'
Executing: 'zypper --no-remote --no-refresh --xmlout --non-interactive products -i' Quiet: false
Output: '<?xml version='1.0'?>
<stream>
<message type="warning">The /etc/products.d/baseproduct symlink is dangling or missing!
The link must point to your core products .prod file in /etc/products.d.
</message>
<message type="info">Loading repository data...</message>
<message type="info">Reading installed packages...</message>
<product-list>
<product name="SLES_SAP" version="12.2" release="0" epoch="0" arch="x86_64" vendor="SUSE" summary="SUSE Linux Enterprise Server for SAP Applications 12 SP2" repo="@System" productline="sles" registerrelease="" shortname="SLE-12-SP2-SAP" flavor="DVD" isbase="false" installed="true"><endoflife time_t="1730332800" text="2024-10-31T11:00:00+11"/><registerflavor/><description>SUSE LINUX Enterprise Server 12 SP2 for SAP Applications</description></product>
</product-list>
</stream>'
SUSEConnect error: SUSE::Connect::CannotDetectBaseProduct: SUSE::Connect::CannotDetectBaseProduct
/usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.41/lib/suse/connect/zypper.rb:59:in `base_product'
/usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.41/lib/suse/connect/client.rb:27:in `register!'
/usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.41/lib/suse/connect/cli.rb:47:in `execute!'
/usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.41/bin/SUSEConnect:11:in `<top (required)>'
/usr/sbin/SUSEConnect:23:in `load'
/usr/sbin/SUSEConnect:23:in `<main>'

Resolution

Run the following command to create the link to the base product.
For example:
In this case, as the product is "SLES for SAP", the following soft link should be created:
#  ln -s SLES_SAP.prod /etc/products.d/baseproduct

Cause

The soft link "/etc/products.d/baseproduct" is missing in the "/etc/products.d/" directory.

Additional Information

For "SLES" product, create the following soft link instead:
#  ln -s SLES.prod /etc/products.d/baseproduct

Disclaimer

This Support Knowledgebase provides a valuable tool for 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:7022153
  • Creation Date: 23-Oct-2017
  • Modified Date:09-Sep-2021
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

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