ibm-cloud-docs / log-analysis

Documentation repository for log-analysis
1 stars 10 forks source link

Error: GPG check FAILED warning: Signature not supported. Hash algorithm SHA1 not available -unable to install the IBM Log Analysis agent on Red Hat Linux #47

Open testrashmi opened 7 months ago

testrashmi commented 7 months ago

Service(s) involved LogDNA

What was the error message? Unable to install the IBM Log Analysis agent on Red Hat Linux?

Facing error:

warning: Signature not supported.Hash algorithm SHA1 not available. Problem opening package logdna-agent The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'yum clean packages'. Error: GPG check FAILED

Enter the link to the optimal knowledge asset

From your experience, is this a common theme?

Customers had also raised ticket based on this scenario: CS3744621 There were few other tickets too This is the common issue and the cloud user is not routed properly to the right cloud doc link

Additional context FAQ can be re written properly: or separate FAQ can be written


Installation of the IBM® Log Analysis agent fails on Red Hat Linux. What’s happening

When you install the IBM Log Analysis agent with the agent installation instructions, the installation fails when the sudo yum install logdna-agent command is run. Why it’s happening

The support for SHA1 based packages was removed in RHEL9, so installation of any version of the Agent would fail by default.

You can try temporarily enabling SHA1 based packages to install the agent. You need to update the crypto policies default to SHA1 for the logdna-agent before you install the agent.

To resolve this issue, run the following commands before you run the sudo yum install logdna-agent command.

update-crypto-policies --set DEFAULT:SHA1 dnf install logdna-agent update-crypto-policies --set DEFAULT:NO-SHA1

(or)

update-crypto-policies --set DEFAULT:SHA1 yum install logdna-agent update-crypto-policies --set DEFAULT:NO-SHA1


*** Add these details under : https://cloud.ibm.com/docs/log-analysis?topic=log-analysis-faq

Jeanmarie-W commented 6 months ago

There is a troubleshooting topic on this error. See Are you unable to install the IBM Log Analysis agent on Red Hat Linux?.

testrashmi commented 6 months ago

@Jeanmarie-W Thanks, but we want this error message to be updated in FAQ:

Facing error:

warning: Signature not supported.Hash algorithm SHA1 not available. Problem opening package logdna-agent The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'yum clean packages'. Error: GPG check FAILED