calamari安装中npm错误

wang-s 2015-04-23 06:34:28
安装calamari-clients时出错:
环境:CentOS6.4

配置环境:
# yum install npm ruby rubygems ruby-devel
# npm install -g grunt grunt-cli bower grunt-contrib-compass
# gem update --system && gem install compass

安装:
# cd calamari-clients
# make build-real

building ui
set -e ;\
for d in manage admin login dashboard; do \
echo $d; cd $d; make build; cd .. ; \
done
manage
make[1]: Entering directory `/ceph-calamari/calamari-clients/manage'
npm install --loglevel warn
npm WARN package.json manage@0.0.0 No repository field.

> pngquant-bin@0.1.7 postinstall /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin
> node index.js


> gifsicle@0.1.7 postinstall /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle
> node index.js

pre-build test passed successfully
pre-build test failed, compiling from source...

stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error: invalid tar file
at Extract.Parse._startEntry (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:145:13)
at Extract.Parse._process (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:127:12)
at BlockStream.<anonymous> (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:47:8)
at BlockStream.emit (events.js:95:17)
at BlockStream._emitChunk (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/block-stream/block-stream.js:145:10)
at BlockStream.resume (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/block-stream/block-stream.js:58:15)
at Extract.Reader.resume (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/fstream/lib/reader.js:255:34)
at DirWriter.<anonymous> (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/extract.js:57:8)
at DirWriter.emit (events.js:92:17)
at /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/fstream/lib/dir-writer.js:39:8
npm ERR! weird error 8
npm ERR! tar pack Error reading /root/tmp/npm-11227-8WFpwRHv/1429784658931-0.128843525191769/package
npm ERR! addLocalDirectory Could not pack "/root/tmp/npm-11227-8WFpwRHv/1429784658931-0.128843525191769/package" to "/root/.npm/mout/0.6.0/package.tgz"
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/ceph-calamari/calamari-clients/manage/node_modules/bower/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/lang'
npm ERR! error rolling back bower@1.2.8 { [Error: ENOTEMPTY, rmdir '/ceph-calamari/calamari-clients/manage/node_modules/bower/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/lang']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/ceph-calamari/calamari-clients/manage/node_modules/bower/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/lang' }
npm ERR! not ok code 0
make[1]: *** [build-stamp] 错误 1
make[1]: Leaving directory `/ceph-calamari/calamari-clients/manage'
make: *** [build-ui] 错误 2

试了好多种方法均不行,过来请教各位大神有没有解决方法?
...全文
1876 17 打赏 收藏 转发到动态 举报
写回复
用AI写文章
17 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_28430023 2015-05-23
  • 打赏
  • 举报
回复
学习了不错哦
baidu_28429611 2015-05-23
  • 打赏
  • 举报
回复
重启salt-minion
sinat_28409379 2015-05-22
  • 打赏
  • 举报
回复
henhao
wang-s 2015-05-21
  • 打赏
  • 举报
回复
我现在在Ubuntu下安装的calamari,已经监测好多天了。不过我用centos安calamari没有出现过上面的界面,一直是500,内部服务器出错。 centos下安calamari太麻烦了,
wang-s 2015-05-20
  • 打赏
  • 举报
回复
引用 10 楼 wpwp40 的回复:
[quote=引用 9 楼 u011384879 的回复:] 你进入/dashboard/时会不会出错?
是用的CentOS 6.5,我就根本进不去dashboard目录,提示没有ceph cluster。这几天都没弄了,,这是截图。 [/quote] 你没有安装diamond吧?
月饼40 2015-05-20
  • 打赏
  • 举报
回复
引用 11 楼 u011384879 的回复:
[quote=引用 10 楼 wpwp40 的回复:] [quote=引用 9 楼 u011384879 的回复:] 你进入/dashboard/时会不会出错?
是用的CentOS 6.5,我就根本进不去dashboard目录,提示没有ceph cluster。这几天都没弄了,,这是截图。 [/quote] 你没有安装diamond吧?[/quote] diamond也安装了啊,你的都好了么? 我很久没管她了……
月饼40 2015-05-08
  • 打赏
  • 举报
回复
引用 9 楼 u011384879 的回复:
你进入/dashboard/时会不会出错?

是用的CentOS 6.5,我就根本进不去dashboard目录,提示没有ceph cluster。这几天都没弄了,,这是截图。

wang-s 2015-05-05
  • 打赏
  • 举报
回复
你进入/dashboard/时会不会出错?
wang-s 2015-05-05
  • 打赏
  • 举报
