Describe the bug
Every couple of days the Add-on stops completely. Restarting the Add-on does not work at this point, and only a full reboot of the system brings it back.
To Reproduce
Steps to reproduce the behavior:
Start add-on
Wait 1-2 days
Expected behavior
Add-on should stay running, and if stopped should be able to be started again
(please complete the following information):
OS: HAOS, most recent version
Additional context
Log:
Time Between Readings = 15
Duration = 120
Electric Unit of measurement = kWh
Gas Unit of measurement = ft³
Water Unit of measurement = l
Gas Multiplier = 1.0
Electric Multiplier = 1.0
Water Multiplier = 1.0
Debug is false
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Tuned to 100000000 Hz.
Allocating 15 zero-copy buffers
00:39:08.348747 decode.go:45: CenterFreq: 912600155
00:39:08.349469 decode.go:46: SampleRate: 2359296
00:39:08.349504 decode.go:47: DataRate: 32768
00:39:08.349525 decode.go:48: ChipLength: 72
00:39:08.349541 decode.go:49: PreambleSymbols: 16
00:39:08.349559 decode.go:50: PreambleLength: 2304
00:39:08.349578 decode.go:51: PacketSymbols: 128
00:39:08.349597 decode.go:52: PacketLength: 18432
00:39:08.349619 decode.go:59: Protocols: scm+
00:39:08.349639 decode.go:60: Preambles: 0001011010100011
00:39:08.349659 main.go:124: GainCount: 29
00:39:13.354189 main.go:343: Receiver context cancelled.
00:39:13.354424 main.go:320: read tcp 127.0.0.1:51236->127.0.0.1:1234: i/o timeout
io.ReadFull
main.(*Receiver).Run.func2
/go/pkg/mod/github.com/bemasher/rtlamr@v0.9.3/main.go:181
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1695
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Signal caught, exiting!
Signal caught, exiting!
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
Starting RTLAMR with parameters:
AMR Message Type = scm+
AMR Device IDs = 76060195,94078372
Time Between Readings = 15
Duration = 120
Electric Unit of measurement = kWh
Gas Unit of measurement = ft³
Water Unit of measurement = l
Gas Multiplier = 1.0
Electric Multiplier = 1.0
Water Multiplier = 1.0
Debug is false
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Tuned to 100000000 Hz.
Allocating 15 zero-copy buffers
00:39:22.338328 decode.go:45: CenterFreq: 912600155
00:39:22.338886 decode.go:46: SampleRate: 2359296
00:39:22.338920 decode.go:47: DataRate: 32768
00:39:22.338941 decode.go:48: ChipLength: 72
00:39:22.338961 decode.go:49: PreambleSymbols: 16
00:39:22.339015 decode.go:50: PreambleLength: 2304
00:39:22.339036 decode.go:51: PacketSymbols: 128
00:39:22.339055 decode.go:52: PacketLength: 18432
00:39:22.339080 decode.go:59: Protocols: scm+
00:39:22.339103 decode.go:60: Preambles: 0001011010100011
00:39:22.339125 main.go:124: GainCount: 29
00:39:27.344055 main.go:343: Receiver context cancelled.
00:39:27.344230 main.go:320: read tcp 127.0.0.1:34158->127.0.0.1:1234: i/o timeout
io.ReadFull
main.(*Receiver).Run.func2
/go/pkg/mod/github.com/bemasher/rtlamr@v0.9.3/main.go:181
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1695
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Signal caught, exiting!
Signal caught, exiting!
Describe the bug Every couple of days the Add-on stops completely. Restarting the Add-on does not work at this point, and only a full reboot of the system brings it back.
To Reproduce Steps to reproduce the behavior:
Expected behavior Add-on should stay running, and if stopped should be able to be started again
(please complete the following information):
Additional context Log: