質問編集履歴

2

起動時のエラーの変更

2018/11/30 01:25

投稿

satsukichan
satsukichan

スコア52

test CHANGED
File without changes
test CHANGED
@@ -20,25 +20,37 @@
20
20
 
21
21
  ```
22
22
 
23
- 11月 30 08:51:53 growi.cj.local npm[16292]: npm ERR! /root/.npm/_logs/2018-11-29T23_51_53_228Z-debug.log
23
+ growi.service - Growi
24
24
 
25
- 11月 30 08:51:53 growi.cj.local npm[16292]: npm ERR! code ELIFECYCLE
25
+ Loaded: loaded (/etc/systemd/system/growi.service; enabled; vendor preset: disabled)
26
26
 
27
- 11月 30 08:51:53 growi.cj.local npm[16292]: npm ERR! errno 2
27
+ Active: failed (Result: exit-code) since 金 2018-11-30 10:23:38 JST; 2s ago
28
28
 
29
- 11月 30 08:51:53 growi.cj.local npm[16292]: npm ERR! growi@3.2.9-RC prestart: `npm run build:prod`
29
+ Process: 22466 ExecStart=/root/.nvm/versions/node/v8.11.2/bin/npm (code=exited, status=1/FAILURE)
30
30
 
31
- 11月 30 08:51:53 growi.cj.local npm[16292]: npm ERR! Exit status 2
31
+ Main PID: 22466 (code=exited, status=1/FAILURE)
32
32
 
33
- 11月 30 08:51:53 growi.cj.local npm[16292]: npm ERR!
34
33
 
35
- 11月 30 08:51:53 growi.cj.local npm[16292]: npm ERR! Failed at the growi@3.2.9-RC prestart script.
36
34
 
37
- 11月 30 08:51:53 growi.cj.local npm[16292]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
35
+ 11月 30 10:23:38 growi.cj.local npm[22466]: npm help <term> search for help on <term>
38
36
 
39
- 11月 30 08:51:53 growi.cj.local npm[16292]: npm ERR! A complete log of this run can be found in:
37
+ 11月 30 10:23:38 growi.cj.local npm[22466]: npm help npm involved overview
40
38
 
39
+ 11月 30 10:23:38 growi.cj.local npm[22466]: Specify configs in the ini-formatted file:
40
+
41
+ 11月 30 10:23:38 growi.cj.local npm[22466]: /root/.npmrc
42
+
43
+ 11月 30 10:23:38 growi.cj.local npm[22466]: or on the command line via: npm <command> --key value
44
+
45
+ 11月 30 10:23:38 growi.cj.local npm[22466]: Config info can be viewed via: npm help config
46
+
41
- 11月 30 08:51:53 growi.cj.local npm[16292]: npm ERR! /root/.npm/_logs/2018-11-29T23_51_53_260Z-debug.log
47
+ 11月 30 10:23:38 growi.cj.local npm[22466]: npm@6.4.1 /root/.nvm/versions/node/v8.11.2/lib/node_modules/npm
48
+
49
+ 11月 30 10:23:38 growi.cj.local systemd[1]: growi.service: main process exited, code=exited, status=1/FAILURE
50
+
51
+ 11月 30 10:23:38 growi.cj.local systemd[1]: Unit growi.service entered failed state.
52
+
53
+ 11月 30 10:23:38 growi.cj.local systemd[1]: growi.service failed.
42
54
 
43
55
  ```
44
56
 

1

ログの追記

2018/11/30 01:25

投稿

satsukichan
satsukichan

スコア52

test CHANGED
File without changes
test CHANGED
@@ -54,6 +54,94 @@
54
54
 
55
55
  ただしこの状態ですとGrowiの設定ファイルを読み込まないため全文検索やファイルアップロードの機能が使えません。
56
56
 
57
+ ログの内容は以下のとおりです。
57
58
 
