怎樣處置懲罰CloudFoundry運用布置時碰到的254毛病

運用SAP雲平台的CloudFoundry布置運用:
《怎樣處置懲罰CloudFoundry運用布置時碰到的254毛病》
在cockpit碰到錯誤信息:instance: a0abe2b5-7623-4cf1-4c65-0c79, index: 0, exit_description: APP/PROC/WEB: Exited with status 254, reason: CRASHED
《怎樣處置懲罰CloudFoundry運用布置時碰到的254毛病》

《怎樣處置懲罰CloudFoundry運用布置時碰到的254毛病》

運用敕令檢察布置日記:
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
問題解決:
《怎樣處置懲罰CloudFoundry運用布置時碰到的254毛病》

《怎樣處置懲罰CloudFoundry運用布置時碰到的254毛病》

要獵取更多Jerry的原創技術文章,請關注民眾號”汪子熙”.

    原文作者:JerryWangSAP
    原文地址: https://segmentfault.com/a/1190000015146861
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