回复
引用 7 楼 wpwp40 的回复:
[quote=引用 6 楼 u011384879 的回复:] [quote=引用 5 楼 wpwp40 的回复:] [quote=引用 4 楼 u011384879 的回复:] 没啊,我换用了淘宝的源,第一次编译出错,clean之后再次编译能编译过,试了几次都是这样。
我也是,后来换了vagrant+virtualbox的方法编译的[/quote] 你的calamari监控可以使用吗? 是不是centos系统? 我安装完成,从浏览器登陆进去后,进入dashboard,一直是HTTP 500内部服务器出错。[/quote] calamari可以登进去,但检测不到ceph集群,显示“4 Ceph servers are connected to Calamari, but no Ceph cluster has been created yet",但我ceph已经安装了,一直还没解决这个问题。你500错误应该是防火墙的问题,iptables和SElinux都关掉了么[/quote] 我把iptables和SELinux关闭后还是一样,一到/dashboard/目录就提示内部服务器出错。 你用的时centos吗?
月饼40 2015-05-05
  • 打赏
  • 举报
回复
引用 6 楼 u011384879 的回复:
[quote=引用 5 楼 wpwp40 的回复:] [quote=引用 4 楼 u011384879 的回复:] 没啊,我换用了淘宝的源,第一次编译出错,clean之后再次编译能编译过,试了几次都是这样。
我也是,后来换了vagrant+virtualbox的方法编译的[/quote] 你的calamari监控可以使用吗? 是不是centos系统? 我安装完成,从浏览器登陆进去后,进入dashboard,一直是HTTP 500内部服务器出错。[/quote] calamari可以登进去,但检测不到ceph集群,显示“4 Ceph servers are connected to Calamari, but no Ceph cluster has been created yet",但我ceph已经安装了,一直还没解决这个问题。你500错误应该是防火墙的问题,iptables和SElinux都关掉了么
wang-s 2015-05-05
  • 打赏
  • 举报
回复
引用 5 楼 wpwp40 的回复:
[quote=引用 4 楼 u011384879 的回复:] 没啊,我换用了淘宝的源,第一次编译出错,clean之后再次编译能编译过,试了几次都是这样。
我也是,后来换了vagrant+virtualbox的方法编译的[/quote] 你的calamari监控可以使用吗? 是不是centos系统? 我安装完成,从浏览器登陆进去后,进入dashboard,一直是HTTP 500内部服务器出错。
月饼40 2015-05-04
  • 打赏
  • 举报
回复
引用 4 楼 u011384879 的回复:
没啊,我换用了淘宝的源,第一次编译出错,clean之后再次编译能编译过,试了几次都是这样。
我也是,后来换了vagrant+virtualbox的方法编译的
wang-s 2015-05-04
  • 打赏
  • 举报
回复
没啊,我换用了淘宝的源,第一次编译出错,clean之后再次编译能编译过,试了几次都是这样。
月饼40 2015-05-03
  • 打赏
  • 举报
回复
楼主你解决这个问题了么?我也遇到了。。。
wang-s 2015-04-23
  • 打赏
  • 举报
回复
删除~/.npm/后重新执行make build-real 错误和以前相同: # make build-real building ui set -e ;\ for d in manage admin login dashboard; do \ echo $d; cd $d; make build; cd .. ; \ done manage make[1]: Entering directory `/ceph-calamari/calamari-clients/manage' npm install --loglevel warn npm WARN package.json manage@0.0.0 No repository field. > optipng-bin@0.3.11 postinstall /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin > node index.js > pngquant-bin@0.1.7 postinstall /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin > node index.js > jpegtran-bin@0.2.8 postinstall /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin > node index.js > gifsicle@0.1.7 postinstall /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle > node index.js ✓ pre-build test passed successfully ✔ pre-build test passed successfully! ⚠ pre-build test failed, compiling from source... stream.js:94 throw er; // Unhandled stream error in pipe. ^ Error: invalid tar file at Extract.Parse._startEntry (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:145:13) at Extract.Parse._process (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:127:12) at BlockStream.<anonymous> (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:47:8) at BlockStream.emit (events.js:95:17) at BlockStream._emitChunk (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/block-stream/block-stream.js:145:10) at BlockStream.resume (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/block-stream/block-stream.js:58:15) at Extract.Reader.resume (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/fstream/lib/reader.js:255:34) at DirWriter.<anonymous> (/ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/extract.js:57:8) at DirWriter.emit (events.js:92:17) at /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/fstream/lib/dir-writer.js:39:8 npm ERR! weird error 8 npm ERR! not ok code 0 make[1]: *** [build-stamp] 错误 1 make[1]: Leaving directory `/ceph-calamari/calamari-clients/manage' make: *** [build-ui] 错误 2
wang-s 2015-04-23
  • 打赏
  • 举报
回复
# npm -v 1.3.6 # node -v v0.10.33

932

社区成员

发帖
与我相关
我的任务
社区描述
云计算 云存储相关讨论
社区管理员
  • 云存储
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