59
+ ```
60
+
61
+ 0 info it worked if it ends with ok
62
+
63
+ 1 verbose cli [ '/usr/local/bin/node',
64
+
65
+ 1 verbose cli '/usr/local/bin/npm',
66
+
67
+ 1 verbose cli 'run',
68
+
69
+ 1 verbose cli 'build:prod' ]
70
+
71
+ 2 info using npm@6.4.1
72
+
73
+ 3 info using node@v11.2.0
74
+
75
+ 4 verbose run-script [ 'prebuild:prod', 'build:prod', 'postbuild:prod' ]
76
+
77
+ 5 info lifecycle growi@3.2.9-RC~prebuild:prod: growi@3.2.9-RC
78
+
79
+ 6 verbose lifecycle growi@3.2.9-RC~prebuild:prod: unsafe-perm in lifecycle true
80
+
81
+ 7 verbose lifecycle growi@3.2.9-RC~prebuild:prod: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/bin/growi/node_modules/.bin:/root/.nvm/versions/node/v8.11.2/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/bin/growi/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
82
+
83
+ 8 verbose lifecycle growi@3.2.9-RC~prebuild:prod: CWD: /usr/local/bin/growi
84
+
85
+ 9 silly lifecycle growi@3.2.9-RC~prebuild:prod: Args: [ '-c', 'npm run plugin:def' ]
86
+
87
+ 10 silly lifecycle growi@3.2.9-RC~prebuild:prod: Returned: code: 0 signal: null
88
+
89
+ 11 info lifecycle growi@3.2.9-RC~build:prod: growi@3.2.9-RC
90
+
91
+ 12 verbose lifecycle growi@3.2.9-RC~build:prod: unsafe-perm in lifecycle true
92
+
93
+ 13 verbose lifecycle growi@3.2.9-RC~build:prod: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/bin/growi/node_modules/.bin:/root/.nvm/versions/node/v8.11.2/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/bin/growi/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
94
+
95
+ 14 verbose lifecycle growi@3.2.9-RC~build:prod: CWD: /usr/local/bin/growi
96
+
97
+ 15 silly lifecycle growi@3.2.9-RC~build:prod: Args: [ '-c',
98
+
99
+ 15 silly lifecycle 'npm run clean && env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --bail' ]
100
+
101
+ 16 silly lifecycle growi@3.2.9-RC~build:prod: Returned: code: 2 signal: null
102
+
103
+ 17 info lifecycle growi@3.2.9-RC~build:prod: Failed to exec build:prod script
104
+
105
+ 18 verbose stack Error: growi@3.2.9-RC build:prod: `npm run clean && env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --bail`
106
+
107
+ 18 verbose stack Exit status 2
108
+
109
+ 18 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
110
+
111
+ 18 verbose stack at EventEmitter.emit (events.js:182:13)
112
+
113
+ 18 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
114
+
115
+ 18 verbose stack at ChildProcess.emit (events.js:182:13)
116
+
117
+ 18 verbose stack at maybeClose (internal/child_process.js:978:16)
118
+
119
+ 18 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
120
+
121
+ 19 verbose pkgid growi@3.2.9-RC
122
+
123
+ 20 verbose cwd /usr/local/bin/growi
124
+
125
+ 21 verbose Linux 3.10.0-862.14.4.el7.x86_64
126
+
127
+ 22 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build:prod"
128
+
129
+ 23 verbose node v11.2.0
130
+
131
+ 24 verbose npm v6.4.1
132
+
133
+ 25 error code ELIFECYCLE
134
+
135
+ 26 error errno 2
136
+
137
+ 27 error growi@3.2.9-RC build:prod: `npm run clean && env-cmd config/env.prod.js webpack --config config/webpack.prod.js --profile --bail`
138
+
139
+ 27 error Exit status 2
140
+
141
+ 28 error Failed at the growi@3.2.9-RC build:prod script.
142
+
143
+ 28 error This is probably not a problem with npm. There is likely additional logging output above.
144
+
145
+ ```
58
146
 
59
147
  よろしくお願いします。