SSL_ERROR_SYSCALL in connection to rhui4-1.microsoft.com:443

Buck Soong Tan 30 Reputation points
2023-12-20T00:44:38.82+00:00

Encountered the following error messages. Please helps. thanks

Curl error (35): SSL connect error for https://rhui41.microsoft.com/pulp/repos/content/dist/rhel8/rhui/8/x86_64/baseos/os/repodata/repomd.xml [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rhui4-1.microsoft.com:443 ]

Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rhui-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,015 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Buck Soong Tan 30 Reputation points
    2024-01-03T00:50:53.66+00:00

    The problem was resolved. The firewall did not allow the local repo to access the rhui4-1.microsoft.com domain.

    Thanks!

    2 people found this answer helpful.
    0 comments No comments

  2. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2023-12-20T17:56:35.11+00:00

    @Buck Soong Tan

    The issue you’re encountering is related to SSL connection errors with Red Hat Update Infrastructure (RHUI) on Azure Linux VMs. Here’s a summary of the troubleshooting steps:

    • Expired RHUI Certificate: If the RHUI client certificate is expired, you’ll need to update the RHUI package to renew the certificate. Use the following command:
    sudo yum update -y --disablerepo='*' --enablerepo='*microsoft*'
    
    • Missing RHUI Certificate: If the RHUI certificate is missing from the /etc/pki/rhui/product/ directory, you’ll need to reinstall the RHUI package that contains the certificate.

    For detailed instructions and more troubleshooting steps, you can refer to the Microsoft Learn article on Troubleshooting common certificate issues in RHUI. This guide will provide you with the necessary steps to resolve the SSL connection errors you’re experiencing.

    Hope this helps! Let me know if you are still having issues and I can further assist.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image


  3. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2024-01-03T22:16:02.56+00:00

    @Buck Soong Tan

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others (Opens in new window or tab)", I'll repost your solution in case you'd like to accept the answer (Opens in new window or tab).

    Error Message:

    Curl error (35): SSL connect error for https://rhui41.microsoft.com/pulp/repos/content/dist/rhel8/rhui/8/x86_64/baseos/os/repodata/repomd.xml [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rhui4-1.microsoft.com:443 ]
    Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rhui-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    
    Dec 29 10:46:40 RhelRepo02 rsyslogd[1409]: cannot connect to 10.0.0.2:514: Connection timed out [v8.2102.0-15.el8 try https://www.rsyslog.com/e/2027 ]
    

    Issue:

    • Unable to run yum commands on your Azure RHEL VM.

    Solution:

    • "The firewall did not allow the local repo to access the rhui4-1.microsoft.com domain."

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    I hope this helps!

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.