dokku-event-listener.service throws panic: runtime error: invalid memory address or nil pointer dereference errors in logs
Logs are like that:
Oct 30 13:42:51 systemd[1]: Stopped dokku-event-listener process.
Oct 30 13:42:51 systemd[1]: Started dokku-event-listener process.
Oct 30 13:42:51 dokku-event-listener.service[31447]: {"level":"info","container_id":"a40834cbe","app":"ttrss","ip_address":"172.17.0.12","time":1604061771,"message":"register_container"}
Oct 30 13:42:51 dokku-event-listener.service[31447]: {"level":"info","container_id":"ebd57a439","app":"ttrss","ip_address":"172.17.0.9","time":1604061771,"message":"register_container"}
Oct 30 13:42:51 dokku-event-listener.service[31447]: {"level":"info","container_id":"b4bd6bc25","app":"influxdb","ip_address":"172.17.0.4","time":1604061771,"message":"register_container"}
Oct 30 13:42:51 dokku-event-listener.service[31447]: {"level":"info","container_id":"beab674fc","app":"hivemq","ip_address":"172.17.0.2","time":1604061771,"message":"register_container"}
Oct 30 13:42:51 dokku-event-listener.service[31447]: {"level":"info","container_id":"3c8f4c783","app":"calibre","ip_address":"172.17.0.3","time":1604061771,"message":"register_container"}
Oct 30 13:42:51 dokku-event-listener.service[31447]: panic: runtime error: invalid memory address or nil pointer dereference
Oct 30 13:42:51 dokku-event-listener.service[31447]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x68 pc=0x825b96]
Oct 30 13:42:51 dokku-event-listener.service[31447]: goroutine 1 [running]:
Oct 30 13:42:51 dokku-event-listener.service[31447]: main.registerContainers(0x9bf540, 0xc000022018, 0xcf8f60, 0xc0000f7d80)
Oct 30 13:42:51 dokku-event-listener.service[31447]: github.com/dokku/dokku-event-listener/main.go:100 +0x466
Oct 30 13:42:51 dokku-event-listener.service[31447]: main.main()
Oct 30 13:42:51 dokku-event-listener.service[31447]: github.com/dokku/dokku-event-listener/main.go:227 +0x114
Oct 30 13:42:51 systemd[1]: dokku-event-listener.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Oct 30 13:42:51 systemd[1]: dokku-event-listener.service: Failed with result 'exit-code'.
All my running containers:
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a40834cbeadf dokku/ttrss:latest "/start clock" 44 hours ago Up 44 hours ttrss.clock.1
ebd57a439d55 dokku/ttrss:latest "/start web" 44 hours ago Up 44 hours ttrss.web.1
5659166597eb postgres:11.6 "docker-entrypoint.s…" 2 days ago Up 2 days 5432/tcp dokku.postgres.ttrss-pgsql
b4bd6bc25a85 dokku/influxdb:latest "/entrypoint.sh infl…" 2 days ago Up 2 days 8086/tcp influxdb.web.1
beab674fce1b dokku/hivemq:latest "/opt/docker-entrypo…" 6 weeks ago Up 2 days 0.0.0.0:1883->1883/tcp, 8000/tcp hivemq.web.1
3c8f4c7833c7 dokku/calibre:latest "/init" 6 weeks ago Up 2 days 8083/tcp calibre.web.1
09ade9061436 dokku/hab:latest "/entrypoint.sh gosu…" 6 weeks ago Up 2 days hab.web.1
I suppose that it crashes on last container. It's set up with --net=host option, instead of docker bridge.
Description of problem
dokku-event-listener.service
throwspanic: runtime error: invalid memory address or nil pointer dereference
errors in logsLogs are like that:
All my running containers:
I suppose that it crashes on last container. It's set up with
--net=host
option, instead of docker bridge.Environment Information
dokku report hab
outputHow (deb/make/rpm) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:
deb: