7022153: 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 /etc/products.d/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 /etc/products.d/SLES.prod /etc/products.d/baseproduct

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.

Related:

Leave a Reply