Unable to download repo files

Hello Gurus,

We have an SLES machine running in Azure.
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 4

I am trying to install some repo files, but it looks like is empty.
etc/products.d # zypper lr
Warning: No repositories defined.
Use the ‘zypper addrepo’ command to add one or more repositories.

I have tried the following already, but still did not solve the issue.

  1. registercloudguest --force-new

rm /etc/SUSEConnect

rm -f /etc/zypp/{repos,services,credentials}.d/*

rm -f /usr/lib/zypp/plugins/services/*

sed -i ‘/^# Added by SMT reg/,+1d’ /etc/hosts

/usr/sbin/registercloudguest --force-new

cd /etc/products.d

unlink baseproduct

ln -s SLES_SAP.prod baseproduct

ls -l /etc/products.d

registercloudguest --force-new

Here is part of the logs from /var/log/cloudregister

2021-11-04 16:11:33,273 ERROR: Registration failed: Registering system to registration proxy https://smt-azure.susecloud.net

Updating system details on https://smt-azure.susecloud.net

Activating sle-module-hpc 12 x86_64 …
Error: Registration server returned ‘Unmet product dependencies, activate one of these products first: SUSE Linux Enterprise Server 12 SP2 x86_64, SUSE Linux Enterprise Server for SAP Applications 12 SP2 x86_64, SUSE Linux Enterprise Server 12 SP3 x86_64, SUSE Linux Enterprise Server for SAP Applicati ons 12 SP3 x86_64, SUSE Linux Enterprise Server 12 SP4 x86_64, SUSE Linux Enterprise High Performance Computing 12 SP2 x86_64, SUSE Linux Enterprise Hi gh Performance Computing 12 SP3 x86_64, SUSE Linux Enterprise Server for SAP Applications 12 SP4 x86_64, SUSE Linux Enterprise High Performance Computi ng 12 SP4 x86_64, SUSE Linux Enterprise High Performance Computing 12 SP5 x86_64, SUSE Linux Enterprise Server 12 SP5 x86_64, SUSE Linux Enterprise Ser ver for SAP Applications 12 SP5 x86_64’ (422)

2021-11-04 16:11:33,274 INFO:Registration: /usr/sbin/SUSEConnect --url https://smt-azure.susecloud.net --product sle-module-legacy/12/x86_64 --instance -data /var/lib/cloudregister/7a0082ab-a823-4b4f-866c-f1afdd4804b2
2021-11-04 16:11:33,734 ERROR: Registration failed: Registering system to registration proxy https://smt-azure.susecloud.net

Updating system details on smt-azure.susecloud.net

Any ideas is appreciated.

Thank you.

Best regards,
JB

it looks like you need to activate another product first before the legacy module can be enabled
check if

SUSEConnect -list-extensions

gives you a list of products and it will even give you the cli command you need to enable it, search for something like ‘SUSE Linux Enterprise Server 12 SP2 x86_64’ or basesystem. hth

As bin-doph said, suse connect error is because on your system can not be detected any base product. When you try to activate it, there must be an output with a link that shows your core product. To create the link to the product, you should insert ln -s sles_sap.prod/etc/products.d/baseproduct. The main problem is that the soft link miss in the directory. In case you are running sles product just write ln -s sles.prod/etc/products.d/baseproduct.i am not to acknowledged in linux commands, if it were about mac, that should be more interesting. I wanted to extract rar file through command lines, unfortunately the best option I could use was [free rar extractor Mac](https://okaapps.com/product/1441507725).

Thank you for the reply, bin-doph.

Unfortunately, when I run SUSEConnect -list-extensions, i got this error:
Error: Invalid system credentials, probably because the registered system was deleted in SUSE Customer Center. Check https://scc.suse.com whether your system appears there. If it does not, please call SUSEConnect --cleanup and re-register this system.

Did a /usr/sbin/registercloudguest --force-new after and did not get any error prompt, but still unable to connect to the repos.

thanks, mylesduffy. I have already done this.

baseproduct → SLES_SAP.prod