Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHEL9 Changes Needed #1811

Open
travisroberts-sf opened this issue Feb 15, 2024 · 3 comments
Open

RHEL9 Changes Needed #1811

travisroberts-sf opened this issue Feb 15, 2024 · 3 comments
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@travisroberts-sf
Copy link

Description

Running the Infrastructure Agent on RHEL9 hosts is showing a couple of warnings in the journalctl, specifically for MemoryLimit and PIDFile.

  • MemoryLimit parameter in newrelic-infra.service has been deprecated in RHEL9 and will be completely removed in RHEL10. The fix is to change the service file to use MemoryMax.

  • The default PIDFile location for services on RHEL9 has been moved from /var/run to /run. The recommendation is to change the PIDFile parameter in the newrelic-infra.services file from 'PIDFile=/var/run/newrelic-infra/newrelic-infra.pid' to 'PIDFile=/run/newrelic-infra/newrelic-infra.pid'

Expected Behavior

No errors/warnings in journalctl

Troubleshooting

changed both parameters as suggested above and received no errors.

Steps to Reproduce

The newrelic-infra.service file is installed by default as is. there is no step to reproduce this issue.

Your Environment

RHEL9
New Relic Infrastructure Agent version: 1.48.1, GoVersion: go1.20.8, GitCommit: 1242f68, BuildDate: 2023-11-02T16:44:32

@travisroberts-sf travisroberts-sf added the bug Categorizes issue or PR as related to a bug. label Feb 15, 2024
@workato-integration
Copy link

@travisroberts-sf
Copy link
Author

for context here's the errors I am seeing in journalctl
Jan 30 23:21:11 phx-nrelc-lp903 systemd[1]: /etc/systemd/system/newrelic-infra.service:9: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon. Jan 30 23:21:11 phx-nrelc-lp903 systemd[1]: /etc/systemd/system/newrelic-infra.service:16: PIDFile= references a path below legacy directory /var/run/, updating /var/run/newrelic-infra/newrelic-infra.pid → /run/newrelic-infra/newrelic-infra.pid; please update the unit file accordingly.

@josemore
Copy link
Contributor

thanks for reporting this, we'll make sure this is updated for newer RHEL versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants