Frequently disconnects from mqtt / mosquitto. Stop feeds updates

Hi,

I were experience some issues with emoncms so i decided to upgrade my raspberry pi (kernel and applications). Emoncms misworking continues so i applied a Factory Reset:

$ /home/pi/emonpi/factoryreset

After reconfigure all envirnoment, all seems work again, but each some time i have notified that on emoncms feeds suddenly not update. The cause: disconnection of mqtt.

Tue Dec 26 21:43:57 2017: New connection from ::1 on port 1883.
Tue Dec 26 21:43:57 2017: New client connected from ::1 as mosq/uo?r<k0vh@HPXrLrs@ (c1, k5, u'emonpi').
Thu Dec 28 16:23:03 2017: Client mosq/uo?r<k0vh@HPXrLrs@ has exceeded timeout, disconnecting.
Thu Dec 28 16:23:03 2017: Socket error on client mosq/uo?r<k0vh@HPXrLrs@, disconnecting.

I belive kernel and applications is up to date

root@emonpi(rw):~# uname -a
Linux emonpi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux

mosquitto -v
mosquitto version 1.4.14 (build date Mon, 10 Jul 2017 23:48:43 +0100)

Mossquito configurations is default:

root@emonpi(rw):~# cat /etc/mosquitto/mosquitto.conf
**# Place your local configuration in /etc/mosquitto/conf.d/**
**#**
**# A full description of the configuration file is at**
**# /usr/share/doc/mosquitto/examples/mosquitto.conf.example**

pid_file /var/run/mosquitto.pid

persistence false
persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log

include_dir /etc/mosquitto/conf.d

allow_anonymous false
password_file /etc/mosquitto/passwd

Here some examples of disconnections. Normally disconnect each less than two days

