appmetrics-dash icon indicating copy to clipboard operation
appmetrics-dash copied to clipboard

Error handling can be more graceful

Open smartmouse opened this issue 7 years ago • 2 comments

We have a loopback project with bad connection information with the soap connectors

root@csx00854 testdash]# cd lb2soap/ [root@csx00854 lb2soap]# apic start lb2soap did not return a port in timeout. Error: Service lb2soap started but did not initialize within the timeout period. Dumping log buffer. [Mon Feb 27 21:10:45 2017] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 1.2.0.201612012154 (Agent Core 3.1.0) [Mon Feb 27 21:10:45 2017] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883 2017-02-28T02:10:45.484Z pid:28075 worker:0 INFO supervisor starting (pid 28075) 2017-02-28T02:10:45.491Z pid:28075 worker:0 INFO supervisor reporting metrics to internal: 2017-02-28T02:10:45.503Z pid:28075 worker:0 INFO supervisor size set to 1 2017-02-28T02:10:45.598Z pid:28075 worker:0 INFO supervisor started worker 1 (pid 28089) 2017-02-28T02:10:45.600Z pid:28075 worker:0 INFO supervisor resized to 1 2017-02-28T02:10:45.851Z pid:28089 worker:1 [Mon Feb 27 21:10:45 2017] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 1.2.0.201612012154 (Agent Core 3.1.0) 2017-02-28T02:10:45.894Z pid:28089 worker:1 [Mon Feb 27 21:10:45 2017] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883 2017-02-28T02:10:47.364Z pid:28089 worker:1 Connection fails: Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:10:47.364Z pid:28089 worker:1 It will be retried for the next request. 2017-02-28T02:10:47.365Z pid:28089 worker:1 events.js:160 2017-02-28T02:10:47.365Z pid:28089 worker:1 throw er; // Unhandled 'error' event 2017-02-28T02:10:47.365Z pid:28089 worker:1 ^ 2017-02-28T02:10:47.365Z pid:28089 worker:1 Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:10:47.365Z pid:28089 worker:1 at Error (native) 2017-02-28T02:10:47.390Z pid:28075 worker:0 ERROR supervisor worker id 1 (pid 28089) accidental exit with 1 2017-02-28T02:10:49.467Z pid:28075 worker:0 INFO supervisor started worker 2 (pid 28107) 2017-02-28T02:10:49.468Z pid:28075 worker:0 INFO supervisor resized to 1 2017-02-28T02:10:49.710Z pid:28107 worker:2 [Mon Feb 27 21:10:49 2017] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 1.2.0.201612012154 (Agent Core 3.1.0) 2017-02-28T02:10:49.753Z pid:28107 worker:2 [Mon Feb 27 21:10:49 2017] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883 2017-02-28T02:10:51.077Z pid:28107 worker:2 Connection fails: Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:10:51.077Z pid:28107 worker:2 It will be retried for the next request. 2017-02-28T02:10:51.080Z pid:28107 worker:2 events.js:160 2017-02-28T02:10:51.080Z pid:28107 worker:2 throw er; // Unhandled 'error' event 2017-02-28T02:10:51.080Z pid:28107 worker:2 ^ 2017-02-28T02:10:51.080Z pid:28107 worker:2 Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:10:51.081Z pid:28107 worker:2 at Error (native) 2017-02-28T02:10:51.099Z pid:28075 worker:0 ERROR supervisor worker id 2 (pid 28107) accidental exit with 1 2017-02-28T02:10:53.177Z pid:28075 worker:0 INFO supervisor started worker 3 (pid 28125) 2017-02-28T02:10:53.177Z pid:28075 worker:0 INFO supervisor resized to 1 2017-02-28T02:10:53.420Z pid:28125 worker:3 [Mon Feb 27 21:10:53 2017] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 1.2.0.201612012154 (Agent Core 3.1.0) 2017-02-28T02:10:53.464Z pid:28125 worker:3 [Mon Feb 27 21:10:53 2017] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883 2017-02-28T02:10:54.687Z pid:28125 worker:3 Connection fails: Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:10:54.687Z pid:28125 worker:3 It will be retried for the next request. 2017-02-28T02:10:54.689Z pid:28125 worker:3 events.js:160 2017-02-28T02:10:54.690Z pid:28125 worker:3 throw er; // Unhandled 'error' event 2017-02-28T02:10:54.691Z pid:28125 worker:3 ^ 2017-02-28T02:10:54.691Z pid:28125 worker:3 Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:10:54.691Z pid:28125 worker:3 at Error (native) 2017-02-28T02:10:54.704Z pid:28075 worker:0 ERROR supervisor worker id 3 (pid 28125) accidental exit with 1 2017-02-28T02:10:56.767Z pid:28075 worker:0 INFO supervisor started worker 4 (pid 28161) 2017-02-28T02:10:56.767Z pid:28075 worker:0 INFO supervisor resized to 1 2017-02-28T02:10:57.000Z pid:28161 worker:4 [Mon Feb 27 21:10:56 2017] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 1.2.0.201612012154 (Agent Core 3.1.0) 2017-02-28T02:10:57.042Z pid:28161 worker:4 [Mon Feb 27 21:10:57 2017] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883 2017-02-28T02:10:58.262Z pid:28161 worker:4 Connection fails: Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:10:58.262Z pid:28161 worker:4 It will be retried for the next request. 2017-02-28T02:10:58.264Z pid:28161 worker:4 events.js:160 2017-02-28T02:10:58.264Z pid:28161 worker:4 throw er; // Unhandled 'error' event 2017-02-28T02:10:58.264Z pid:28161 worker:4 ^ 2017-02-28T02:10:58.265Z pid:28161 worker:4 Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:10:58.265Z pid:28161 worker:4 at Error (native) 2017-02-28T02:10:58.278Z pid:28075 worker:0 ERROR supervisor worker id 4 (pid 28161) accidental exit with 1 2017-02-28T02:11:00.358Z pid:28075 worker:0 INFO supervisor started worker 5 (pid 28179) 2017-02-28T02:11:00.358Z pid:28075 worker:0 INFO supervisor resized to 1 2017-02-28T02:11:00.604Z pid:28179 worker:5 [Mon Feb 27 21:11:00 2017] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 1.2.0.201612012154 (Agent Core 3.1.0) 2017-02-28T02:11:00.647Z pid:28179 worker:5 [Mon Feb 27 21:11:00 2017] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883 2017-02-28T02:11:01.873Z pid:28179 worker:5 Connection fails: Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:11:01.873Z pid:28179 worker:5 It will be retried for the next request. 2017-02-28T02:11:01.877Z pid:28179 worker:5 events.js:160 2017-02-28T02:11:01.877Z pid:28179 worker:5 throw er; // Unhandled 'error' event 2017-02-28T02:11:01.877Z pid:28179 worker:5 ^ 2017-02-28T02:11:01.877Z pid:28179 worker:5 Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:11:01.877Z pid:28179 worker:5 at Error (native) 2017-02-28T02:11:01.891Z pid:28075 worker:0 ERROR supervisor worker id 5 (pid 28179) accidental exit with 1 2017-02-28T02:11:03.981Z pid:28075 worker:0 INFO supervisor started worker 6 (pid 28197) 2017-02-28T02:11:03.982Z pid:28075 worker:0 INFO supervisor resized to 1 2017-02-28T02:11:04.255Z pid:28197 worker:6 [Mon Feb 27 21:11:04 2017] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 1.2.0.201612012154 (Agent Core 3.1.0) 2017-02-28T02:11:04.301Z pid:28197 worker:6 [Mon Feb 27 21:11:04 2017] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883 2017-02-28T02:11:05.724Z pid:28197 worker:6 Connection fails: Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:11:05.724Z pid:28197 worker:6 It will be retried for the next request. 2017-02-28T02:11:05.726Z pid:28197 worker:6 events.js:160 2017-02-28T02:11:05.726Z pid:28197 worker:6 throw er; // Unhandled 'error' event 2017-02-28T02:11:05.726Z pid:28197 worker:6 ^ 2017-02-28T02:11:05.726Z pid:28197 worker:6 Error: ENOENT: no such file or directory, open 'test' 2017-02-28T02:11:05.727Z pid:28197 worker:6 at Error (native) 2017-02-28T02:11:05.735Z pid:28075 worker:0 ERROR supervisor worker id 6 (pid 28197) accidental exit with 1

smartmouse avatar Feb 28 '17 02:02 smartmouse

Are you using the MQTT connection in your test above ?

tobespc avatar Feb 28 '17 08:02 tobespc

nop.. I just have a loopbak app with soap datasource but bad connection info. then we perform apic start and saw this error.

smartmouse avatar Mar 01 '17 02:03 smartmouse