Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

RUN systemctl start newrelic-infra,error :Failed to get D-Bus connection: Operation not permitted

docker
centos7
newrelic-infra

#1

RUN systemctl start newrelic-infra (while building docker file) on cent os 7

We obtain the following error message:

Step 28/28 : RUN systemctl start newrelic-infra
—> Running in f9a82da02f00
Failed to get D-Bus connection: Operation not permitted
The command ‘/bin/sh -c systemctl start newrelic-infra’ returned a non-zero code: 1

Even after including these steps in docker file,

I am getting the same error. How do we resolve it


#2

Hi @SAIVENKATPRUDHVICHOW, could you confirm what init system you are using on this host? It may be the case that you have Upstart set as default, whereas the agent requires systemd :slight_smile:


#3

we have upstart set as default


#4

Hello @SAIVENKATPRUDHVICHOW,

Thank you for your response.

Based on your initial response Step 28/28 : RUN systemctl start newrelic-infra, it looks like your are using SystemD to start the NRIA (New Relic Infrastructure Agent) which based on our documentation is the default init system for the CentOS 7 Linux Distro.

At first glance the error Failed to get D-Bus connection: Operation not permitted doesn’t seem to be a New Relic related issue, but a Docker Container issue. A quick Google search on the error provides a few potential fixes:

As a next step, I would suggest looking in to the Docker Container error. However, please don’t hesitate to reach out if you have further questions or concerns.