Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code in the master branch fails to build #84

Open
augusto-herrmann opened this issue Aug 27, 2019 · 0 comments
Open

Code in the master branch fails to build #84

augusto-herrmann opened this issue Aug 27, 2019 · 0 comments

Comments

@augusto-herrmann
Copy link

When trying to build the application cloned from the master branch with the following command:

$ docker-compose up -d

I get a bunch of errors:

Building app
Step 1/8 : FROM node:argon
 ---> ef4b194d8fcf
Step 2/8 : MAINTAINER Matías Lescano <[email protected]>
 ---> Running in b4c598ba6b1d
Removing intermediate container b4c598ba6b1d
 ---> 529e36906cc4
Step 3/8 : RUN apt-get update &&   apt-get install -y libkrb5-dev &&   npm config set python python2.7
 ---> Running in 3c5eca0a1141
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie InRelease
Get:2 http://deb.debian.org jessie-updates InRelease [16.3 kB]
Get:3 http://deb.debian.org jessie Release.gpg [1652 B]
Get:4 http://deb.debian.org jessie Release [77.3 kB]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [886 kB]
Get:6 http://deb.debian.org jessie-updates/main amd64 Packages [20 B]
Get:7 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Fetched 10.1 MB in 26s (388 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  krb5-multidev libgssapi-krb5-2 libgssrpc4 libk5crypto3 libkadm5clnt-mit9
  libkadm5srv-mit9 libkrb5-3 libkrb5support0
Suggested packages:
  krb5-doc krb5-user
Recommended packages:
  krb5-locales
The following packages will be upgraded:
  krb5-multidev libgssapi-krb5-2 libgssrpc4 libk5crypto3 libkadm5clnt-mit9
  libkadm5srv-mit9 libkrb5-3 libkrb5-dev libkrb5support0
9 upgraded, 0 newly installed, 0 to remove and 126 not upgraded.
Need to get 1059 kB of archives.
After this operation, 413 kB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security/ jessie/updates/main libkrb5-dev amd64 1.12.1+dfsg-19+deb8u5 [43.1 kB]
Get:2 http://security.debian.org/debian-security/ jessie/updates/main krb5-multidev amd64 1.12.1+dfsg-19+deb8u5 [146 kB]
Get:3 http://security.debian.org/debian-security/ jessie/updates/main libgssrpc4 amd64 1.12.1+dfsg-19+deb8u5 [86.7 kB]
Get:4 http://security.debian.org/debian-security/ jessie/updates/main libk5crypto3 amd64 1.12.1+dfsg-19+deb8u5 [115 kB]
Get:5 http://security.debian.org/debian-security/ jessie/updates/main libgssapi-krb5-2 amd64 1.12.1+dfsg-19+deb8u5 [152 kB]
Get:6 http://security.debian.org/debian-security/ jessie/updates/main libkrb5-3 amd64 1.12.1+dfsg-19+deb8u5 [303 kB]
Get:7 http://security.debian.org/debian-security/ jessie/updates/main libkrb5support0 amd64 1.12.1+dfsg-19+deb8u5 [59.5 kB]
Get:8 http://security.debian.org/debian-security/ jessie/updates/main libkadm5srv-mit9 amd64 1.12.1+dfsg-19+deb8u5 [83.5 kB]
Get:9 http://security.debian.org/debian-security/ jessie/updates/main libkadm5clnt-mit9 amd64 1.12.1+dfsg-19+deb8u5 [69.0 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 1059 kB in 3s (295 kB/s)
(Reading database ... 21675 files and directories currently installed.)
Preparing to unpack .../libkrb5-dev_1.12.1+dfsg-19+deb8u5_amd64.deb ...
Unpacking libkrb5-dev (1.12.1+dfsg-19+deb8u5) over (1.12.1+dfsg-19+deb8u4) ...
Preparing to unpack .../krb5-multidev_1.12.1+dfsg-19+deb8u5_amd64.deb ...
Unpacking krb5-multidev (1.12.1+dfsg-19+deb8u5) over (1.12.1+dfsg-19+deb8u4) ...
Preparing to unpack .../libgssrpc4_1.12.1+dfsg-19+deb8u5_amd64.deb ...
Unpacking libgssrpc4:amd64 (1.12.1+dfsg-19+deb8u5) over (1.12.1+dfsg-19+deb8u4) ...
Preparing to unpack .../libk5crypto3_1.12.1+dfsg-19+deb8u5_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.12.1+dfsg-19+deb8u5) over (1.12.1+dfsg-19+deb8u4) ...
Preparing to unpack .../libgssapi-krb5-2_1.12.1+dfsg-19+deb8u5_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.12.1+dfsg-19+deb8u5) over (1.12.1+dfsg-19+deb8u4) ...
Preparing to unpack .../libkrb5-3_1.12.1+dfsg-19+deb8u5_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.12.1+dfsg-19+deb8u5) over (1.12.1+dfsg-19+deb8u4) ...
Preparing to unpack .../libkrb5support0_1.12.1+dfsg-19+deb8u5_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.12.1+dfsg-19+deb8u5) over (1.12.1+dfsg-19+deb8u4) ...
Preparing to unpack .../libkadm5srv-mit9_1.12.1+dfsg-19+deb8u5_amd64.deb ...
Unpacking libkadm5srv-mit9:amd64 (1.12.1+dfsg-19+deb8u5) over (1.12.1+dfsg-19+deb8u4) ...
Preparing to unpack .../libkadm5clnt-mit9_1.12.1+dfsg-19+deb8u5_amd64.deb ...
Unpacking libkadm5clnt-mit9:amd64 (1.12.1+dfsg-19+deb8u5) over (1.12.1+dfsg-19+deb8u4) ...
Setting up libkrb5support0:amd64 (1.12.1+dfsg-19+deb8u5) ...
Setting up libk5crypto3:amd64 (1.12.1+dfsg-19+deb8u5) ...
Setting up libkrb5-3:amd64 (1.12.1+dfsg-19+deb8u5) ...
Setting up libgssapi-krb5-2:amd64 (1.12.1+dfsg-19+deb8u5) ...
Setting up libgssrpc4:amd64 (1.12.1+dfsg-19+deb8u5) ...
Setting up libkadm5srv-mit9:amd64 (1.12.1+dfsg-19+deb8u5) ...
Setting up libkadm5clnt-mit9:amd64 (1.12.1+dfsg-19+deb8u5) ...
Setting up krb5-multidev (1.12.1+dfsg-19+deb8u5) ...
Setting up libkrb5-dev (1.12.1+dfsg-19+deb8u5) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Removing intermediate container 3c5eca0a1141
 ---> 3783b49fa86c
