安装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-realbuilding 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 [email protected] No repository field.> [email protected] postinstall /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin
> node index.js
[email protected] 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  [email protected] { [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试了好多种方法均不行,过来请教各位大神有没有解决方法?

解决方案 »

  1.   

    # npm -v
    1.3.6
    # node -v
    v0.10.33
      

  2.   

    删除~/.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 [email protected] No repository field.> [email protected] postinstall /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin
    > node index.js
    [email protected] postinstall /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin
    > node index.js
    [email protected] postinstall /ceph-calamari/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin
    > node index.js
    [email protected] 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
      

  3.   

    没啊,我换用了淘宝的源,第一次编译出错,clean之后再次编译能编译过,试了几次都是这样。
      

  4.   


    我也是,后来换了vagrant+virtualbox的方法编译的
      

  5.   


    我也是,后来换了vagrant+virtualbox的方法编译的你的calamari监控可以使用吗?
    是不是centos系统?
    我安装完成,从浏览器登陆进去后,进入dashboard,一直是HTTP 500内部服务器出错。
      

  6.   


    我也是,后来换了vagrant+virtualbox的方法编译的你的calamari监控可以使用吗?
    是不是centos系统?
    我安装完成,从浏览器登陆进去后,进入dashboard,一直是HTTP 500内部服务器出错。calamari可以登进去,但检测不到ceph集群,显示“4 Ceph servers are connected to Calamari, but no Ceph cluster has been created yet",但我ceph已经安装了,一直还没解决这个问题。你500错误应该是防火墙的问题,iptables和SElinux都关掉了么
      

  7.   


    我也是,后来换了vagrant+virtualbox的方法编译的你的calamari监控可以使用吗?
    是不是centos系统?
    我安装完成,从浏览器登陆进去后,进入dashboard,一直是HTTP 500内部服务器出错。calamari可以登进去,但检测不到ceph集群,显示“4 Ceph servers are connected to Calamari, but no Ceph cluster has been created yet",但我ceph已经安装了,一直还没解决这个问题。你500错误应该是防火墙的问题,iptables和SElinux都关掉了么我把iptables和SELinux关闭后还是一样,一到/dashboard/目录就提示内部服务器出错。
    你用的时centos吗?
      

  8.   

    你进入/dashboard/时会不会出错?
      

  9.   

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

  10.   

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

  11.   

    是用的CentOS 6.5,我就根本进不去dashboard目录,提示没有ceph cluster。这几天都没弄了,,这是截图。
    你没有安装diamond吧?
    diamond也安装了啊,你的都好了么? 我很久没管她了……
      

  12.   

    我现在在Ubuntu下安装的calamari,已经监测好多天了。不过我用centos安calamari没有出现过上面的界面,一直是500,内部服务器出错。
    centos下安calamari太麻烦了,
      

  13.   

    henhao
      

  14.   

    重启salt-minion