码迷,mamicode.com
首页 > 其他好文 > 详细

如何处理CloudFoundry应用部署时遇到的254错误

时间:2018-06-02 22:18:09      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:sap云平台   文章   技术分享   and   gem   imageview   存在   二维码   monit   

使用SAP云平台的CloudFoundry部署应用:
技术分享图片
在cockpit遇到错误信息:instance: a0abe2b5-7623-4cf1-4c65-0c79, index: 0, exit_description: APP/PROC/WEB: Exited with status 254, reason: CRASHED
技术分享图片

技术分享图片

使用命令查看部署日志:
cf logs connectvity-demo-approuter --recent

2018-05-30T11:33:30.95+0800 [CELL/0] OUT Starting health monitoring of container
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! Linux 4.4.0-119-generic
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! argv "/home/vcap/deps/0/node/bin/node" "/home/vcap/deps/0/bin/npm" "start"
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! node v6.13.1
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! npm v3.10.10
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! path /home/vcap/app/package.json
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! code ENOENT
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! errno -2
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! syscall open
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! enoent ENOENT: no such file or directory, open ‘/home/vcap/app/package.json‘
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! enoent ENOENT: no such file or directory, open ‘/home/vcap/app/package.json‘
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! enoent This is most likely not a problem with npm itself
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! enoent and is related to npm not being able to find a file.
2018-05-30T11:33:31.68+0800 [APP/PROC/WEB/0] ERR npm ERR! enoent
2018-05-30T11:33:31.69+0800 [APP/PROC/WEB/0] ERR npm ERR! Please include the following file with any support request:
发现原因是build时找不到package.json. 但我确认我部署的zip文件里存在package.json

解决方案

使用CLI进行部署:

cf push -f ./approuter-manifest.yml
问题解决:
技术分享图片

技术分享图片

要获取更多Jerry的原创技术文章,请关注公众号"汪子熙"或者扫描下面二维码:

技术分享图片

技术分享图片

如何处理CloudFoundry应用部署时遇到的254错误

标签:sap云平台   文章   技术分享   and   gem   imageview   存在   二维码   monit   

原文地址:https://www.cnblogs.com/sap-jerry/p/9126971.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!