Newrelic-infra.service - ExecStart=/usr/bin/newrelic-infra.service (code=exited, status=203/EXEC) - HELP

[root@cmpcsyslog etc]# systemctl status -n100 newrelic-infra.service
● newrelic-infra.service - c
Loaded: loaded (/etc/systemd/system/newrelic-infra.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2021-09-14 13:00:15 -03; 4s ago
Process: 87868 ExecStart=/usr/bin/newrelic-infra.service (code=exited, status=203/EXEC)
Main PID: 87868 (code=exited, status=203/EXEC)

Hi @pmardonesr!

Could you please describe the issue you’re having in a bit more detail?

Hello my friend, it happens to me that there is a service file that asks me for permissions, although I always give it permissions this error, which I attach on the screen, must be silly, but the truth has taken my time,
Best Regards

data

Sep 14 22:12:01 cmpcsyslog setroubleshoot[115762]: SELinux is preventing /usr/lib/systemd/systemd from execute access on the file newrelic-infra.service.#012#012***** Plugin catchall (100. confidence) suggests *********************#012#012If you believe that systemd should be allowed execute access on the newrelic-infra.service file by default.#012Then you should report this as a bug.#012You can generate a local policy module to allow this access.#012Do#012allow this access for now by executing:#012# ausearch -c ‘(.service)’ --raw | audit2allow -M my-service#012# semodule -X 300 -i my-service.pp#012
Sep 14 22:12:19 cmpcsyslog systemd[1]: newrelic-infra.service: Service RestartSec=20s expired, scheduling restart.
Sep 14 22:12:19 cmpcsyslog systemd[1]: newrelic-infra.service: Scheduled restart job, restart counter is at 3807.
Sep 14 22:12:19 cmpcsyslog systemd[1]: Stopped New Relic Infrastructure Agent.
Sep 14 22:12:19 cmpcsyslog systemd[1]: Started New Relic Infrastructure Agent.
Sep 14 22:12:19 cmpcsyslog systemd[115787]: newrelic-infra.service: Failed to execute command: Permission denied
Sep 14 22:12:19 cmpcsyslog systemd[115787]: newrelic-infra.service: Failed at step EXEC spawning /etc/systemd/system/newrelic-infra.service: Permission denied
Sep 14 22:12:19 cmpcsyslog systemd[1]: newrelic-infra.service: Main process exited, code=exited, status=203/EXEC
Sep 14 22:12:19 cmpcsyslog systemd[1]: newrelic-infra.service: Failed with result ‘exit-code’.
Sep 14 22:12:19 cmpcsyslog dbus-daemon[1558]: [system] Activating service name=‘org.fedoraproject.Setroubleshootd’ requested by ‘:1.1793’ (uid=0 pid=1530 comm="/usr/sbin/sedispatch " label=“system_u:system_r:auditd_t:s0”) (using servicehelper)
Sep 14 22:12:19 cmpcsyslog dbus-daemon[115790]: [system] Failed to reset fd limit before activating service: org.freedesktop.DBus.Error.AccessDenied: Failed to restore old fd limit: Operation not permitted
Sep 14 22:12:19 cmpcsyslog dbus-daemon[1558]: [system] Successfully activated service ‘org.fedoraproject.Setroubleshootd’
Sep 14 22:12:20 cmpcsyslog dbus-daemon[1558]: [system] Activating service name=‘org.fedoraproject.SetroubleshootPrivileged’ requested by ‘:1.6971’ (uid=991 pid=115790 comm="/usr/libexec/platform-python -Es /usr/sbin/setroub" label=“system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023”) (using servicehelper)
Sep 14 22:12:20 cmpcsyslog dbus-daemon[115803]: [system] Failed to reset fd limit before activating service: org.freedesktop.DBus.Error.AccessDenied: Failed to restore old fd limit: Operation not permitted
Sep 14 22:12:20 cmpcsyslog dbus-daemon[1558]: [system] Successfully activated service ‘org.fedoraproject.SetroubleshootPrivileged’
Sep 14 22:12:21 cmpcsyslog setroubleshoot[115790]: SELinux is preventing /usr/lib/systemd/systemd from execute access on the file newrelic-infra.service. For complete SELinux messages run: sealert -l 755f25e8-d76a-4287-9d75-af8f2182f8be
Sep 14 22:12:21 cmpcsyslog setroubleshoot[115790]: SELinux is preventing /usr/lib/systemd/systemd from execute access on the file newrelic-infra.service.#012#012
Plugin catchall (100. confidence) suggests **************************#012#012If you believe that systemd should be allowed execute access on the newrelic-infra.service file by default.#012Then you should report this as a bug.#012You can generate a local policy module to allow this access.#012Do#012allow this access for now by executing:#012# ausearch -c ‘(.service)’ --raw | audit2allow -M my-service#012# semodule -X 300 -i my-service.pp#012
^C

-rwxr-xr-x. 1 root root 8928 Sep 14 16:24 installer.sh

[root@cmpcsyslog newrelic-infra]# ./installer.sh
/etc/newrelic-infra /etc/newrelic-infra

solved it this way, run installer and voila,

Best regards.