MQTT failed because Network unreachable every time RasPI is power on or boot

Hi there, I configured Hass on virtual environment on RasPI, set HA that initialize by itself every time is power on or boot according guide on home-assistant webpage.
HA initializes correctly however MQTT failed for exception shows below. I looked for on forum and web pages for error but I don’t have luck

2018-04-12 04:36:58 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 101] Network is unreachable
2018-04-12 04:36:58 ERROR (MainThread) [homeassistant.setup] Setup failed for mqtt: Component failed to initialize.

the problem disappear once I restart manually on service manager on HA portal. I think it is because network is up already. it can be delay that componenet mqtt initialize until network is stablished, how it can be solved?

thanks in advance

2 Likes