root@emonpi(rw):~# tail -50 /var/log/mosquitto/mosquitto.log |  perl -pe 's/(\d+)/localtime($1)/e'
Sun Dec 24 17:36:41 2017: New client connected from 127.0.0.1 as mqtt_39f6498c.c609b6 (c1, k15, u'emonpi').
Sun Dec 24 17:36:58 2017: New connection from 127.0.0.1 on port 1883.
Sun Dec 24 17:36:58 2017: New client connected from 127.0.0.1 as openhab.1514133418120 (c1, k60, u'emonpi').
Sun Dec 24 17:37:30 2017: New connection from ::1 on port 1883.
Sun Dec 24 17:37:30 2017: New client connected from ::1 as mosq/1Ir7DGG`H@pG;G_adv (c1, k5, u'emonpi').
Sun Dec 24 17:38:21 2017: Socket error on client 231482b5-432f-4c3d-bd04-000e934ae440, disconnecting.
Sun Dec 24 17:38:22 2017: Socket error on client mosq/1Ir7DGG`H@pG;G_adv, disconnecting.
Sun Dec 24 17:38:23 2017: mosquitto version 1.4.14 terminating
Sun Dec 24 18:10:17 2017: mosquitto version 1.4.14 (build date Mon, 10 Jul 2017 23:48:43 +0100) starting
Sun Dec 24 18:10:17 2017: Config loaded from /etc/mosquitto/mosquitto.conf.
Sun Dec 24 18:10:17 2017: Opening ipv4 listen socket on port 1883.
Sun Dec 24 18:10:17 2017: Opening ipv6 listen socket on port 1883.
Sun Dec 24 18:10:24 2017: New connection from 127.0.0.1 on port 1883.
Sun Dec 24 18:10:24 2017: New client connected from 127.0.0.1 as ebd42aad-09f7-4a29-9adb-337648578ae1 (c1, k60, u'emonpi').
Sun Dec 24 18:10:24 2017: New connection from 127.0.0.1 on port 1883.
Sun Dec 24 18:10:24 2017: New client connected from 127.0.0.1 as lwrf (c1, k20, u'emonpi').
Sun Dec 24 18:10:30 2017: New connection from 127.0.0.1 on port 1883.
Sun Dec 24 18:10:30 2017: New client connected from 127.0.0.1 as mqtt_39f6498c.c609b6 (c1, k15, u'emonpi').
Sun Dec 24 18:10:46 2017: New connection from 127.0.0.1 on port 1883.
Sun Dec 24 18:10:46 2017: New client connected from 127.0.0.1 as openhab.1514135446325 (c1, k60, u'emonpi').
Sun Dec 24 18:11:18 2017: New connection from ::1 on port 1883.
Sun Dec 24 18:11:18 2017: New client connected from ::1 as mosq/obuuVIfUlZxBUgPY?K (c1, k5, u'emonpi').
Mon Dec 25 14:57:17 2017: Client mosq/obuuVIfUlZxBUgPY?K has exceeded timeout, disconnecting.
Mon Dec 25 14:57:17 2017: Socket error on client mosq/obuuVIfUlZxBUgPY?K, disconnecting.
Mon Dec 25 16:29:54 2017: New connection from 127.0.0.1 on port 1883.
Mon Dec 25 16:29:54 2017: New client connected from 127.0.0.1 as 12a100de-f703-4ce3-8b74-78a991b0ccc0 (c1, k60, u'emonpi').
Mon Dec 25 17:23:10 2017: mosquitto version 1.4.14 terminating
Mon Dec 25 17:23:18 2017: mosquitto version 1.4.14 (build date Mon, 10 Jul 2017 23:48:43 +0100) starting
Mon Dec 25 17:23:18 2017: Config loaded from /etc/mosquitto/mosquitto.conf.
Mon Dec 25 17:23:18 2017: Opening ipv4 listen socket on port 1883.
Mon Dec 25 17:23:18 2017: Opening ipv6 listen socket on port 1883.
Mon Dec 25 17:23:19 2017: New connection from 127.0.0.1 on port 1883.
Mon Dec 25 17:23:19 2017: New client connected from 127.0.0.1 as e9967724-8589-4c5e-bd50-54b94e791213 (c1, k60, u'emonpi').
Mon Dec 25 17:23:20 2017: New connection from 127.0.0.1 on port 1883.
Mon Dec 25 17:23:20 2017: New client connected from 127.0.0.1 as openhab.1514135446325 (c1, k60, u'emonpi').
Mon Dec 25 17:23:25 2017: New connection from 127.0.0.1 on port 1883.
Mon Dec 25 17:23:25 2017: New client connected from 127.0.0.1 as lwrf (c1, k20, u'emonpi').
Mon Dec 25 17:23:25 2017: New connection from 127.0.0.1 on port 1883.
Mon Dec 25 17:23:25 2017: New client connected from 127.0.0.1 as 3144b63e-cf68-4dd0-8aec-32e0d5f31830 (c1, k60, u'emonpi').
Mon Dec 25 17:23:25 2017: New connection from 127.0.0.1 on port 1883.
Mon Dec 25 17:23:25 2017: New client connected from 127.0.0.1 as mqtt_39f6498c.c609b6 (c1, k15, u'emonpi').
Mon Dec 25 17:23:29 2017: New connection from ::1 on port 1883.
Mon Dec 25 17:23:29 2017: New client connected from ::1 as mosq/YHrvXPaN=Lg9oallP] (c1, k5, u'emonpi').
Tue Dec 26 20:34:51 2017: Client mosq/YHrvXPaN=Lg9oallP] has exceeded timeout, disconnecting.
Tue Dec 26 20:34:51 2017: Socket error on client mosq/YHrvXPaN=Lg9oallP], disconnecting.
Tue Dec 26 21:43:57 2017: New connection from ::1 on port 1883.
Tue Dec 26 21:43:57 2017: New client connected from ::1 as mosq/uo?r<k0vh@HPXrLrs@ (c1, k5, u'emonpi').
Thu Dec 28 16:23:03 2017: Client mosq/uo?r<k0vh@HPXrLrs@ has exceeded timeout, disconnecting.
Thu Dec 28 16:23:03 2017: Socket error on client mosq/uo?r<k0vh@HPXrLrs@, disconnecting.
Thu Dec 28 16:39:07 2017: New connection from ::1 on port 1883.

Attached extended log and packages version.

mosquitto_issue.zip (43.1 KB)

I have not clear why is disconnecting, because is working over Wiffi? because is required add some additional configuration to prevent timeouts? Any help will be welcomed.

The log indicates that the client is connecting via IPv6, but the others are connecting via IPv4. Maybe that has something to do with it. What does the client’s (that is being disconnected) log say?

All the client’s appear to be local to the MQTT server, i.e. on the same device and not using Wi-Fi.

