GoogleCloudPlatform / GoogleCloudPlatform/osconfig
OSConfigAgent Error policies.go line 74; and inventory.go line 55
- Dominant language
- Go
- Stars
- 99
- Forks
- 113
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 5
Description
I am having the following errors in rhel-8


There are a total of 3 errors in logs.
**Error message 1:**
```Error installing recipe: error running step 0 (RunScript): exit status 1```

**Error message 2:**
```packages.GetPackageUpdates() error: error getting yum updates: error running /usr/bin/yum with args ["check-update" "--assumeyes"]: exit status 1, stdout: "Red Hat Enterprise Linux 8 for x86_64 - BaseOS 0.0 B/s | 0 B 00:01 \n", stderr: "Errors during downloading metadata for repository 'rhui-rhel-8-for-x86_64-baseos-rhui-source-rpms':\n - Curl error (35): SSL connect error for https://rhui.googlecloud.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/baseos/source/SRPMS [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rhui.googlecloud.com:443 ]\nError: Failed to download metadata for repo 'rhui-rhel-8-for-x86_64-baseos-rhui-source-rpms': Cannot prepare internal mirrorlist: Curl error (35): SSL connect error for https://rhui.googlecloud.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/baseos/source/SRPMS [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rhui.googlecloud.com:443 ]\n"```

**Error message 3**:
``` packages.GetPackageUpdates() error: error getting yum updates: error running /usr/bin/yum with args ["check-update" "--assumeyes"]: exit status 1, stdout: "Red Hat Enterprise Linux 8 for x86_64 - BaseOS 0.0 B/s | 0 B 00:01 \n", stderr: "Errors during downloading metadata for repository 'rhui-rhel-8-for-x86_64-baseos-rhui-source-rpms':\n - Curl error (35): SSL connect error for https://rhui.googlecloud.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/baseos/source/SRPMS [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rhui.googlecloud.com:443 ]\nError: Failed to download metadata for repo 'rhui-rhel-8-for-x86_64-baseos-rhui-source-rpms': Cannot prepare internal mirrorlist: Curl error (35): SSL connect error for https://rhui.googlecloud.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/baseos/source/SRPMS [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rhui.googlecloud.com:443 ]\n" ```

Contributor guide
Research direction
Start by reading policies.go around line 74 and inventory.go around line 55, then trace the recipe-install and package-update paths associated with the reported logs. Reproduce the three errors on RHEL 8 using the shown yum output; done means identifying the cause and confirming whether the agent or the repository connection requires a change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100