Hi,
I’ve got an issue with MQTT Add-On Mosquitto which affect Zigbee2MQTT. Is anyone got this problem ? A rollback from backup doesn’t work since this Add-On wasn’t backup.
Into the log of Mosquitto:
2024-04-04 11:07:06: New connection from 127.0.0.1:57766 on port 1883.
2024-04-04 11:07:06: Client <unknown> disconnected due to protocol error.
2024-04-04 11:07:06: New connection from 172.30.33.6:60134 on port 1883.
[11:07:06] INFO: Successfully send discovery information to Home Assistant.
2024-04-04 11:07:06: New client connected from 172.30.33.6:60134 as mqttjs_5ce1f065 (p5, c1, k60, u'addons').
unexpected fault address 0x0
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x7f40e53da909]
goroutine 23 [running]:
runtime.throw(0x7f40e5ae3b7a, 0x5)
/usr/lib/go-1.15/src/runtime/panic.go:1116 +0x74 fp=0xc000067d00 sp=0xc000067cd0 pc=0x7f40e4fd5cb4
runtime.sigpanic()
/usr/lib/go-1.15/src/runtime/signal_unix.go:749 +0x405 fp=0xc000067d30 sp=0xc000067d00 pc=0x7f40e4febc65
net/http.newTransferWriter(0x7f40e5eef3a0, 0xc0000b8600, 0x7f40e5aee965, 0x10, 0xc000067e58)
/usr/lib/go-1.15/src/net/http/transfer.go:76 +0x9 fp=0xc000067d38 sp=0xc000067d30 pc=0x7f40e53da909
net/http.(*Request).write(0xc0000b8600, 0x7f40e5f3b8a0, 0xc000130000, 0x0, 0xc000110120, 0x0, 0x0, 0x0)
/usr/lib/go-1.15/src/net/http/request.go:628 +0x4d1 fp=0xc000067e98 sp=0xc000067d38 pc=0x7f40e53ce771
net/http.(*persistConn).writeLoop(0xc00012a000)
/usr/lib/go-1.15/src/net/http/transport.go:2349 +0x1c5 fp=0xc000067fd8 sp=0xc000067e98 pc=0x7f40e53ec225
runtime.goexit()
/usr/lib/go-1.15/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc000067fe0 sp=0xc000067fd8 pc=0x7f40e500c6e1
created by net/http.(*Transport).dialConn
/usr/lib/go-1.15/src/net/http/transport.go:1716 +0xcdc
goroutine 6 [chan receive]:
github.com/iegomez/mosquitto-go-auth/backends/files.(*Checker).watchSignals(0xc000321ea0)
/usr/src/mosquitto-go-auth/backends/files/files.go:107 +0x9e
created by github.com/iegomez/mosquitto-go-auth/backends/files.NewChecker
/usr/src/mosquitto-go-auth/backends/files/files.go:97 +0x285
goroutine 17 [select, locked to thread]:
net/http.(*persistConn).roundTrip(0xc00012a000, 0xc000215040, 0x0, 0x0, 0x0)
/usr/lib/go-1.15/src/net/http/transport.go:2573 +0x7a5
net/http.(*Transport).roundTrip(0xc000235680, 0xc0000b8500, 0x7f40e5ef4e00, 0x7f40e3ee4b01, 0xc0000b8500)
/usr/lib/go-1.15/src/net/http/transport.go:582 +0xab8
net/http.(*Transport).RoundTrip(0xc000235680, 0xc0000b8500, 0xc000235680, 0xc17bb94fdac5d183, 0x141c7db1f)
/usr/lib/go-1.15/src/net/http/roundtrip.go:17 +0x37
net/http.send(0xc0000b8400, 0x7f40e5f3d320, 0xc000235680, 0xc17bb94fdac5d183, 0x141c7db1f, 0x7f40e6508fe0, 0xc000010a20, 0xc17bb94fdac5d183, 0x1, 0x0)
/usr/lib/go-1.15/src/net/http/client.go:252 +0x453
net/http.(*Client).send(0xc000319590, 0xc0000b8400, 0xc17bb94fdac5d183, 0x141c7db1f, 0x7f40e6508fe0, 0xc000010a20, 0x0, 0x1, 0x6)
/usr/lib/go-1.15/src/net/http/client.go:176 +0xff
net/http.(*Client).do(0xc000319590, 0xc0000b8400, 0x0, 0x0, 0x0)
/usr/lib/go-1.15/src/net/http/client.go:718 +0x45f
net/http.(*Client).Do(...)
/usr/lib/go-1.15/src/net/http/client.go:586
github.com/iegomez/mosquitto-go-auth/backends.HTTP.httpRequest(0x557825c87270, 0xf, 0x557825c881c0, 0xa, 0x557825c846e0, 0x4, 0xc00037c750, 0x10, 0x557825c85e00, 0x9, ...)
/usr/src/mosquitto-go-auth/backends/http.go:235 +0x673
github.com/iegomez/mosquitto-go-auth/backends.HTTP.GetSuperuser(0x557825c87270, 0xf, 0x557825c881c0, 0xa, 0x557825c846e0, 0x4, 0xc00037c750, 0x10, 0x557825c85e00, 0x9, ...)
/usr/src/mosquitto-go-auth/backends/http.go:167 +0x278
github.com/iegomez/mosquitto-go-auth/backends.(*Backends).checkAcl(0xc000321e30, 0x557825cb6a00, 0x6, 0x557825cb57f0, 0x1c, 0x557825cb6ea0, 0xf, 0x2, 0xc0000c8f20, 0xc0001c1bf0, ...)
/usr/src/mosquitto-go-auth/backends/backends.go:473 +0x53e
github.com/iegomez/mosquitto-go-auth/backends.(*Backends).AuthAclCheck(0xc000321e30, 0x557825cb6ea0, 0xf, 0x557825cb6a00, 0x6, 0x557825cb57f0, 0x1c, 0x2, 0xf, 0x2, ...)
/usr/src/mosquitto-go-auth/backends/backends.go:417 +0xa99
main.authAclCheck(0x557825cb6ea0, 0xf, 0x557825cb6a00, 0x6, 0x557825cb57f0, 0x1c, 0x2, 0xf, 0x1, 0xc0001c1e80)
/usr/src/mosquitto-go-auth/go-auth.go:370 +0xb1
main.AuthAclCheck(0x557825cb6ea0, 0xf, 0x557825cb6a00, 0x6, 0x557825cb57f0, 0x1c, 0x2, 0x38)
/usr/src/mosquitto-go-auth/go-auth.go:338 +0xae
main._cgoexpwrap_6c877fb7ed5a_AuthAclCheck(0x557825cb6ea0, 0xf, 0x557825cb6a00, 0x6, 0x557825cb57f0, 0x1c, 0x2, 0x7c0000006e)
_cgo_gotypes.go:71 +0x6c
goroutine 7 [select]:
github.com/patrickmn/go-cache.(*janitor).Run(0xc00023f200, 0xc000214fc0)
/root/go/pkg/mod/github.com/patrickmn/[email protected]+incompatible/cache.go:1079 +0xda
created by github.com/patrickmn/go-cache.runJanitor
/root/go/pkg/mod/github.com/patrickmn/[email protected]+incompatible/cache.go:1099 +0xab
goroutine 20 [syscall]:
os/signal.signal_recv(0x0)
/usr/lib/go-1.15/src/runtime/sigqueue.go:147 +0x9e
os/signal.loop()
/usr/lib/go-1.15/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/lib/go-1.15/src/os/signal/signal.go:150 +0x46
goroutine 22 [IO wait]:
internal/poll.runtime_pollWait(0x7f40e024beb8, 0x72, 0x7f40e5f3eb00)
/usr/lib/go-1.15/src/runtime/netpoll.go:222 +0x65
internal/poll.(*pollDesc).wait(0xc000118118, 0x72, 0x7f40e5f3eb00, 0x7f40e64af168, 0x0)
/usr/lib/go-1.15/src/internal/poll/fd_poll_runtime.go:87 +0x47
internal/poll.(*pollDesc).waitRead(...)
/usr/lib/go-1.15/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000118100, 0xc00012e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/lib/go-1.15/src/internal/poll/fd_unix.go:159 +0x1a5
net.(*netFD).Read(0xc000118100, 0xc00012e000, 0x1000, 0x1000, 0x5, 0x7f40e5068a9d, 0x557825c842d0)
/usr/lib/go-1.15/src/net/fd_posix.go:55 +0x51
net.(*conn).Read(0xc000126008, 0xc00012e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/lib/go-1.15/src/net/net.go:182 +0x90
net/http.(*persistConn).Read(0xc00012a000, 0xc00012e000, 0x1000, 0x1000, 0x7f40e4fa51d0, 0x60, 0x0)
/usr/lib/go-1.15/src/net/http/transport.go:1894 +0x77
bufio.(*Reader).fill(0xc00010e4e0)
/usr/lib/go-1.15/src/bufio/bufio.go:101 +0x105
bufio.(*Reader).Peek(0xc00010e4e0, 0x1, 0xc00008a900, 0x0, 0x0, 0xc000057530, 0x7f40e4fad2b0)
/usr/lib/go-1.15/src/bufio/bufio.go:139 +0x51
net/http.(*persistConn).readLoop(0xc00012a000)
/usr/lib/go-1.15/src/net/http/transport.go:2047 +0x1aa
created by net/http.(*Transport).dialConn
/usr/lib/go-1.15/src/net/http/transport.go:1715 +0xcb7
[11:07:06] INFO: Successfully send service information to the Supervisor.
[09:07:06] INFO: Service restart after closing
In the log of Zigbee2MQTT:
Zigbee2MQTT:error 2024-04-04 11:16:25: MQTT error: connect ECONNREFUSED 172.30.33.0:1883