MQTT Connection lost every time an update is pushed

In shell type: ssh -p 8101 openhab@localhost
password: habopen
Ana you are login in karaf.
If you type: config:edit org.openhab.mqtt - you see many brokers and clientId’s.
Then type config:delete org.openhab.mqtt and you get message:
This config is being edited. Cancel / update first, or use the --force option

I don’t know how to exit edit mode.

So - rebooting your device (eg RPI).
Exit in karaf: ctrl+d, then in usuaily console type reboot.

Then connect again to karaf and type config:delete org.openhab.mqtt.
And again rebooting your device.

And problem will be solved.
mqtt.cfg loaded as we need.