Thanks for your reply Frogmore42,

MQTT server and all connections are only from localhost. In fact, emonpi release is emonSD-03May16, and all componentes (redis, mosquitto, mqtt, node-red, etc) are on localhost.

But as you mention, IPv6 is enabled and maybe conections are connected on tcp6:

root@emonpi(rw):~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr b8:27:eb:0c:f9:2a
          inet6 addr: fe80::3382:2ed7:366b:44fd/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:49035768 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49035768 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:10711658352 (9.9 GiB)  TX bytes:10711658352 (9.9 GiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:59:ac:7f
          inet addr:192.168.1.22  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ebd3:2ca3:366a:f421/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1564311 errors:0 dropped:24 overruns:0 frame:0
          TX packets:942294 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1767131566 (1.6 GiB)  TX bytes:159406312 (152.0 MiB)




root@emonpi(rw):~# cat /etc/modprobe.d/ipv6.conf
# Don't load ipv6 by default
alias net-pf-10 off
#alias ipv6 off
root@emonpi(rw):~# netstat -lnpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      905/sshd
tcp        0      0 0.0.0.0:1880            0.0.0.0:*               LISTEN      548/node-red
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN      27064/0
tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      25504/mosquitto
tcp        0      0 0.0.0.0:161             0.0.0.0:*               LISTEN      1156/snmpd
tcp        0      0 0.0.0.0:5666            0.0.0.0:*               LISTEN      7057/nrpe
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      1558/mysqld
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      10673/redis-server
tcp        0      0 0.0.0.0:5038            0.0.0.0:*               LISTEN      1803/asterisk
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1803/asterisk
tcp6       0      0 :::5555                 :::*                    LISTEN      10805/java
tcp6       0      0 :::22                   :::*                    LISTEN      905/sshd
tcp6       0      0 ::1:6010                :::*                    LISTEN      27064/0
tcp6       0      0 :::1883                 :::*                    LISTEN      25504/mosquitto
tcp6       0      0 :::8443                 :::*                    LISTEN      10805/java
tcp6       0      0 :::5666                 :::*                    LISTEN      7057/nrpe
tcp6       0      0 :::8080                 :::*                    LISTEN      10805/java
tcp6       0      0 :::80                   :::*                    LISTEN      1557/apache2

root@emonpi(rw):~# lsmod|grep ipv6
nf_reject_ipv6          3729  1 ip6t_REJECT
nf_log_ipv6             5412  5
nf_conntrack_ipv6       9161  7
nf_defrag_ipv6         15842  1 nf_conntrack_ipv6
nf_log_common           4521  2 nf_log_ipv6,nf_log_ipv4
nf_conntrack          104634  8 nf_conntrack_ipv6,nf_conntrack_ftp,nf_conntrack_ipv4,nf_conntrack_broadcast,nf_nat_ftp,nf_conntrack_netbios_ns,xt_conntrack,nf_nat
ipv6                  408900  67 nf_conntrack_ipv6,nf_reject_ipv6,nf_defrag_ipv6

After implement notes in following link, seems that IPv6 is disabled

https://www.raspberrypi.org/forums/viewtopic.php?t=138899

root@emonpi(ro):~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr b8:27:eb:0c:f9:2a
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1353 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1353 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:163287 (159.4 KiB)  TX bytes:163287 (159.4 KiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:59:ac:7f
          inet addr:192.168.1.22  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:157 errors:0 dropped:0 overruns:0 frame:0
          TX packets:146 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14606 (14.2 KiB)  TX bytes:26743 (26.1 KiB)

root@emonpi(ro):~#
root@emonpi(ro):~# netstat -lnpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:5555            0.0.0.0:*               LISTEN      1148/java
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      907/sshd
tcp        0      0 0.0.0.0:1880            0.0.0.0:*               LISTEN      535/node-red
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN      1910/0
tcp        0      0 0.0.0.0:8443            0.0.0.0:*               LISTEN      1148/java
tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      533/mosquitto
tcp        0      0 0.0.0.0:161             0.0.0.0:*               LISTEN      1150/snmpd
tcp        0      0 0.0.0.0:5666            0.0.0.0:*               LISTEN      1031/nrpe
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      1547/mysqld
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      975/redis-server 12
tcp        0      0 0.0.0.0:5038            0.0.0.0:*               LISTEN      1787/asterisk
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1787/asterisk
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      1148/java
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1517/apache2

I will cross my fingers and hope this solve the issue. :crossed_fingers:

This same error is mentioned in this thread

Have you done an emoncms update from the admin screen? What version of emoncms (at the bottom of the page) are you running?

HiBorpin,

Yes, emoncms is up to date (low-write 9.8.10 | 2017.08.17), kernel (Linux 4.9.59-v7+
) and applications (previous file attached). Always upgrades of emoncms has been launched from admin screen.

Since i have disabled IPv6, MQTT / mosquitto has not been turned off again, but i can see in mosquitto’s log file some disconnections and automatic reconnections

root@emonpi(ro):~# tail -30 /var/log/mosquitto/mosquitto.log |  perl -pe 's/(\d+)/localtime($1)/e'
Thu Dec 28 16:23:03 2017: Client mosq/uo?r<k0vh@HPXrLrs@ has exceeded timeout, disconnecting.
Thu Dec 28 16:23:03 2017: Socket error on client mosq/uo?r<k0vh@HPXrLrs@, disconnecting.
Thu Dec 28 16:39:07 2017: New connection from ::1 on port 1883.
Thu Dec 28 16:39:07 2017: New client connected from ::1 as mosq/MhBFvKeMASCb9AMc_5 (c1, k5, u'emonpi').
Fri Dec 29 22:48:08 2017: Socket error on client mosq/MhBFvKeMASCb9AMc_5, disconnecting.
Fri Dec 29 22:48:08 2017: Socket error on client 3144b63e-cf68-4dd0-8aec-32e0d5f31830, disconnecting.
Fri Dec 29 22:48:08 2017: Socket error on client lwrf, disconnecting.
Fri Dec 29 22:48:08 2017: mosquitto version 1.4.14 terminating
Fri Dec 29 22:48:45 2017: mosquitto version 1.4.14 (build date Mon, 10 Jul 2017 23:48:43 +0100) starting
Fri Dec 29 22:48:45 2017: Config loaded from /etc/mosquitto/mosquitto.conf.
Fri Dec 29 22:48:45 2017: Opening ipv4 listen socket on port 1883.
Fri Dec 29 22:48:45 2017: Opening ipv6 listen socket on port 1883.
Fri Dec 29 22:48:45 2017: Warning: Address family not supported by protocol
Fri Dec 29 22:48:45 2017: New connection from 127.0.0.1 on port 1883.
Fri Dec 29 22:48:45 2017: New client connected from 127.0.0.1 as lwrf (c1, k20, u'emonpi').
Fri Dec 29 22:48:50 2017: New connection from 127.0.0.1 on port 1883.
Fri Dec 29 22:48:50 2017: New client connected from 127.0.0.1 as adf83c51-177f-410c-b6ad-229bb2ef25b9 (c1, k60, u'emonpi').
Fri Dec 29 22:48:54 2017: Socket error on client adf83c51-177f-410c-b6ad-229bb2ef25b9, disconnecting.
Fri Dec 29 22:49:04 2017: New connection from 127.0.0.1 on port 1883.
Fri Dec 29 22:49:04 2017: New client connected from 127.0.0.1 as bda2f4de-69bd-4ba4-97ca-1f7092ba5ee7 (c1, k60, u'emonpi').
Fri Dec 29 22:49:04 2017: New connection from 127.0.0.1 on port 1883.
Fri Dec 29 22:49:04 2017: New client connected from 127.0.0.1 as 995fb2a7-65d2-4e55-a8df-88f84e4b2df5 (c1, k60, u'emonpi').
Fri Dec 29 22:49:08 2017: Socket error on client lwrf, disconnecting.
Fri Dec 29 22:49:08 2017: New connection from 127.0.0.1 on port 1883.
Fri Dec 29 22:49:08 2017: New client connected from 127.0.0.1 as lwrf (c1, k20, u'emonpi').
Fri Dec 29 22:49:13 2017: New connection from 127.0.0.1 on port 1883.
Fri Dec 29 22:49:13 2017: New client connected from 127.0.0.1 as mosq/:a[6wCu2RQ2`lH@:W> (c1, k5, u'emonpi').
Fri Dec 29 22:49:27 2017: New connection from 127.0.0.1 on port 1883.
Fri Dec 29 22:49:27 2017: New client connected from 127.0.0.1 as mqtt_6428813b.9bd78 (c1, k15, u'emonpi').
Fri Dec 29 22:49:35 2017: New connection from 127.0.0.1 on port 1883.

But these reconections has not cause loss of service of emoncms. May be still is early to take as a leeson learned, but should i suppose that is a good practice disabled IPv6 on emoncms?.

Current version is 9.8.27 and some MQTT issues have recently been solved. If you look at the ‘recent posts’ you will see an announcement.

I think you should see an update button in the admin screen (I don’t use the EmonPi image so cannot be sure).

Remember to update your databases.

Hi Brian,

You are in true, last version is 9.8.27. A weird situation is that from administration view, if i update from button “emonPi Update”, application really does not upgrade… (log attached)

Update_emoncms.txt (3.8 KB)

And from button “Update database” notify: Database is up to date - Nothing to do

I have not very clear how implement manual procedure of upgrade version and update database, and i have no idea why updgrades does not work from admin view. Any idea?

You can check and see if it has updated. From the log it looks like it has. The server version number is at the bottom of every page and in the Administration page under ‘Server’.

The emonpi Update also seems to do a database update for you. This in’t always needed just good practice to check.

Has this improved the MQTT disconnections?

Hi Brian,

Update does not work and update log does not seem to have errors

emonpiupdate.log.zip (1.5 KB)

Another log has to many errors:

/var/log/service-runner.log

error: Your local changes to the following files would be overwritten by merge:
        conf/emonhub.conf
        conf/interfacer_examples/directserial-serialtx3e/readme.md
        conf/interfacer_examples/modbus/readme.md
        src/interfacers/EmonHubEmoncmsHTTPInterfacer.py
        src/interfacers/EmonModbusTcpInterfacer.py
Please, commit your changes or stash them before you can merge.
Aborting
error: Your local changes to the following files would be overwritten by merge:
        process/power_to_kwh.php
        readme.md
Please, commit your changes or stash them before you can merge.
Aborting
error: Your local changes to the following files would be overwritten by merge:
        .gitignore
        README.md
Please, commit your changes or stash them before you can merge.
Aborting

avrdude-original: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude-original: Device signature = 0x1e950f
avrdude-original: NOTE: "flash" memory has been specified, an erase cycle will be performed
                  To disable this feature, specify the -D option.
avrdude-original: erasing chip
avrdude-original: reading input file "/home/pi/emonpi/firmware/compiled/latest.hex"
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex auto detected as Intel Hex
avrdude-original: writing flash (17898 bytes):

Writing | ################################################## | 100% 2.48s

avrdude-original: 17898 bytes of flash written
avrdude-original: verifying flash memory against /home/pi/emonpi/firmware/compiled/latest.hex:
avrdude-original: load data flash data from input file /home/pi/emonpi/firmware/compiled/latest.hex:
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex auto detected as Intel Hex
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex contains 17898 bytes
avrdude-original: reading on-chip flash data:

Reading | ################################################## | 100% 1.88s

avrdude-original: verifying ...
avrdude-original: 17898 bytes of flash verified
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe

avrdude-original done.  Thank you.

strace: |autoreset: Broken pipe
error: Your local changes to the following files would be overwritten by merge:
        Lib/email.php
Please, commit your changes or stash them before you can merge.
Aborting
Already on 'emonpi'
error: Your local changes to the following files would be overwritten by merge:
        backup/backup_view.php
        backup/module.json
Please, commit your changes or stash them before you can merge.
Aborting
COMPLETE: /home/pi/emonpi/service-runner-update.sh rfm69pi > /home/pi/data/emonpiupdate.log

Iptables is disabled and internet connection is available

root@emonpi(ro):~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

I have no idea why update is not working, but MQTT has not lost connectivity from more than 1 week.

Hi, sorry, reached the limit of my knowledge as I don’t use the emonpi. Have you tried connecting to emoncms from the command line with MQTT? There are some examples here MQTT - Guide | OpenEnergyMonitor .

Hi Brian,

After disable IPv6 mosquitto / MQTT does not disconnect anymore. Thank you so much for your support.

Related to problems with emoncms upgrade, i will open a new thread to looking for a solution.

This topic can be closed.

Yes I see lots of issues on my home wifi that I attribute to IPV6. Disabling it internally on everything helps.