Unknown error in log file

I am having a problem with the booting of the system.

I am running HASSio on a VM box on a nuc, with another VM box for the mosquito MQTT server.

When ever I restart the VM it take around 5 minutes to complete the boot up. The error shown in the log file when it gets held up is below.

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 400, in _async_add_entity
    await entity.async_added_to_hass()
  File "/usr/local/lib/python3.7/asyncio/coroutines.py", line 132, in coro
    res = yield from await_meth()
  File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 443, in async_subscribe
    async_remove = await hass.data[DATA_MQTT].async_subscribe(
KeyError: 'mqtt'

I have done searches but I am unable to find out what my problem is.

I put in the MQTT logging but nothing there after it boots all seems normal.

Where should I look for an answer??

Thanks