Git Product home page Git Product logo

instana-cf-test-node-app's People

Contributors

mmanciop avatar

Watchers

 avatar  avatar

instana-cf-test-node-app's Issues

fails to deploy to Pivotal Cloud Foundry

good day,

ran

npm install --no-bin-links to build and ran node app.js locally without issue

when I deploy to a PCF foundation I get a list of nasty errors, any thoughts?

cf push -f manifest/manifest.yml -b https://github.com/cloudfoundry/nodejs-buildpack
Pushing from manifest to org myorg / space dev as admin...
Using manifest file manifest/manifest.yml
Getting app info...
Updating app with these attributes...
  name:                test-node-app
  path:                /Volumes/GoogleDrive/My Drive/Pivotal/workspace/instana-cf-test-node-app
  buildpacks:
+   https://github.com/cloudfoundry/nodejs-buildpack
  disk quota:          1G
  health check type:   port
  instances:           1
  memory:              1G
  stack:               cflinuxfs3
  routes:
    test-node-app-grouchy-lizard.apps.fostercity.cf-app.com

Updating app test-node-app...
Mapping routes...
Comparing local files to remote cache...
Packaging files to upload...
Uploading files...
 1.93 MiB / 1.93 MiB [==========================================================================================================================================================================] 100.00% 3s

Waiting for API to complete processing files...

