Openshiftは、最新のnode.jsカートリッジを使用して、Openshift UIを通じてnode.jsアプリケーションを作成できません。これは、次のエラーで作成に失敗します。node.js最新のカートリッジを作成する際にエラーが発生する
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/portを設定しています。通常はnpm install && npm start
でローカルで動作します。これは、ノード0.10カートリッジを使用して動作するアプリでした。
6.6で動作します。決して作成されないコンテナのログを取得するにはどうすればよいですか? – Kevin
ノード・スクリプト自体とbash、zsh、fishなどのシェルを実行するのではなく、ノード環境と同じようにコンテナを起動する方法があります。次に、ノード・プロセスを自分でリモートで開始します。https://docs.openshift .com/enterprise/3.1/dev_guide/ssh_environment.html –