# MQTT no longer working after update from emonSD-03May16 to most current version

**URL:** <https://community.openenergymonitor.org/t/mqtt-no-longer-working-after-update-from-emonsd-03may16-to-most-current-version/5578>\
**Category:** emonPi\
**Tags:** mqtt\
**Created:** [6 November 2017 13:42 UTC](https://community.openenergymonitor.org/t/mqtt-no-longer-working-after-update-from-emonsd-03may16-to-most-current-version/5578 "2017-11-06T13:42:23Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [8 November 2017 15:43 UTC](https://community.openenergymonitor.org/t/mqtt-no-longer-working-after-update-from-emonsd-03may16-to-most-current-version/5578/10 "2017-11-08T15:43:49Z")

</div>

Thanks @jsroques 👍

I will temporary add this change to the rc.local script. This change will be automatically pulled in by all emonPi’s:

> <https://github.com/openenergymonitor/emonpi/commit/e59f9fdb7703cc186882af609a9816925bd990eb>
>
> https://community.openenergymonitor.org/t/mosquitto-wont-start-on-boot-after-ras…pian-and-emonsd-update/5588

let’s continue the discussion on the other thread how starting the services can be better engineered going forward:

> [@Mosquitto won't start on boot after raspbian and emonsd update](https://community.openenergymonitor.org/t/mosquitto-wont-start-on-boot-after-raspian-and-emonsd-update/5588/3):
>
> Hi @jsroques, Nice work tracking this issue down. I have been unable to replicate the issue. On system (stock [emonSD-26Oct17](https://github.com/openenergymonitor/emonpi/wiki/emonSD-pre-built-SD-card-Download-&-Change-Log#emonsd-26oct17)) it does eventually start. sudo journalctl -u mosquitto -- Logs begin at Wed 2017-11-08 15:10:19 UTC, end at Wed 2017-11-08 15:11:23 UTC. -- Nov 08 15:10:21 emonpi systemd[1]: Starting Mosquitto MQTT Broker... Nov 08 15:10:21 emonpi systemd[1]: Started Mosquitto MQTT Broker. Nov 08 15:10:22 emonpi mosquitto[517]: 1510153822: Error: Unable to open log file /var/log/mosqui…

---

_[View the full topic](https://community.openenergymonitor.org/t/mqtt-no-longer-working-after-update-from-emonsd-03may16-to-most-current-version/5578)._
