OpenBazaar / openbazaar-go

OpenBazaar 2.0 Server Daemon in Go
MIT License
993 stars 283 forks source link

Without internet access the server runs with very high CPU #1453

Open rmisio opened 5 years ago

rmisio commented 5 years ago

I happen to kill my WIFI during lunch, so was able to unintentionally reproduce this twice.

1.) Start up the server 2.) Kill your Wifi.

Observed:

In a few minutes you'll likely hear the fan kick into high gear on your machine and you'll notice the server running at very high CPU. I killed mine at around 400%.

Expected

The server doesn't "overheat" because it doesn't have internet. On some platforms, maybe this is an edge case, but I imagine mobile might regularly go through periods with limited or no connectivity.

rmisio commented 5 years ago

Here's the later part of my server log:

11:28:26.066 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup bch.blockbook.api.openbazaar.org: no such host
11:28:26.078 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup ltc.blockbook.api.openbazaar.org: no such host
11:28:26.420 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup btc.blockbook.api.openbazaar.org: no such host
11:28:28.060 [ERROR] [pool/runLoop] error starting https://zec.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
11:28:28.068 [ERROR] [pool/runLoop] error starting https://bch.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
11:28:28.079 [ERROR] [pool/runLoop] error starting https://ltc.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
11:28:28.415 [ERROR] [pool/runLoop] error starting https://btc.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
11:29:28.062 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup zec.blockbook.api.openbazaar.org: no such host
11:29:28.068 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup bch.blockbook.api.openbazaar.org: no such host
11:29:28.080 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup ltc.blockbook.api.openbazaar.org: no such host
11:29:28.416 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup btc.blockbook.api.openbazaar.org: no such host
11:29:30.064 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup zec.blockbook.api.openbazaar.org: no such host
11:29:30.076 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup bch.blockbook.api.openbazaar.org: no such host
11:29:30.088 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup ltc.blockbook.api.openbazaar.org: no such host
11:29:30.426 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup btc.blockbook.api.openbazaar.org: no such host
11:29:32.071 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup zec.blockbook.api.openbazaar.org: no such host
11:29:32.075 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup bch.blockbook.api.openbazaar.org: no such host
11:29:32.084 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup ltc.blockbook.api.openbazaar.org: no such host
11:29:32.426 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup btc.blockbook.api.openbazaar.org: no such host
11:29:34.065 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup zec.blockbook.api.openbazaar.org: no such host
11:29:34.075 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup bch.blockbook.api.openbazaar.org: no such host
11:29:34.081 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup ltc.blockbook.api.openbazaar.org: no such host
11:29:34.425 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup btc.blockbook.api.openbazaar.org: no such host
11:29:36.066 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup zec.blockbook.api.openbazaar.org: no such host
11:29:36.075 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup bch.blockbook.api.openbazaar.org: no such host
11:29:36.086 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup ltc.blockbook.api.openbazaar.org: no such host
11:29:36.426 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup btc.blockbook.api.openbazaar.org: no such host
11:29:38.069 [ERROR] [pool/runLoop] error starting https://zec.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
11:29:38.074 [ERROR] [pool/runLoop] error starting https://bch.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
11:29:38.085 [ERROR] [pool/runLoop] error starting https://ltc.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
11:29:38.424 [ERROR] [pool/runLoop] error starting https://btc.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
11:30:38.070 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup zec.blockbook.api.openbazaar.org: no such host
11:30:38.074 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup bch.blockbook.api.openbazaar.org: no such host
11:30:38.085 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup ltc.blockbook.api.openbazaar.org: no such host
11:30:38.425 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup btc.blockbook.api.openbazaar.org: no such host
11:30:40.074 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup zec.blockbook.api.openbazaar.org: no such host
11:30:40.082 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup bch.blockbook.api.openbazaar.org: no such host
11:30:40.093 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup ltc.blockbook.api.openbazaar.org: no such host
11:30:40.430 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup btc.blockbook.api.openbazaar.org: no such host
11:30:42.080 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup zec.blockbook.api.openbazaar.org: no such host
11:30:42.080 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup bch.blockbook.api.openbazaar.org: no such host
11:30:42.090 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup ltc.blockbook.api.openbazaar.org: no such host
11:30:42.427 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup btc.blockbook.api.openbazaar.org: no such host
11:30:44.076 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup zec.blockbook.api.openbazaar.org: no such host
11:30:44.076 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup bch.blockbook.api.openbazaar.org: no such host
11:30:44.090 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup ltc.blockbook.api.openbazaar.org: no such host
11:30:44.431 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup btc.blockbook.api.openbazaar.org: no such host
11:30:46.074 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup zec.blockbook.api.openbazaar.org: no such host
11:30:46.075 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup bch.blockbook.api.openbazaar.org: no such host
11:30:46.086 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup ltc.blockbook.api.openbazaar.org: no such host
11:30:46.425 [ERROR] [client/setupListeners] reconnect websocket: dial tcp: lookup btc.blockbook.api.openbazaar.org: no such host
11:30:48.072 [ERROR] [pool/runLoop] error starting https://zec.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
11:30:48.074 [ERROR] [pool/runLoop] error starting https://bch.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
11:30:48.085 [ERROR] [pool/runLoop] error starting https://ltc.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
11:30:48.424 [ERROR] [pool/runLoop] error starting https://btc.blockbook.api.openbazaar.org/api: unable to connect websocket to setup listeners
hoffmabc commented 5 years ago

@placer19 this is you