Step 4/8 : COPY package.json /usr/src/
 ---> 2f5e65b40504
Step 5/8 : WORKDIR /usr/src
 ---> Running in 50707faa1b8c
Removing intermediate container 50707faa1b8c
 ---> 056d3ccbaa9e
Step 6/8 : RUN npm install --quiet --unsafe-perm
 ---> Running in 373f14773b9f
npm WARN package.json [email protected] No README data
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm WARN engine [email protected]: wanted: {"node":">=6.0"} (current: {"node":"4.9.1","npm":"2.15.11"})
npm WARN deprecated [email protected]: Please upgrade to 2.2.19 or higher
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm WARN deprecated [email protected]: Deprecated, use jstransformer
npm WARN deprecated [email protected]: Please update to at least constantinople 3.1.1
npm WARN deprecated [email protected]: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header).  This notice will go away with v5.0.2+ once it is released.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.
npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please upgrade to 2.2.19 or higher
npm WARN engine [email protected]: wanted: {"node":">= 6"} (current: {"node":"4.9.1","npm":"2.15.11"})
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN peerDependencies The peer dependency kerberos@~0.0 included from mongodb-core will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN deprecated [email protected]: This module relies on Node.js's internals and will break at some point. Do not use it, and update to [email protected].
npm WARN engine [email protected]: wanted: {"node":">= 6"} (current: {"node":"4.9.1","npm":"2.15.11"})

