Comments (10)
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.
@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.
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.
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.
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.
@samdai Hi Sam, we tried to push a sample app with your package.json
and it worked with no problem.
- Is this your actual
package.json
file, or have you removed all the versions for this sample? - Can you give us any more information about your development environment?
- 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.
@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.
- This is my actual package.json file.
- My application is implemented in nodejs, it's an oauth server, like https://github.com/AF83/auth_server.
- 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.
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.
@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.
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)
- Release: nodejs-buildpack (Jun) HOT 1
- Release: nodejs-buildpack (Jul) HOT 1
- Deployment to BTP fails when Node is upgraded to v16.20.1 HOT 2
- Supply step do not retry when error is connection reset by peer HOT 4
- Release: nodejs-buildpack (Aug)
- Release: nodejs-buildpack (Sep) HOT 1
- BuildpackCompileFailed - Cf push sometimes fails on download go without an error message
- Release: nodejs-buildpack (Oct) HOT 1
- Weird no space left error when pushing nextjs app HOT 1
- nodejs_buildpack-v1_8_14 errors
- Deployment of native binary and node addon fails HOT 1
- Release: nodejs-buildpack (Nov) HOT 3
- Please keep nodejs 18.18.0 until bug in nodejs >= 18.18.2 is fixed (50263) HOT 1
- Go is downloaded multiple times HOT 2
- Release: nodejs-buildpack (Dec) HOT 1
- BOSH configured custom trusted certificate support
- Build pack fails on installing any new modules HOT 1
- Need a nginx buildpack with "stream_ssl_module" enabled
- Release: nodejs-buildpack (Jan) HOT 1
- Release: nodejs-buildpack (Feb) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodejs-buildpack.