SUSEConnect error: SUSE::Connect::CannotDetectBaseProduct
This document (7022153) is provided subject to the disclaimer at the end of this document.
Environment
Situation
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
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
Additional Information
# 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
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com