node.js应用程序的IBM Bluemix部署失败

时间:2015-11-12 22:01:09

标签: node.js ibm-cloud buildpack

部署简单的node.js应用程序(在本地工作)时出错:

ERR     mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/bin’ to ‘/tmp/staged/app/vendor/node/bin’: Directory not empty
ERR mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/include’ to ‘/tmp/staged/app/vendor/node/include’: Directory not empty
ERR mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/licenses’ to ‘/tmp/staged/app/vendor/node/licenses’: Directory not empty
ERR mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/share’ to ‘/tmp/staged/app/vendor/node/share’: Directory not empty
OUT -----> Build failed
OUT        Your build failed!
OUT        If you're stuck, please submit a ticket so we can help:
OUT        http://ibm.biz/bluemixsupport
OUT Staging failed: Buildpack compilation step failed
ERR encountered error: App staging failed in the buildpack compile phase

默认节点buildpack和节点sdk >cf push -b sdk-for-nodejs_v2_5-20150902-1526都失败了。 cf尾部日志仅包含相同的mv错误。

任何提示?

2 个答案:

答案 0 :(得分:1)

使用最新的node.js buildpack:

是有效的

cf push -b https://github.com/cloudfoundry/buildpack-nodejs.git

答案 1 :(得分:0)

尝试使用cf logs appname --recent,如以下链接中的Node.js调试暂存错误中所述:

https://www.ng.bluemix.net/docs/troubleshoot/debugging.html#debug_stgerr