Hi,
First thank you for this fantastic work!
I am using InfluxDB for weeks without any problem.
This morning it does not start correctly anymore.
Last update I have done was a week ago.
It looks like a normal start but after 1 min I have strange log.
When trying to connect to it I have a error 502 Bad Gateway
First log when I start the addon manually (as it is crashing even if autostart)
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Hass.io Add-on: InfluxDB
Scalable datastore for metrics, events, and real-time analytics
-----------------------------------------------------------
Add-on version: 3.5.1
You are running the latest version of this add-on.
System: HassOS 3.8 (armv7 / raspberrypi3)
Home Assistant version: 0.104.3
Supervisor version: 195
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
Log level is set to WARNING
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] create-users.sh: executing...
[cont-init.d] create-users.sh: exited 0.
[cont-init.d] influxdb.sh: executing...
[cont-init.d] influxdb.sh: exited 0.
[cont-init.d] kapacitor.sh: executing...
[cont-init.d] kapacitor.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
After 1 minunute I see this
os.(*File).write(...)
/usr/local/go/src/os/file_unix.go:280
os.(*File).Write(0x1914a9a8, 0x21900000, 0x100000, 0x100000, 0x0, 0x3b9ad42f, 0x15808)
/usr/local/go/src/os/file.go:145 +0x5c
github.com/influxdata/influxdb/pkg/limiter.(*Writer).Write(0x2d6e520, 0x21900000, 0x100000, 0x100000, 0x1ae2c000, 0x22984300, 0x8)
/go/src/github.com/influxdata/influxdb/pkg/limiter/writer.go:64 +0xd4
bufio.(*Writer).Flush(0x2d6e5e0, 0x22982000, 0x22d5)
/usr/local/go/src/bufio/bufio.go:590 +0x64
bufio.(*Writer).Write(0x2d6e5e0, 0x22982000, 0x2308, 0x2310, 0x4, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:626 +0xf8
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*tsmWriter).WriteBlock(0x14afbe90, 0x1a8fe080, 0x3e, 0x40, 0x7e970b00, 0x15ed9552, 0xcd08c700, 0x15edb65f, 0x22982000, 0x2308, ...)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/writer.go:679 +0x138
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).write(0x319cba0, 0x3b01bd0, 0x49, 0x1abaf08, 0xa063fc0, 0xe95c01, 0x0, 0x0)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1149 +0x214
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).writeNewFiles(0x319cba0, 0x3, 0x1, 0x0, 0x0, 0x0, 0x1abaf08, 0xa063fc0, 0x4f92601, 0x0, ...)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1032 +0x144
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).WriteSnapshot.func1(0xf8eec80, 0x319cba0, 0x4e15498, 0x1f4f9880, 0x35d4680)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:847 +0x94
created by github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).WriteSnapshot
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:845 +0x16c
goroutine 667 [IO wait]:
internal/poll.runtime_pollWait(0x66c6fda4, 0x72, 0xffffffff)
/usr/local/go/src/runtime/netpoll.go:182 +0x48
internal/poll.(*pollDesc).wait(0x154c2514, 0x72, 0x0, 0x1, 0xffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x80
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0x154c2500, 0xd3adead, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:169 +0x184
net.(*netFD).Read(0x154c2500, 0xd3adead, 0x1, 0x1, 0x4ad4060, 0x503718, 0x7)
/usr/local/go/src/net/fd_unix.go:202 +0x38
net.(*conn).Read(0x1914a690, 0xd3adead, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:177 +0x5c
net/http.(*connReader).backgroundRead(0xd3adea0)
/usr/local/go/src/net/http/server.go:677 +0x44
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:673 +0xb0
goroutine 693 [runnable]:
syscall.Syscall(0x76, 0x4d, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/asm_linux_arm.s:14 +0x8
syscall.Fsync(0x4d, 0x18e6860, 0x40da440)
/usr/local/go/src/syscall/zsyscall_linux_arm.go:449 +0x30
internal/poll.(*FD).Fsync(0x40da440, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_fsync_posix.go:17 +0x84
os.(*File).Sync(0x492c568, 0x0, 0x0)
/usr/local/go/src/os/file_posix.go:133 +0x40
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WALSegmentWriter).sync(0x4913640, 0xc0000000, 0x1a446001)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:1087 +0x54
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).sync(0x303e980)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:300 +0x20
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).scheduleSync.func1(0x303e980)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:287 +0x74
created by github.com/influxdata/influxdb/tsdb/engine/tsm1.(*WAL).scheduleSync
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/wal.go:261 +0x60
goroutine 673 [running]:
runtime.throw(0xea2be6, 0xd)
/usr/local/go/src/runtime/panic.go:617 +0x5c fp=0x10bc5d90 sp=0x10bc5d7c pc=0x400d8
runtime.(*mcache).refill(0x76eeb368, 0x65)
/usr/local/go/src/runtime/mcache.go:137 +0xfc fp=0x10bc5da4 sp=0x10bc5d90 pc=0x2668c
runtime.(*mcache).nextFree(0x76eeb368, 0x65, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/malloc.go:786 +0x7c fp=0x10bc5dc4 sp=0x10bc5da4 pc=0x1ac30
runtime.mallocgc(0x2000, 0xd0ace0, 0xbc7501, 0x31ac200)
/usr/local/go/src/runtime/malloc.go:939 +0x78c fp=0x10bc5e2c sp=0x10bc5dc4 pc=0x1b574
runtime.makeslice(0xd0ace0, 0x1fdc, 0x1fdc, 0x3e8)
/usr/local/go/src/runtime/slice.go:49 +0x70 fp=0x10bc5e40 sp=0x10bc5e2c pc=0x579b8
github.com/influxdata/influxdb/tsdb/engine/tsm1.packBlock(0x0, 0x0, 0x0, 0x1f00, 0x10afc000, 0x1f41, 0x1f41, 0x1379aa00, 0x90, 0x207f, ...)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/encoding.go:948 +0x1b8 fp=0x10bc5e70 sp=0x10bc5e40 pc=0xbca8ec
github.com/influxdata/influxdb/tsdb/engine/tsm1.encodeFloatBlockUsing(0x0, 0x0, 0x0, 0x12d7fc40, 0x3e8, 0x3878, 0x1ab2c60, 0x31ac200, 0x47664c0, 0x22fb0000, ...)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/encoding.go:394 +0x1b0 fp=0x10bc5eb4 sp=0x10bc5e70 pc=0xbc7668
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*cacheKeyIterator).encode.func1(0x4e156c8, 0x1, 0x651, 0xa063fc0)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1959 +0x2ec fp=0x10bc5fdc sp=0x10bc5eb4 pc=0xc1e584
runtime.goexit()
/usr/local/go/src/runtime/asm_arm.s:868 +0x4 fp=0x10bc5fdc sp=0x10bc5fdc pc=0x71a18
created by github.com/influxdata/influxdb/tsdb/engine/tsm1.(*cacheKeyIterator).encode
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1921 +0x80
goroutine 448 [running]:
runtime.throw(0xea2be6, 0xd)
/usr/local/go/src/runtime/panic.go:617 +0x5c fp=0x111d1d90 sp=0x111d1d7c pc=0x400d8
runtime.(*mcache).refill(0x76eeb004, 0x65)
/usr/local/go/src/runtime/mcache.go:137 +0xfc fp=0x111d1da4 sp=0x111d1d90 pc=0x2668c
runtime.(*mcache).nextFree(0x76eeb004, 0x65, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/malloc.go:786 +0x7c fp=0x111d1dc4 sp=0x111d1da4 pc=0x1ac30
runtime.mallocgc(0x2000, 0xd0ace0, 0xbc7501, 0x31ac1a0)
/usr/local/go/src/runtime/malloc.go:939 +0x78c fp=0x111d1e2c sp=0x111d1dc4 pc=0x1b574
runtime.makeslice(0xd0ace0, 0x1fdc, 0x1fdc, 0x3e8)
/usr/local/go/src/runtime/slice.go:49 +0x70 fp=0x111d1e40 sp=0x111d1e2c pc=0x579b8
github.com/influxdata/influxdb/tsdb/engine/tsm1.packBlock(0x0, 0x0, 0x0, 0x1f00, 0x1104c000, 0x1f41, 0x1f41, 0x15df4a00, 0x90, 0x207f, ...)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/encoding.go:948 +0x1b8 fp=0x111d1e70 sp=0x111d1e40 pc=0xbca8ec
github.com/influxdata/influxdb/tsdb/engine/tsm1.encodeFloatBlockUsing(0x0, 0x0, 0x0, 0x1298bac0, 0x3e8, 0x30a8, 0x1ab2c60, 0x31ac1a0, 0x47663c0, 0x22f6b400, ...)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/encoding.go:394 +0x1b0 fp=0x111d1eb4 sp=0x111d1e70 pc=0xbc7668
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*cacheKeyIterator).encode.func1(0x4e156c8, 0x1, 0x651, 0xa063fc0)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1959 +0x2ec fp=0x111d1fdc sp=0x111d1eb4 pc=0xc1e584
runtime.goexit()
/usr/local/go/src/runtime/asm_arm.s:868 +0x4 fp=0x111d1fdc sp=0x111d1fdc pc=0x71a18
created by github.com/influxdata/influxdb/tsdb/engine/tsm1.(*cacheKeyIterator).encode
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1921 +0x80
[s6-finish] sending all processes the TERM signal.
My config:
{
"auth": true,
"reporting": true,
"ssl": false,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"envvars": [],
"log_level": "warning",
"verify_ssl": false
}
I notice the CPU/MEM (Glances) are running sky high until crashing at startup.
Anything I can do ?