Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Build calamari client code failed

Xinili Guan edited this page Jul 26, 2015 · 3 revisions

Hi;

I need to build my calamari client code for Centos 7 environment, and create my build environment in RHEH 6. I followed the instruction in https://github.com/ceph/romana

The build failed with the error message:

[root@acme64 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 `/temp/calamari-repo/calamari-clients/manage'

npm install --loglevel warn

npm WARN package.json manage@0.0.0 No repository field.

npm WARN package.json manage@0.0.0 No license field.

npm WARN deprecated find-file@0.1.4: Use the globby package instead

|

optipng-bin@0.3.11 postinstall /temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin

node index.js

â pre-build test passed successfully!

jpegtran-bin@0.2.8 postinstall /temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin

node index.js

gifsicle@0.1.7 postinstall /temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle

node index.js

â  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 (/temp/calamari-repo/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 (/temp/calamari-repo/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> (/temp/calamari-repo/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:107:17)

at BlockStream._emitChunk (/temp/calamari-repo/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 (/temp/calamari-repo/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 (/temp/calamari-repo/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> (/temp/calamari-repo/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:104:17)

at /temp/calamari-repo/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

pngquant-bin@0.1.7 postinstall /temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin

node index.js

â pre-build test passed successfully

npm ERR! Linux 2.6.32-504.30.3.el6.x86_64

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--loglevel" "warn"

npm ERR! node v0.12.7

npm ERR! npm v2.11.3

npm ERR! code ELIFECYCLE

npm ERR! gifsicle@0.1.7 postinstall: node index.js

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the gifsicle@0.1.7 postinstall script 'node index.js'.

npm ERR! This is most likely a problem with the gifsicle package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR! node index.js

npm ERR! You can get their info via:

npm ERR! npm owner ls gifsicle

npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

npm ERR! /temp/calamari-repo/calamari-clients/manage/npm-debug.log

make[1]: *** [build-stamp] Error 1

make[1]: Leaving directory `/temp/calamari-repo/calamari-clients/manage'

make: *** [build-ui] Error 2

[root@acme64 calamari-clients]#

I also checked the npm owner ls gifsicle:

[root@acme64 calamari-clients]# npm owner ls gifsicle

sindresorhus sindresorhus@gmail.com

kevva kevinmartensson@gmail.com

[root@acme64 calamari-clients]#

Can anyone help to find that is the a known issue and what is the solution?

Thanks alot;

Charley

P.S.

The error message from the log:

45080 verbose about to build /temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin

45081 verbose unlock done using /root/.npm/_locks/grunt-contrib-imagemin-2c1e12b587f024ea.lock for /temp/calamari- repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin

45082 verbose stack Error: gifsicle@0.1.7 postinstall: node index.js

45082 verbose stack Exit status 1

45082 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils /lifecycle.js:213:16)

45082 verbose stack at EventEmitter.emit (events.js:110:17)

45082 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)

45082 verbose stack at ChildProcess.emit (events.js:110:17)

45082 verbose stack at maybeClose (child_process.js:1015:16)

45082 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

45083 verbose pkgid gifsicle@0.1.7

45084 verbose cwd /temp/calamari-repo/calamari-clients/manage

45085 error Linux 2.6.32-504.30.3.el6.x86_64

45086 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--loglevel" "warn"

45087 error node v0.12.7

45088 error npm v2.11.3

45089 error code ELIFECYCLE

45090 error gifsicle@0.1.7 postinstall: node index.js

45090 error Exit status 1

45091 error Failed at the gifsicle@0.1.7 postinstall script 'node index.js'.

45091 error This is most likely a problem with the gifsicle package,

45091 error not with npm itself.

45091 error Tell the author that this fails on your system:

45091 error node index.js

45091 error You can get their info via:

45091 error npm owner ls gifsicle

45091 error There is likely additional logging output above.

45092 verbose exit [ 1, true ]

45093 verbose unbuild node_modules/grunt-contrib-imagemin/node_modules/gifsicle

Clone this wiki locally