Giter VIP home page Giter VIP logo

Comments (10)

cf-gitbot avatar cf-gitbot commented on July 28, 2024

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/118712951.

from nodejs-buildpack.

jvshahid avatar jvshahid commented on July 28, 2024

@samdai is the application you are trying to push open source ? it would be very helpful if we can reproduce this issue locally so we can investigate.

from nodejs-buildpack.

samdai avatar samdai commented on July 28, 2024

sorry, this application is not open source. When I deployed this nodejs application to diego using nodejs buildpack version 1.5.8, it works, the following is the log when starting this application, hope it help you to find out some useful clue.

Creating container
Successfully created container
Downloading app package...
Downloaded app package (4.8M)
Staging...
-------> Buildpack version 1.5.8
-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=true
       NODE_ENV=production
       NODE_MODULES_CACHE=true
-----> Installing binaries
       engines.node (package.json):  ~0.12.7
       engines.npm (package.json):   ~2.11.3

       Downloading and installing node 0.12.12...
       Downloaded [file:///tmp/buildpacks/22639bb8535b7aed430e50ca9e4f7f34/dependencies/https___pivotal-buildpacks.s3.amazonaws.com_concourse-binaries_node_node-0.12.12-linux-x64.tgz]
       Resolving npm version ~2.11.3 via semver.io...
       Downloading and installing npm 2.11.3 (replacing version 2.14.9)...
-----> Restoring cache
       Skipping cache restore (new runtime signature)
-----> Building dependencies
       Prebuild detected (node_modules already exists)
       Rebuilding any native modules


       > [email protected] install /tmp/app/node_modules/mongoskin/node_modules/mongodb/node_modules/bson
       > (node-gyp rebuild 2> builderror.log) || (exit 0)
       make: Entering directory `/tmp/app/node_modules/mongoskin/node_modules/mongodb/node_modules/bson/build'
       CXX(target) Release/obj.target/bson/ext/bson.o
       make: Leaving directory `/tmp/app/node_modules/mongoskin/node_modules/mongodb/node_modules/bson/build'

       > [email protected] install /tmp/app/node_modules/mongoskin/node_modules/mongodb/node_modules/kerberos
       > (node-gyp rebuild 2> builderror.log) || (exit 0)

       make: Entering directory `/tmp/app/node_modules/mongoskin/node_modules/mongodb/node_modules/kerberos/build'
       SOLINK_MODULE(target) Release/obj.target/kerberos.node
       COPY Release/kerberos.node
       make: Leaving directory `/tmp/app/node_modules/mongoskin/node_modules/mongodb/node_modules/kerberos/build'

       > [email protected] install /tmp/app/node_modules/ldapjs/node_modules/dtrace-provider
       > node-gyp rebuild

       make: Entering directory `/tmp/app/node_modules/ldapjs/node_modules/dtrace-provider/build'
       TOUCH Release/obj.target/DTraceProviderStub.stamp
       make: Leaving directory `/tmp/app/node_modules/ldapjs/node_modules/dtrace-provider/build'

       > [email protected] install /tmp/app/node_modules/scrypt
       > node-gyp rebuild

from nodejs-buildpack.

Dannyzen avatar Dannyzen commented on July 28, 2024

Hey @samdai, I understand your project is closed source but would there be a possibility you could share your packages.json with us? That might help the team reproduce the issue and diagnose the problem faster.

from nodejs-buildpack.

samdai avatar samdai commented on July 28, 2024

The content of package.json is as below, we include the dependencies node modules in our code, if you want package.json or version of one node module, please let me know, thanks.

{ "name" : "AuthServer"
, "description": "OAuth Provider"
, "version": "0.1.0"
, "dependencies": {
    "connect": ""
  , "connect-form": ""
  , "connect-sts": ""
  , "cookie-sessions": ""
  , "formidable": ""
  , "futures" : ""
  , "mongoskin": ""
  , "mustache": ""
  , "nodeunit": ""
  , "pg": ""
  , "pg-large-object": ""
  , "jsrsasign": ""
  , "request": ""
  , "log": ""
  , "oauth2-server": ""
  , "ldapjs": ""
  }
, "engines" : {
    "node" : "~0.12.7",
    "npm" : "~2.11.3"
   }
}

from nodejs-buildpack.

davidjahn avatar davidjahn commented on July 28, 2024

@samdai Hi Sam, we tried to push a sample app with your package.json and it worked with no problem.

  1. Is this your actual package.json file, or have you removed all the versions for this sample?
  2. Can you give us any more information about your development environment?
  3. Does this issue still happen when you clear your app's node_modules directory with rm -rf node_modules/ , cf delete your application then try to push it again?

Any more information you can give us will be useful, as we cannot reproduce your problem currently.

from nodejs-buildpack.

samdai avatar samdai commented on July 28, 2024

@davidjahn: Thanks your help, the following is my answer of your questions, this issue is a little weird, we also plan to upgrade the nodejs version of this application, this issue might gone after we upgraded nodejs version.

  1. This is my actual package.json file.
  2. My application is implemented in nodejs, it's an oauth server, like https://github.com/AF83/auth_server.
  3. Yes, this issue still happen when I clear my app's node_modules directory with rm -rf node_modules/ , cf delete my application then try to push it again
Staging...
-------> Buildpack version 1.5.11
-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=true
       NODE_ENV=production
       NODE_MODULES_CACHE=true
-----> Installing binaries
       engines.node (package.json):  ~0.12.7
       engines.npm (package.json):   ~2.11.3

       Downloading and installing node 0.12.13...
       Downloaded [file:///tmp/buildpacks/db690bfa59121d91a378b0db71155aa0/dependencies/https___pivotal-buildpacks.s3.amazonaws.com_concourse-binaries_node_node-0.12.13-linux-x64.tgz]
       Resolving npm version ~2.11.3 via semver.io...
-----> Build failed

       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys

from nodejs-buildpack.

Dannyzen avatar Dannyzen commented on July 28, 2024

It looks as though your version of node is not supported by the 1.5.11 buildpack version you're using.
For a list of supported versions of node for 1.5.11, check out the releases page for that version. There you can find a "packaged binaries" table that highlights what node versions we support.

from nodejs-buildpack.

Dannyzen avatar Dannyzen commented on July 28, 2024

@samdai I stand corrected. As your packages.json contains a ~ it should attempt to use the newest version of that version line (0.12.x). Apologies for the false alarm.

from nodejs-buildpack.

samdai avatar samdai commented on July 28, 2024

Have resolved this issue, the solution is change the npm version of package.json from ~2.11.3 to ~2.15.0 .
Change

, "engines" : {
    "node" : "~0.12.7",
    "npm" : "~2.11.3"
   }

into:

, "engines" : {
    "node" : "~0.12.7",
    "npm" : "~2.15.0"
   }

from nodejs-buildpack.

Related Issues (20)

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.