· 6 years ago · Feb 26, 2020, 02:26 PM
1Starting build
2
3> @midhub/vendor@1.0.0 build /src
4> webpack --config server/webpack.config.js --bail
5
6
7[at-loader] Using typescript@3.7.5 from typescript and "tsconfig.json" from /src/server/tsconfig.json.
8
9root@vm131964:~/midhub_auth/service-cdp# docker logs service-cdp
10Starting build
11
12> @midhub/vendor@1.0.0 build /src
13> webpack --config server/webpack.config.js --bail
14
15
16[at-loader] Using typescript@3.7.5 from typescript and "tsconfig.json" from /src/server/tsconfig.json.
17
18
19[at-loader] Checking started in a separate process...
20root@vm131964:~/midhub_auth/service-cdp# docker logs service-cdp -f
21Starting build
22
23> @midhub/vendor@1.0.0 build /src
24> webpack --config server/webpack.config.js --bail
25
26
27[at-loader] Using typescript@3.7.5 from typescript and "tsconfig.json" from /src/server/tsconfig.json.
28
29
30[at-loader] Checking started in a separate process...
31
32[at-loader] Ok, 7.77 sec.
33Hash: 6032a8208ac92c78f208
34Version: webpack 3.12.0
35Time: 22910ms
36 Asset Size Chunks Chunk Names
37 server.js 405 kB 0 [emitted] [big] main
38server.js.map 509 kB 0 [emitted] main
39 [9] ./server/src/runtimeConfig.ts 140 bytes {0} [built]
40 [11] ./server/src/constants/users.ts 1.15 kB {0} [built]
41 [18] ./server/src/constants/auth.ts 859 bytes {0} [built]
42 [22] ./server/src/io/index.ts 277 bytes {0} [built]
43 [23] ./server/src/models/users.ts 26.8 kB {0} [built]
44 [25] ./server/src/utils/users.ts 12.5 kB {0} [built]
45 [88] ./server/src/services/logger.ts 1.57 kB {0} [built]
46 [95] multi ./server/src/index.ts 28 bytes {0} [built]
47 [96] ./server/src/index.ts 300 bytes {0} [built]
48 [98] ./server/src/entry.ts 4.44 kB {0} [built]
49 [219] ./server/src/controllers/index.ts 1.18 kB {0} [built]
50 [248] ./server/src/middlewares/index.ts 289 bytes {0} [built]
51 [249] ./server/src/init.ts 1.84 kB {0} [built]
52 [265] ./server/src/utils/db.ts 1.22 kB {0} [built]
53 [272] ./client/webpack.config.js 1.53 kB {0} [built]
54 + 259 hidden modules
55Starting application
56
57> @midhub/vendor@1.0.0 start /src
58> node server/dist/server.js
59
60WS connection is not ready, message added to the queue
61WS connection is not ready, message added to the queue
62WS connection is not ready, message added to the queue
63WS connection is not ready, message added to the queue
64WS connection is not ready, message added to the queue
65WS connection is not ready, message added to the queue
66WS connection is not ready, message added to the queue
67WS connection is not ready, message added to the queue
68WS connection is not ready, message added to the queue
69WS connection is not ready, message added to the queue
70WS connection is not ready, message added to the queue
71WS connection is not ready, message added to the queue
72WS connection is not ready, message added to the queue
73WS connection is not ready, message added to the queue
74MH Provider: Connected
75{ companyId:
76 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
77 privateKey:
78 '0x756f68d0ad972dadfc602b20686c1185996d6f2018c2d69ded9958c39699e7fb' }
79(node:41) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
80(node:41) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
81(node:41) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
82
83[at-loader] Using typescript@3.7.5 from typescript and "tsconfig.json" from /src/client/tsconfig.json.
84
85WS connection is not ready, message added to the queue
86WS connection is not ready, message added to the queue
874
881
89WS connection is not ready, message added to the queue
90WS connection is not ready, message added to the queue
91MH Provider: Connected
92basePr 0x7a8d86ed7f7e69eeff60705779838555003d6b389d550afa25ba2ceea4604b8fdc5b59e82cc154df2ce6f9d3874b29ce
93decryptedUserPrivate 0x58a0876681e9dca568789fe5cdcc82f01e8fe44943411bc5b35e122470104c06
94api assignDelegate - delegates
95EmployeeInvitedEvent { companyId:
96 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
97 employee: '0x3e9d61d32492a2ee1b5a50e9ec40a73961abf7fd',
98 employeeType: 4 }
99EmployeeInvitedEvent { companyId:
100 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
101 employee: '0x3e9d61d32492a2ee1b5a50e9ec40a73961abf7fd',
102 employeeType: 16 }
103EmployeeInvitedEvent { companyId:
104 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
105 employee: '0x7c7f14f8d52dde691bc4761d9aa258ff9b69d6ea',
106 employeeType: 8 }
107CompanyStatusChangedEvent { companyId: '1', status: 4 }
108CompanyStatusChangedEvent { companyId:
109 '114724579642456161385960648200511858351908918377550163197918758872547722151040',
110 status: 4 }
111CompanyStatusChangedEvent { companyId:
112 '79115275294847405096546517005921888070588656819867692146289165481396630455693',
113 status: 4 }
114CompanyStatusChangedEvent { companyId:
115 '4666762193553789884160776652515534546988526226715176269639643723724420887842',
116 status: 4 }
117CompanyStatusChangedEvent { companyId:
118 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
119 status: 4 }
120EmployeeStatusChangedEvent { companyId:
121 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
122 employee: '0x3e9d61d32492a2ee1b5a50e9ec40a73961abf7fd',
123 status: 2 }
124EmployeeStatusChangedEvent { companyId:
125 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
126 employee: '0x3e9d61d32492a2ee1b5a50e9ec40a73961abf7fd',
127 status: 2 }
128Server on 3010 port started
129
130[at-loader] Checking started in a separate process...
131
132[at-loader] Ok, 8.486 sec.
133⚠ 「wdm」: Hash: 3770086f6e4773837528
134Version: webpack 3.12.0
135Time: 20899ms
136 Asset Size Chunks Chunk Names
137 bundle.js 1.41 MB 0 [emitted] [big] main
138bundle.js.map 1.69 MB 0 [emitted] main
139 [0] ./node_modules/node-libs-browser/node_modules/process/browser.js 5.42 kB {0} [built]
140 [13] ./node_modules/react/index.js 190 bytes {0} [built]
141 [53] multi ./client/src/index 28 bytes {0} [built]
142 [54] ./client/src/index.tsx 294 bytes {0} [built]
143 [58] ./node_modules/react-dom/index.js 1.36 kB {0} [built]
144 [59] ./node_modules/react-dom/cjs/react-dom.production.min.js 119 kB {0} [built]
145 [62] ./node_modules/react-dom/cjs/react-dom.development.js 970 kB {0} [built]
146 [66] ./node_modules/reflect-metadata/Reflect.js 51.2 kB {0} [built]
147 [67] (webpack)/buildin/global.js 509 bytes {0} [built]
148 [68] ./client/src/app.tsx 6.72 kB {0} [built]
149 [69] ./node_modules/babel-runtime/helpers/classCallCheck.js 208 bytes {0} [built]
150 [70] ./node_modules/babel-runtime/helpers/createClass.js 904 bytes {0} [built]
151 [110] ./client/src/api.ts 545 bytes {0} [built]
152 [129] ./node_modules/bem-cn/dist/bem-cn.js 17.2 kB {0} [built]
153 [130] ./client/src/app.css 1.22 kB {0} [built]
154 + 120 hidden modules
155
156WARNING in EnvironmentPlugin - BASE_URL environment variable is undefined.
157
158You can pass an object with default values to suppress this warning.
159See https://webpack.js.org/plugins/environment-plugin for example.
160ℹ 「wdm」: Compiled with warnings.
161Error: MongoError: E11000 duplicate key error collection: backend.accounts index: id_1 dup key: { : "0x3e9d61d32492a2ee1b5a50e9ec40a73961abf7fd" }
162 at Function.<anonymous> (/src/server/dist/webpack:/server/src/models/accounts.ts:193:9)
163 at Generator.throw (<anonymous>)
164 at rejected (/src/server/dist/server.js:589:65)
165 at process._tickCallback (internal/process/next_tick.js:68:7)
166^C
167root@vm131964:~/midhub_auth/service-cdp# cd ../service-cdp-web/
168root@vm131964:~/midhub_auth/service-cdp-web# docker-compose up -d
169Starting service-cdp-web ... done
170Starting service-cdp_nginx ... done
171root@vm131964:~/midhub_auth/service-cdp-web# docker logs service-cdp -f
172Starting build
173
174> @midhub/vendor@1.0.0 build /src
175> webpack --config server/webpack.config.js --bail
176
177
178[at-loader] Using typescript@3.7.5 from typescript and "tsconfig.json" from /src/server/tsconfig.json.
179
180
181[at-loader] Checking started in a separate process...
182
183[at-loader] Ok, 7.77 sec.
184Hash: 6032a8208ac92c78f208
185Version: webpack 3.12.0
186Time: 22910ms
187 Asset Size Chunks Chunk Names
188 server.js 405 kB 0 [emitted] [big] main
189server.js.map 509 kB 0 [emitted] main
190 [9] ./server/src/runtimeConfig.ts 140 bytes {0} [built]
191 [11] ./server/src/constants/users.ts 1.15 kB {0} [built]
192 [18] ./server/src/constants/auth.ts 859 bytes {0} [built]
193 [22] ./server/src/io/index.ts 277 bytes {0} [built]
194 [23] ./server/src/models/users.ts 26.8 kB {0} [built]
195 [25] ./server/src/utils/users.ts 12.5 kB {0} [built]
196 [88] ./server/src/services/logger.ts 1.57 kB {0} [built]
197 [95] multi ./server/src/index.ts 28 bytes {0} [built]
198 [96] ./server/src/index.ts 300 bytes {0} [built]
199 [98] ./server/src/entry.ts 4.44 kB {0} [built]
200 [219] ./server/src/controllers/index.ts 1.18 kB {0} [built]
201 [248] ./server/src/middlewares/index.ts 289 bytes {0} [built]
202 [249] ./server/src/init.ts 1.84 kB {0} [built]
203 [265] ./server/src/utils/db.ts 1.22 kB {0} [built]
204 [272] ./client/webpack.config.js 1.53 kB {0} [built]
205 + 259 hidden modules
206Starting application
207
208> @midhub/vendor@1.0.0 start /src
209> node server/dist/server.js
210
211WS connection is not ready, message added to the queue
212WS connection is not ready, message added to the queue
213WS connection is not ready, message added to the queue
214WS connection is not ready, message added to the queue
215WS connection is not ready, message added to the queue
216WS connection is not ready, message added to the queue
217WS connection is not ready, message added to the queue
218WS connection is not ready, message added to the queue
219WS connection is not ready, message added to the queue
220WS connection is not ready, message added to the queue
221WS connection is not ready, message added to the queue
222WS connection is not ready, message added to the queue
223WS connection is not ready, message added to the queue
224WS connection is not ready, message added to the queue
225MH Provider: Connected
226{ companyId:
227 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
228 privateKey:
229 '0x756f68d0ad972dadfc602b20686c1185996d6f2018c2d69ded9958c39699e7fb' }
230(node:41) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
231(node:41) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
232(node:41) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
233
234[at-loader] Using typescript@3.7.5 from typescript and "tsconfig.json" from /src/client/tsconfig.json.
235
236WS connection is not ready, message added to the queue
237WS connection is not ready, message added to the queue
2384
2391
240WS connection is not ready, message added to the queue
241WS connection is not ready, message added to the queue
242MH Provider: Connected
243basePr 0x7a8d86ed7f7e69eeff60705779838555003d6b389d550afa25ba2ceea4604b8fdc5b59e82cc154df2ce6f9d3874b29ce
244decryptedUserPrivate 0x58a0876681e9dca568789fe5cdcc82f01e8fe44943411bc5b35e122470104c06
245api assignDelegate - delegates
246EmployeeInvitedEvent { companyId:
247 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
248 employee: '0x3e9d61d32492a2ee1b5a50e9ec40a73961abf7fd',
249 employeeType: 4 }
250EmployeeInvitedEvent { companyId:
251 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
252 employee: '0x3e9d61d32492a2ee1b5a50e9ec40a73961abf7fd',
253 employeeType: 16 }
254EmployeeInvitedEvent { companyId:
255 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
256 employee: '0x7c7f14f8d52dde691bc4761d9aa258ff9b69d6ea',
257 employeeType: 8 }
258CompanyStatusChangedEvent { companyId: '1', status: 4 }
259CompanyStatusChangedEvent { companyId:
260 '114724579642456161385960648200511858351908918377550163197918758872547722151040',
261 status: 4 }
262CompanyStatusChangedEvent { companyId:
263 '79115275294847405096546517005921888070588656819867692146289165481396630455693',
264 status: 4 }
265CompanyStatusChangedEvent { companyId:
266 '4666762193553789884160776652515534546988526226715176269639643723724420887842',
267 status: 4 }
268CompanyStatusChangedEvent { companyId:
269 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
270 status: 4 }
271EmployeeStatusChangedEvent { companyId:
272 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
273 employee: '0x3e9d61d32492a2ee1b5a50e9ec40a73961abf7fd',
274 status: 2 }
275EmployeeStatusChangedEvent { companyId:
276 '20340575803307082285536285004883449959292918595138873605124879220949306061228',
277 employee: '0x3e9d61d32492a2ee1b5a50e9ec40a73961abf7fd',
278 status: 2 }
279Server on 3010 port started
280
281[at-loader] Checking started in a separate process...
282
283[at-loader] Ok, 8.486 sec.
284⚠ 「wdm」: Hash: 3770086f6e4773837528
285Version: webpack 3.12.0
286Time: 20899ms
287 Asset Size Chunks Chunk Names
288 bundle.js 1.41 MB 0 [emitted] [big] main
289bundle.js.map 1.69 MB 0 [emitted] main
290 [0] ./node_modules/node-libs-browser/node_modules/process/browser.js 5.42 kB {0} [built]
291 [13] ./node_modules/react/index.js 190 bytes {0} [built]
292 [53] multi ./client/src/index 28 bytes {0} [built]
293 [54] ./client/src/index.tsx 294 bytes {0} [built]
294 [58] ./node_modules/react-dom/index.js 1.36 kB {0} [built]
295 [59] ./node_modules/react-dom/cjs/react-dom.production.min.js 119 kB {0} [built]
296 [62] ./node_modules/react-dom/cjs/react-dom.development.js 970 kB {0} [built]
297 [66] ./node_modules/reflect-metadata/Reflect.js 51.2 kB {0} [built]
298 [67] (webpack)/buildin/global.js 509 bytes {0} [built]
299 [68] ./client/src/app.tsx 6.72 kB {0} [built]
300 [69] ./node_modules/babel-runtime/helpers/classCallCheck.js 208 bytes {0} [built]
301 [70] ./node_modules/babel-runtime/helpers/createClass.js 904 bytes {0} [built]
302 [110] ./client/src/api.ts 545 bytes {0} [built]
303 [129] ./node_modules/bem-cn/dist/bem-cn.js 17.2 kB {0} [built]
304 [130] ./client/src/app.css 1.22 kB {0} [built]
305 + 120 hidden modules
306
307WARNING in EnvironmentPlugin - BASE_URL environment variable is undefined.
308
309You can pass an object with default values to suppress this warning.
310See https://webpack.js.org/plugins/environment-plugin for example.
311ℹ 「wdm」: Compiled with warnings.
312Error: MongoError: E11000 duplicate key error collection: backend.accounts index: id_1 dup key: { : "0x3e9d61d32492a2ee1b5a50e9ec40a73961abf7fd" }
313 at Function.<anonymous> (/src/server/dist/webpack:/server/src/models/accounts.ts:193:9)
314 at Generator.throw (<anonymous>)
315 at rejected (/src/server/dist/server.js:589:65)
316 at process._tickCallback (internal/process/next_tick.js:68:7)
3172020-02-26 14:03:22 info: ::ffff:94.19.93.176 - - [26/Feb/2020:14:03:22 +0000] "GET /api/access-settings/roles HTTP/1.1" 200 294 "http://91.239.26.58:8087/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"
318
3192020-02-26 14:03:22 info: ::ffff:94.19.93.176 - - [26/Feb/2020:14:03:22 +0000] "GET /api/policy/all/consent-fields HTTP/1.1" 304 - "http://91.239.26.58:8087/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"
320
3212020-02-26 14:03:22 info: ::ffff:94.19.93.176 - - [26/Feb/2020:14:03:22 +0000] "GET /api/policy-tiers HTTP/1.1" 200 172 "http://91.239.26.58:8087/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"
322
3232020-02-26 14:03:22 info: ::ffff:94.19.93.176 - - [26/Feb/2020:14:03:22 +0000] "GET /api/policy/5e567a694a290d00290f9620/current/ HTTP/1.1" 404 - "http://91.239.26.58:8087/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"
324
3252020-02-26 14:03:22 info: ::ffff:94.19.93.176 - - [26/Feb/2020:14:03:22 +0000] "GET /api/policy/all/count/ HTTP/1.1" 304 - "http://91.239.26.58:8087/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"
326
3272020-02-26 14:03:22 info: ::ffff:94.19.93.176 - - [26/Feb/2020:14:03:22 +0000] "GET /api/access-settings/sections HTTP/1.1" 304 - "http://91.239.26.58:8087/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"
328
3292020-02-26 14:03:22 info: ::ffff:94.19.93.176 - - [26/Feb/2020:14:03:22 +0000] "GET /api/search-filters HTTP/1.1" 304 - "http://91.239.26.58:8087/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"
330
3312020-02-26 14:03:22 info: ::ffff:94.19.93.176 - - [26/Feb/2020:14:03:22 +0000] "GET /api/admin/news-short/ HTTP/1.1" 304 - "http://91.239.26.58:8087/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"
332
3332020-02-26 14:16:36 info: ::ffff:93.187.190.209 - - [26/Feb/2020:14:16:36 +0000] "GET /api/access-settings/roles HTTP/1.1" 200 294 "http://91.239.26.58:8087/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
334
3352020-02-26 14:16:36 info: ::ffff:93.187.190.209 - - [26/Feb/2020:14:16:36 +0000] "GET /api/policy/all/consent-fields HTTP/1.1" 200 2 "http://91.239.26.58:8087/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
336
3372020-02-26 14:16:36 info: ::ffff:93.187.190.209 - - [26/Feb/2020:14:16:36 +0000] "GET /api/policy-tiers HTTP/1.1" 200 172 "http://91.239.26.58:8087/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
338
3392020-02-26 14:16:36 info: ::ffff:93.187.190.209 - - [26/Feb/2020:14:16:36 +0000] "GET /api/policy/5e567a694a290d00290f9620/current/ HTTP/1.1" 404 - "http://91.239.26.58:8087/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
340
3412020-02-26 14:16:36 info: ::ffff:93.187.190.209 - - [26/Feb/2020:14:16:36 +0000] "GET /api/policy/all/count/ HTTP/1.1" 200 2 "http://91.239.26.58:8087/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
342
3432020-02-26 14:16:36 info: ::ffff:93.187.190.209 - - [26/Feb/2020:14:16:36 +0000] "GET /api/access-settings/sections HTTP/1.1" 200 349 "http://91.239.26.58:8087/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
344
3452020-02-26 14:16:36 info: ::ffff:93.187.190.209 - - [26/Feb/2020:14:16:36 +0000] "GET /api/search-filters HTTP/1.1" 200 2 "http://91.239.26.58:8087/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
346
3472020-02-26 14:16:36 info: ::ffff:93.187.190.209 - - [26/Feb/2020:14:16:36 +0000] "GET /api/admin/news-short/ HTTP/1.1" 200 2 "http://91.239.26.58:8087/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"