Staging app and tracing logs...
   Cell a45b1ec2-6264-420b-a773-b59a9d0c186c creating container for instance 814ca151-44ab-43df-b3d6-22b95c42305c
   Cell a45b1ec2-6264-420b-a773-b59a9d0c186c successfully created container for instance 814ca151-44ab-43df-b3d6-22b95c42305c
   Downloading app package...
   Downloaded app package (2.5M)
   -----> Download go 1.12.4
   -----> Running go build supply
   /tmp/buildpackdownloads/ddcdba8d520546385414ac76bc084798 ~
   ~
   -----> Nodejs Buildpack version 1.6.56
   -----> Installing binaries
          engines.node (package.json): >=10.2
          engines.npm (package.json): unspecified (use default)
          **WARNING** Dangerous semver range (>) in engines.node. See: http://docs.cloudfoundry.org/buildpacks/node/node-tips.html
   -----> Installing node 12.10.0
          Download [https://buildpacks.cloudfoundry.org/dependencies/node/node-12.10.0-linux-x64-cflinuxfs3-d99cc0e3.tgz]
          Using default npm version: 6.10.3
   -----> Installing yarn 1.17.3
          Download [https://buildpacks.cloudfoundry.org/dependencies/yarn/yarn-1.17.3-any-stack-e3835194.tar.gz]
          Installed yarn 1.17.3
   -----> Creating runtime environment
          NODE_ENV=production
          NODE_HOME=/tmp/contents280706764/deps/0/node
          NODE_MODULES_CACHE=true
          NODE_VERBOSE=false
          NPM_CONFIG_LOGLEVEL=error
          NPM_CONFIG_PRODUCTION=true
   -----> Building dependencies
          Prebuild detected (node_modules already exists)
          Rebuilding any native modules
   > [email protected] install /tmp/app/node_modules/dtrace-provider
   > node-gyp rebuild || node suppress-error.js
   make: Entering directory '/tmp/app/node_modules/dtrace-provider/build'
     TOUCH Release/obj.target/DTraceProviderStub.stamp
   make: Leaving directory '/tmp/app/node_modules/dtrace-provider/build'
   > [email protected] install /tmp/app/node_modules/event-loop-stats
   > node-gyp rebuild
   make: Entering directory '/tmp/app/node_modules/event-loop-stats/build'
     CXX(target) Release/obj.target/eventLoopStats/src/eventLoopStats.o
   In file included from ../../nan/nan_converters.h:67:0,
                    from ../../nan/nan.h:221,
                    from ../src/eventLoopStats.cc:1:
   ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
   ../../nan/nan_converters_43_inl.h:18:51: warning: ‘v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
          val->To ## TYPE(isolate->GetCurrentContext())                            \
                                                      ^
   ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
    X(Boolean)
    ^
   In file included from /tmp/contents280706764/deps/0/node/include/node/v8-internal.h:14:0,
                    from /tmp/contents280706764/deps/0/node/include/node/v8.h:25,
                    from /tmp/contents280706764/deps/0/node/include/node/node.h:63,
                    from ../../nan/nan.h:52,
                    from ../src/eventLoopStats.cc:1:
   /tmp/contents280706764/deps/0/node/include/node/v8.h:2537:59: note: declared here
                    V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
                                                              ^
   /tmp/contents280706764/deps/0/node/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../../nan/nan_converters.h:67:0,
                    from ../../nan/nan.h:221,
                    from ../src/eventLoopStats.cc:1:
   ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
   ../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
      return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                            ^
   ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
    X(bool, Boolean)
    ^
   In file included from /tmp/contents280706764/deps/0/node/include/node/v8-internal.h:14:0,
                    from /tmp/contents280706764/deps/0/node/include/node/v8.h:25,
                    from /tmp/contents280706764/deps/0/node/include/node/node.h:63,
                    from ../../nan/nan.h:52,
                    from ../src/eventLoopStats.cc:1:
   /tmp/contents280706764/deps/0/node/include/node/v8.h:2575:51: note: declared here
                    V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                      ^
   /tmp/contents280706764/deps/0/node/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../../nan/nan_new.h:189:0,
                    from ../../nan/nan.h:222,
                    from ../src/eventLoopStats.cc:1:
   ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
   ../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
                              , obj));
                                   ^
   In file included from /tmp/contents280706764/deps/0/node/include/node/node.h:63:0,
                    from ../../nan/nan.h:52,
                    from ../src/eventLoopStats.cc:1:
   /tmp/contents280706764/deps/0/node/include/node/v8.h:4138:31: note: candidate: static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)
      static MaybeLocal<Function> New(
                                  ^~~
   /tmp/contents280706764/deps/0/node/include/node/v8.h:4138:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
   In file included from ../src/eventLoopStats.cc:1:0:
   ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
   ../../nan/nan.h:1064:78: warning: ‘v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
          v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                                 ^
   In file included from /tmp/contents280706764/deps/0/node/include/node/v8-internal.h:14:0,
                    from /tmp/contents280706764/deps/0/node/include/node/v8.h:25,
                    from /tmp/contents280706764/deps/0/node/include/node/node.h:63,
                    from ../../nan/nan.h:52,
                    from ../src/eventLoopStats.cc:1:
   /tmp/contents280706764/deps/0/node/include/node/v8.h:2557:31: note: declared here
                    Local<String> ToString(Isolate* isolate) const);
                                  ^
   /tmp/contents280706764/deps/0/node/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/eventLoopStats.cc:1:0:
   ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
   ../../nan/nan.h:1855:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
        New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                   ^
   In file included from /tmp/contents280706764/deps/0/node/include/node/v8-internal.h:14:0,
                    from /tmp/contents280706764/deps/0/node/include/node/v8.h:25,
                    from /tmp/contents280706764/deps/0/node/include/node/node.h:63,
                    from ../../nan/nan.h:52,
                    from ../src/eventLoopStats.cc:1:
   /tmp/contents280706764/deps/0/node/include/node/v8.h:3372:22: note: declared here
                    bool Set(Local<Value> key, Local<Value> value));
                         ^
   /tmp/contents280706764/deps/0/node/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/eventLoopStats.cc:1:0:
   ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
   ../../nan/nan.h:1861:42: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
        New(persistentHandle)->Set(key, value);
                                             ^
   In file included from /tmp/contents280706764/deps/0/node/include/node/v8-internal.h:14:0,
                    from /tmp/contents280706764/deps/0/node/include/node/v8.h:25,
                    from /tmp/contents280706764/deps/0/node/include/node/node.h:63,
                    from ../../nan/nan.h:52,
                    from ../src/eventLoopStats.cc:1:
   /tmp/contents280706764/deps/0/node/include/node/v8.h:3372:22: note: declared here
                    bool Set(Local<Value> key, Local<Value> value));
                         ^
   /tmp/contents280706764/deps/0/node/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/eventLoopStats.cc:1:0:
   ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
   ../../nan/nan.h:1867:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
        New(persistentHandle)->Set(index, value);
                                               ^
   In file included from /tmp/contents280706764/deps/0/node/include/node/v8-internal.h:14:0,
                    from /tmp/contents280706764/deps/0/node/include/node/v8.h:25,
                    from /tmp/contents280706764/deps/0/node/include/node/node.h:63,
                    from ../../nan/nan.h:52,
                    from ../src/eventLoopStats.cc:1:
   /tmp/contents280706764/deps/0/node/include/node/v8.h:3381:22: note: declared here
                    bool Set(uint32_t index, Local<Value> value));
                         ^
   /tmp/contents280706764/deps/0/node/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/eventLoopStats.cc:1:0:
   ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
   ../../nan/nan.h:1873:61: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
            New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                                ^
   In file included from /tmp/contents280706764/deps/0/node/include/node/v8-internal.h:14:0,
                    from /tmp/contents280706764/deps/0/node/include/node/v8.h:25,
                    from /tmp/contents280706764/deps/0/node/include/node/node.h:63,
                    from ../../nan/nan.h:52,
                    from ../src/eventLoopStats.cc:1:
   /tmp/contents280706764/deps/0/node/include/node/v8.h:3425:51: note: declared here
      V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                      ^
   /tmp/contents280706764/deps/0/node/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/eventLoopStats.cc:1:0:
   ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
   ../../nan/nan.h:1879:55: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
        return scope.Escape(New(persistentHandle)->Get(key));
                                                          ^
   In file included from /tmp/contents280706764/deps/0/node/include/node/v8-internal.h:14:0,
                    from /tmp/contents280706764/deps/0/node/include/node/v8.h:25,
                    from /tmp/contents280706764/deps/0/node/include/node/node.h:63,
                    from ../../nan/nan.h:52,
                    from ../src/eventLoopStats.cc:1:
   /tmp/contents280706764/deps/0/node/include/node/v8.h:3425:51: note: declared here
      V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                      ^
   /tmp/contents280706764/deps/0/node/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/eventLoopStats.cc:1:0:
   ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
   ../../nan/nan.h:1884:57: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
        return scope.Escape(New(persistentHandle)->Get(index));
                                                            ^
   In file included from /tmp/contents280706764/deps/0/node/include/node/v8-internal.h:14:0,
                    from /tmp/contents280706764/deps/0/node/include/node/v8.h:25,
                    from /tmp/contents280706764/deps/0/node/include/node/node.h:63,
                    from ../../nan/nan.h:52,
                    from ../src/eventLoopStats.cc:1:
   /tmp/contents280706764/deps/0/node/include/node/v8.h:3429:51: note: declared here
      V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                      ^
   /tmp/contents280706764/deps/0/node/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from /usr/include/c++/7/cassert:44:0,
                    from /tmp/contents280706764/deps/0/node/include/node/node_object_wrap.h:26,
                    from ../../nan/nan.h:54,
                    from ../src/eventLoopStats.cc:1:
   ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
   ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
        assert(persistent().IsNearDeath());
                            ^
   In file included from ../../nan/nan.h:2698:0,
                    from ../src/eventLoopStats.cc:1:
   ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
   ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase<T>::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
        persistent().MarkIndependent();
                                     ^
   In file included from /tmp/contents280706764/deps/0/node/include/node/v8-internal.h:14:0,
                    from /tmp/contents280706764/deps/0/node/include/node/v8.h:25,
                    from /tmp/contents280706764/deps/0/node/include/node/node.h:63,
                    from ../../nan/nan.h:52,
                    from ../src/eventLoopStats.cc:1:
   /tmp/contents280706764/deps/0/node/include/node/v8.h:567:22: note: declared here
          V8_INLINE void MarkIndependent());
                         ^
   /tmp/contents280706764/deps/0/node/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from /usr/include/c++/7/cassert:44:0,
                    from /tmp/contents280706764/deps/0/node/include/node/node_object_wrap.h:26,
                    from ../../nan/nan.h:54,
                    from ../src/eventLoopStats.cc:1:
   ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
   ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
        assert(wrap->handle_.IsNearDeath());
                             ^
   eventLoopStats.target.mk:111: recipe for target 'Release/obj.target/eventLoopStats/src/eventLoopStats.o' failed
   make: *** [Release/obj.target/eventLoopStats/src/eventLoopStats.o] Error 1
   make: Leaving directory '/tmp/app/node_modules/event-loop-stats/build'
   gyp ERR! build error
   gyp ERR! stack Error: `make` failed with exit code: 2
   gyp ERR! stack     at ChildProcess.onExit (/tmp/contents280706764/deps/0/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
   gyp ERR! stack     at ChildProcess.emit (events.js:209:13)
   gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
   gyp ERR! System Linux 4.15.0-58-generic
   gyp ERR! command "/tmp/contents280706764/deps/0/node/bin/node" "/tmp/contents280706764/deps/0/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
   gyp ERR! cwd /tmp/app/node_modules/event-loop-stats
   gyp ERR! node -v v12.10.0
   gyp ERR! node-gyp -v v5.0.3
   gyp ERR! not ok
   npm ERR! code ELIFECYCLE
   npm ERR! errno 1
   npm ERR! [email protected] install: `node-gyp rebuild`
   npm ERR! Exit status 1
   npm ERR!
   npm ERR! Failed at the [email protected] install script.
   npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
   npm ERR! A complete log of this run can be found in:
   npm ERR!     /home/vcap/.npm/_logs/2019-09-12T16_05_19_144Z-debug.log
          **ERROR** Unable to build dependencies: exit status 1
   Failed to compile droplet: Failed to run all supply scripts: exit status 14
   Exit status 223
   Cell a45b1ec2-6264-420b-a773-b59a9d0c186c stopping instance 814ca151-44ab-43df-b3d6-22b95c42305c
   Cell a45b1ec2-6264-420b-a773-b59a9d0c186c destroying container for instance 814ca151-44ab-43df-b3d6-22b95c42305c
Error staging application: App staging failed in the buildpack compile phase
FAILED

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.