前提・実現したいこと
CentOS7にGrowiをインストールしています。
インストール後の起動で以下のようになり、以下のエラーメッセージで起動できません。
以下の手順を参考に構築しました。
https://qiita.com/yuki476/items/122bd5cc10355ce02b68
構成
項目 | バージョン |
---|---|
OS | CentOS Linux release 7.5.1804 (Core) |
Growi | growi@3.2.10-RC |
MongoDB | 3.6.9 |
Yarn | 1.12.3 |
Node.js | 8.14.0 |
npm | 5.6.0 |
発生している問題・エラーメッセージ
エラーメッセージ # PORT=3000 MODE_ENV=production MONGO_URI="mongodb://x.x.x.x:27017/growi" FILE_UPLOAD=local npm start > growi@3.2.10-RC prestart /opt/growi > npm run build:prod > growi@3.2.10-RC prebuild:prod /opt/growi > npm run plugin:def > growi@3.2.10-RC plugin:def /opt/growi > node bin/generate-plugin-definitions-source.js > growi@3.2.10-RC build:prod /opt/growi > npm run clean && env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --bail > growi@3.2.10-RC clean /opt/growi > npm-run-all -p clean:* > growi@3.2.10-RC clean:app /opt/growi > rimraf -- public/js public/styles > growi@3.2.10-RC clean:dll /opt/growi > rimraf -- public/dll > growi@3.2.10-RC clean:report /opt/growi > rimraf -- report sh: line 1: 1762 Killed env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --bail npm ERR! code ELIFECYCLE npm ERR! errno 137 npm ERR! growi@3.2.10-RC build:prod: `npm run clean && env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --bail` npm ERR! Exit status 137 npm ERR! npm ERR! Failed at the growi@3.2.10-RC build:prod script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-12-06T07_34_21_638Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 137 npm ERR! growi@3.2.10-RC prestart: `npm run build:prod` npm ERR! Exit status 137 npm ERR! npm ERR! Failed at the growi@3.2.10-RC prestart script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-12-06T07_34_21_650Z-debug.log
エラーメッセージ /root/.npm/_logs/2018-12-06T07_34_21_638Z-debug.log 0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/bin/npm', 'run', 'build:prod' ] 2 info using npm@5.6.0 3 info using node@v8.14.0 4 verbose run-script [ 'prebuild:prod', 'build:prod', 'postbuild:prod' ] 5 info lifecycle growi@3.2.10-RC~prebuild:prod: growi@3.2.10-RC 6 verbose lifecycle growi@3.2.10-RC~prebuild:prod: unsafe-perm in lifecycle true 7 verbose lifecycle growi@3.2.10-RC~prebuild:prod: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-b in:/opt/growi/node_modules/.bin:/usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/growi/node_module s/.bin:/sbin:/bin:/usr/sbin:/usr/bin 8 verbose lifecycle growi@3.2.10-RC~prebuild:prod: CWD: /opt/growi 9 silly lifecycle growi@3.2.10-RC~prebuild:prod: Args: [ '-c', 'npm run plugin:def' ] 10 silly lifecycle growi@3.2.10-RC~prebuild:prod: Returned: code: 0 signal: null 11 info lifecycle growi@3.2.10-RC~build:prod: growi@3.2.10-RC 12 verbose lifecycle growi@3.2.10-RC~build:prod: unsafe-perm in lifecycle true 13 verbose lifecycle growi@3.2.10-RC~build:prod: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin :/opt/growi/node_modules/.bin:/usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/growi/node_modules/ .bin:/sbin:/bin:/usr/sbin:/usr/bin 14 verbose lifecycle growi@3.2.10-RC~build:prod: CWD: /opt/growi 15 silly lifecycle growi@3.2.10-RC~build:prod: Args: [ '-c', 15 silly lifecycle 'npm run clean && env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --ba il' ] 16 silly lifecycle growi@3.2.10-RC~build:prod: Returned: code: 137 signal: null 17 info lifecycle growi@3.2.10-RC~build:prod: Failed to exec build:prod script 18 verbose stack Error: growi@3.2.10-RC build:prod: `npm run clean && env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --bail` 18 verbose stack Exit status 137 18 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16) 18 verbose stack at emitTwo (events.js:126:13) 18 verbose stack at EventEmitter.emit (events.js:214:7) 18 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 18 verbose stack at emitTwo (events.js:126:13) 18 verbose stack at ChildProcess.emit (events.js:214:7) 18 verbose stack at maybeClose (internal/child_process.js:915:16) 18 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) 19 verbose pkgid growi@3.2.10-RC 20 verbose cwd /opt/growi 21 verbose Linux 3.10.0-862.3.2.el7.x86_64 22 verbose argv "/usr/bin/node" "/bin/npm" "run" "build:prod" 23 verbose node v8.14.0 24 verbose npm v5.6.0 25 error code ELIFECYCLE 26 error errno 137 27 error growi@3.2.10-RC build:prod: `npm run clean && env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --bail` 27 error Exit status 137 28 error Failed at the growi@3.2.10-RC build:prod script. 28 error This is probably not a problem with npm. There is likely additional logging output above. 29 verbose exit [ 137, true ]
エラーメッセージ /root/.npm/_logs/2018-12-06T07_54_25_889Z-debug.log 0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/bin/npm', 'run', 'build:prod' ] 2 info using npm@5.6.0 3 info using node@v8.14.0 4 verbose run-script [ 'prebuild:prod', 'build:prod', 'postbuild:prod' ] 5 info lifecycle growi@3.2.10-RC~prebuild:prod: growi@3.2.10-RC 6 verbose lifecycle growi@3.2.10-RC~prebuild:prod: unsafe-perm in lifecycle true 7 verbose lifecycle growi@3.2.10-RC~prebuild:prod: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/growi/node_modules/.bin:/usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/growi/node_modules/.bin:/sbin:/bin:/usr/sbin:/usr/bin 8 verbose lifecycle growi@3.2.10-RC~prebuild:prod: CWD: /opt/growi 9 silly lifecycle growi@3.2.10-RC~prebuild:prod: Args: [ '-c', 'npm run plugin:def' ] 10 silly lifecycle growi@3.2.10-RC~prebuild:prod: Returned: code: 0 signal: null 11 info lifecycle growi@3.2.10-RC~build:prod: growi@3.2.10-RC 12 verbose lifecycle growi@3.2.10-RC~build:prod: unsafe-perm in lifecycle true 13 verbose lifecycle growi@3.2.10-RC~build:prod: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/growi/node_modules/.bin:/usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/growi/node_modules/.bin:/sbin:/bin:/usr/sbin:/usr/bin 14 verbose lifecycle growi@3.2.10-RC~build:prod: CWD: /opt/growi 15 silly lifecycle growi@3.2.10-RC~build:prod: Args: [ '-c', 15 silly lifecycle 'npm run clean && env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --bail' ] 16 silly lifecycle growi@3.2.10-RC~build:prod: Returned: code: 137 signal: null 17 info lifecycle growi@3.2.10-RC~build:prod: Failed to exec build:prod script 18 verbose stack Error: growi@3.2.10-RC build:prod: `npm run clean && env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --bail` 18 verbose stack Exit status 137 18 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16) 18 verbose stack at emitTwo (events.js:126:13) 18 verbose stack at EventEmitter.emit (events.js:214:7) 18 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 18 verbose stack at emitTwo (events.js:126:13) 18 verbose stack at ChildProcess.emit (events.js:214:7) 18 verbose stack at maybeClose (internal/child_process.js:915:16) 18 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) 19 verbose pkgid growi@3.2.10-RC 20 verbose cwd /opt/growi 21 verbose Linux 3.10.0-862.3.2.el7.x86_64 22 verbose argv "/usr/bin/node" "/bin/npm" "run" "build:prod" 23 verbose node v8.14.0 24 verbose npm v5.6.0 25 error code ELIFECYCLE 26 error errno 137 27 error growi@3.2.10-RC build:prod: `npm run clean && env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --bail` 27 error Exit status 137 28 error Failed at the growi@3.2.10-RC build:prod script. 28 error This is probably not a problem with npm. There is likely additional logging output above. 29 verbose exit [ 137, true ]
試したこと
mongo コマンドで接続できることは確認しました。
Firewallなどは停止しています。
よろしくお願いします。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。