Openshift無法通過Openshift UI使用node.js最新的盒式磁帶創建node.js應用程序。失敗與以下錯誤創建:創建node.js最新的盒式磁帶時發生Openshift錯誤
Starting Node.js application... The initial build for the application failed: Shell command '/sbin/runuser -s /bin/sh 57eae88f7628e1677c000077 -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c4,c966' /bin/sh -c \"gear postreceive --init >> /tmp/initial-build.log 2>&1\""' returned an error. rc=255
和日誌的尾巴說:
Preparing build for deployment
Deployment id is b941b282
Activating deployment
Git Post-Receive Result: failure
Activation status: failure
Activation failed for the following gears:
57eae88f7628e1677c000077 (Error activating gear: CLIENT_ERROR: Failed to execute: 'control start' for
/var/lib/openshift/57eae88f7628e1677c000077/nodejs
Deployment completed with status: failure
post receive failed
我不知道如何調試這一點。我有一個package.json
,它有一個「主」指向我的app.js
,而我的app.js
正在使用環境變量來設置IP /端口。它通常在當地工作npm install && npm start
。這是一款適用於節點0.10盒式磁帶的應用程序。
它與6.6一起工作。如何獲取永不被創建的容器的日誌? – Kevin
也許有一種方法可以像Node環境一樣啓動容器,而不是運行節點腳本本身以及shell,如bash,zsh或fish,然後遠程啓動並自行啓動節點進程https://docs.openshift .COM /企業/ 3.1/dev_guide/ssh_environment.html –