> [email protected] install /usr/src/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/usr/src/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
kerberos.target.mk:100: recipe for target 'Release/obj.target/kerberos/lib/kerberos.o' failed
make: Leaving directory '/usr/src/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'

> [email protected] install /usr/src/node_modules/mongoose/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/usr/src/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
  CXX(target) Release/obj.target/bson/ext/bson.o
bson.target.mk:94: recipe for target 'Release/obj.target/bson/ext/bson.o' failed
make: Leaving directory '/usr/src/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.

> [email protected] install /usr/src/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)

make: Entering directory '/usr/src/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
../lib/kerberos.cc: In static member function 'static void Kerberos::After(uv_work_t*)':
../lib/kerberos.cc:948:50: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated (declared at ../node_modules/nan/nan.h:1618) [-Wdeprecated-declarations]
     worker->callback->Call(ARRAY_SIZE(info), info);
                                                  ^
../lib/kerberos.cc:972:50: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated (declared at ../node_modules/nan/nan.h:1618) [-Wdeprecated-declarations]
     worker->callback->Call(ARRAY_SIZE(info), info);
                                                  ^
  CXX(target) Release/obj.target/kerberos/lib/worker.o
  CC(target) Release/obj.target/kerberos/lib/kerberosgss.o
../lib/kerberosgss.c:36:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic push
 ^
../lib/kerberosgss.c:37:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
 ^
../lib/kerberosgss.c: In function 'authenticate_gss_client_wrap':
../lib/kerberosgss.c:446:19: warning: variable 'server_conf_flags' set but not used [-Wunused-but-set-variable]
   char buf[4096], server_conf_flags;
                   ^
../lib/kerberosgss.c: At top level:
../lib/kerberosgss.c:1236:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic pop
 ^
  CC(target) Release/obj.target/kerberos/lib/base64.o
  CXX(target) Release/obj.target/kerberos/lib/kerberos_context.o
  SOLINK_MODULE(target) Release/obj.target/kerberos.node
  COPY Release/kerberos.node
make: Leaving directory '/usr/src/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos/build'

> [email protected] postinstall /usr/src/node_modules/xo/node_modules/eslint-plugin-ava/node_modules/espurify/node_modules/core-js
> node scripts/postinstall || echo "ignore"


> [email protected] postinstall /usr/src/node_modules/xo/node_modules/babel-eslint/node_modules/babel-types/node_modules/babel-runtime/node_modules/core-js
> node scripts/postinstall || echo "ignore"


> [email protected] postinstall /usr/src/node_modules/xo/node_modules/babel-eslint/node_modules/babel-traverse/node_modules/babel-runtime/node_modules/core-js
> node scripts/postinstall || echo "ignore"


> [email protected] postinstall /usr/src
> node ./bin/civicstack-install --config && node ./bin/civicstack-config && node ./bin/civicstack-build

module.js:327
    throw err;
    ^

Error: Cannot find module '/usr/src/bin/civicstack-install'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:140:18)
    at node.js:1043:3

npm ERR! Linux 4.15.0-58-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--quiet" "--unsafe-perm"
npm ERR! node v4.9.1
npm ERR! npm  v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node ./bin/civicstack-install --config && node ./bin/civicstack-config && node ./bin/civicstack-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'node ./bin/civicstack-install --config && node ./bin/civicstack-config && node ./bin/civicstack-build'.
npm ERR! This is most likely a problem with the civic-stack package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./bin/civicstack-install --config && node ./bin/civicstack-config && node ./bin/civicstack-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs civic-stack
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls civic-stack
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /usr/src/npm-debug.log
ERROR: Service 'app' failed to build: The command '/bin/sh -c npm install --quiet --unsafe-perm' returned a non-zero code: 1

In particular, it seems that the following command:

$ node ./bin/civicstack-install --config && node ./bin/civicstack-config && node ./bin/civicstack-build

gets the error:

module.js:327
    throw err;
    ^

Error: Cannot find module '/usr/src/bin/civicstack-install'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:140:18)
    at node.js:1043:3

There seems to be a file named civicstack-install, but the build process cannot find it. Perhaps a configuration path is missing somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant