New Relic requires root access on Openshift machine

江枫思渺然 提交于 2019-12-23 20:21:29

问题


  • I have an Application on Openshift and I just added New Relic add-on
  • New Relic asks for setting up Server and configuration is listed as

However, I could not get root access , I tried

\> sudo rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
bash: /usr/bin/sudo: Permission denied

> su - root
bash: /bin/su: Permission denied

> sudo su
bash: /usr/bin/sudo: Permission denied

How do I setup New Relic on my Openshift box?

Thanks


回答1:


You're not allowed root access on OpenShift Online so you can't install the New Relic package globally. Application code on OpenShift operates in a sandbox environment—a gear. (More on the OpenShift architecture here.)

So to use New Relic on OpenShift you must make it work inside within a gear by creating an OpenShift cartridge. (That is, unless you can find an existing New Relic cartridge already made by someone else.) This blog post does a great job explaining the restrictions of software operating in a cartridge and goes through an example of making Apache work within a cartridge.




回答2:


New relic only currently supports a java agent cartridge according to this link: https://discuss.newrelic.com/t/deploying-new-relic-on-openshift/10522

I would seem that if you want any other platform you will need to contact OpenShift for support.



来源:https://stackoverflow.com/questions/28185384/new-relic-requires-root-access-on-openshift-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!