部署 在 Ubuntu11.10 64 位系统安装 newrelic 出错

johnlu · 2013年06月06日 · 最后由 JohnLu 回复于 2013年06月08日 · 5015 次阅读

[email protected]:~$ sudo apt-get install newrelic-sysmond Reading package lists... Done Building dependency tree
Reading state information... Done The following NEW packages will be installed: newrelic-sysmond 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 1,290 kB of archives. After this operation, 3,723 kB of additional disk space will be used. Get:1 http://apt.newrelic.com/debian/ newrelic/non-free newrelic-sysmond amd64 1.2.0.257 [1,290 kB] Fetched 1,290 kB in 20s (62.7 kB/s)
Selecting previously deselected package newrelic-sysmond. (Reading database ... 302046 files and directories currently installed.) Unpacking newrelic-sysmond (from .../newrelic-sysmond_1.2.0.257_amd64.deb) ... Processing triggers for ureadahead ... ureadahead will be reprofiled on next reboot Setting up newrelic-sysmond (1.2.0.257) ... Adding system user newrelic' (UID 117) ... Adding new groupnewrelic' (GID 129) ... groupadd: cannot lock /etc/group; try again later. adduser: /usr/sbin/groupadd -g 129 newrelic' returned error code 10. Exiting. chown: invalid group:root:newrelic' chown: invalid user: `newrelic:newrelic' Unknown id: newrelic

按照官方网上的教程安装的,https://newrelic.com/docs/server/server-monitor-installation-ubuntu-and-debian

使 deb 包安装也是一样

你确定在 install 之前做了如下的操作?

sudo wget -O /etc/apt/sources.list.d/newrelic.list http://download.newrelic.com/debian/newrelic.list sudo apt-key adv --keyserver hkp://subkeys.pgp.net --recv-keys 548C16BF sudo apt-get update

#1 楼 @iamroody 非常确定,执行了以上 3 个步骤

#1 楼 @iamroody apt-key list

/etc/apt/trusted.gpg

pub 1024D/437D05B5 2004-09-12 uid Ubuntu Archive Automatic Signing Key [email protected] sub 2048g/79164387 2004-09-12

pub 1024D/FBB75451 2004-12-30 uid Ubuntu CD Image Automatic Signing Key [email protected]

pub 1024D/3E5C1192 2010-09-20 uid Ubuntu Extras Archive Automatic Signing Key [email protected]

pub 1024D/7FAC5991 2007-03-08 uid Google, Inc. Linux Package Signing Key [email protected] sub 2048g/C07CB649 2007-03-08

pub 1024R/EBE14A20 2011-03-17 uid Launchpad PPA for plushuang.tw

pub 1024R/1CB94782 2009-09-23 uid Launchpad Tatsuhiro's PPA

pub 1024D/548C16BF 2010-06-29 uid New Relic [email protected] sub 2048g/77E8EB9A 2010-06-29

[email protected]:~$ sudo apt-get update Hit http://dl.google.com stable Release.gpg

groupadd: cannot lock /etc/group; try again later. adduser: /usr/sbin/groupadd -g 129 newrelic' returned error code 10. Exiting. chown: invalid group:root:newrelic' chown: invalid user: `newrelic:newrelic'

貌似你的系统没法添加 group 和用户,你自己试下,看能添加不。

#4 楼 @iamroody 确实手动添加用户也报同样的错误

磁盘满了吗?

把 /etc/group.lock 删了,再试试。

#7 楼 @iamroody 谢谢大侠,安装成功了! 还要多删一个文件 groupadd: cannot lock /etc/gshadow; try again later. adduser: `/usr/sbin/groupadd -g 129 newrelic' returned error code 10. Exiting.

再把这个文件 gshadow.lock 删了,就可以了

#6 楼 @reus 已经解决!请查看回复

#7 楼 @iamroody 可以看到系统负载图了,但是时间不对,慢了 15 个时区。有没有办法设置?

#10 楼 @JohnLu 在 my preference 里面可以设置。

#1 楼 @iamroody Use New Relic Anywhere Monitor your app's performance on-the-go with the New Relic iPhone app

请问有 Android 系统的吗?

#13 楼 @JohnLu 没有,我也非常操气。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号