MQTT broker problem

Last week I had a power failure and my system restarted, unfortunately it suddenly has a problem connecting to the mosquitto broker, it used to work before without problems.

Error received :

2016-06-24 15:29:26.736 [ERROR] [.io.transport.mqtt.MqttService] - Error starting broker connection org.eclipse.paho.client.mqttv3.MqttException: Unexpected error at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException( ~[na:na] at org.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage.createWireMessage( ~[na:na] at org.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage.createWireMessage( ~[na:na] at org.eclipse.paho.client.mqttv3.internal.ClientState.restoreMessage( ~[na:na] at org.eclipse.paho.client.mqttv3.internal.ClientState.restoreState( ~[na:na] at org.eclipse.paho.client.mqttv3.internal.ClientState.<init>( ~[na:na] at org.eclipse.paho.client.mqttv3.internal.ClientComms.<init>( ~[na:na] at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>( ~[na:na] at org.eclipse.paho.client.mqttv3.MqttClient.<init>( ~[na:na] at ~[na:na] at ~[na:na] at ~[na:na] at$ [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na] at$ [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na]

All seem to work ok, mosquitto server is running, I can see subscribers publishing data using the mosquitto_sub command. Also used mqtt-spy to proof that mosquitto server is running, so it looks like an openhab issue but don’t know where to look for.

Any idea of what could be wrong ?
System was running ok before power outtage …

I’m using windows 10 and openhab 1.8.0.


Solved the problem:
The mqtt configuration in openhab.cfg was set to mqtt:mybroker.url=tcp://localhost:1883
Somehow it doesn’t recognize localhost anymore, changed it to the IP address of the mqtt server (same PC) and it was back working again.
Strangely enough commenting out the localhost line in c:?windows/system32/drivers/etc/hosts did not solve it, perhaps a windows 10 issue…