Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-20414

Agent 2 (6.0.0beta1) not stable

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 6.0.0beta1
    • Agent2 plugin (N)
    • None
    • Sprint 84 (Jan 2022)

      After upgrading from version 5.4.9, the /var/log/messages prints:

      Jan  7 14:35:38 demo zabbix_agent2[31986]: Starting Zabbix Agent 2 (5.4.9)
      Jan  7 14:35:38 demo zabbix_agent2[31986]: Zabbix Agent2 hostname: [Zabbix server,PostgreSQL,MySQL server 01,MySQL server 02]
      Jan  7 14:35:38 demo zabbix_agent2[31986]: Press Ctrl+C to exit.
      Jan  7 14:39:11 demo kcm[30947]: Shutting down (status = 0)
      Jan  7 14:39:11 demo systemd[1]: sssd-kcm.service: Succeeded.
      Jan  7 14:40:00 demo systemd[1]: Starting system activity accounting tool...
      Jan  7 14:40:00 demo systemd[1]: sysstat-collect.service: Succeeded.
      Jan  7 14:40:00 demo systemd[1]: Started system activity accounting tool.
      Jan  7 14:40:08 demo systemd[1]: Stopping Zabbix Agent 2...
      Jan  7 14:40:10 demo zabbix_agent2[31986]: Zabbix Agent 2 stopped. (5.4.9)
      Jan  7 14:40:10 demo systemd[1]: zabbix-agent2.service: Succeeded.
      Jan  7 14:40:10 demo systemd[1]: Stopped Zabbix Agent 2.
      Jan  7 14:40:10 demo systemd[1]: Started Zabbix Agent 2.
      Jan  7 14:40:10 demo zabbix_agent2[32915]: Starting Zabbix Agent 2 (6.0.0beta1)
      Jan  7 14:40:10 demo zabbix_agent2[32915]: Zabbix Agent2 hostname: [Zabbix server,PostgreSQL,MySQL server 01,MySQL server 02]
      Jan  7 14:40:10 demo zabbix_agent2[32915]: Press Ctrl+C to exit.
      Jan  7 14:40:10 demo systemd[1]: Started /usr/bin/systemctl start man-db-cache-update.
      Jan  7 14:40:10 demo systemd[1]: Starting man-db-cache-update.service...
      Jan  7 14:40:10 demo systemd[1]: Reloading.
      Jan  7 14:40:10 demo systemd[1]: man-db-cache-update.service: Succeeded.
      Jan  7 14:40:10 demo systemd[1]: Started man-db-cache-update.service.
      Jan  7 14:40:10 demo systemd[1]: run-r576a52177dc54e9883b082c5ad258429.service: Succeeded.
      Jan  7 14:40:10 demo systemd[1]: Started /usr/bin/systemctl start man-db-cache-update.
      Jan  7 14:40:10 demo systemd[1]: Starting man-db-cache-update.service...
      Jan  7 14:40:10 demo systemd[1]: man-db-cache-update.service: Succeeded.
      Jan  7 14:40:10 demo systemd[1]: Started man-db-cache-update.service.
      Jan  7 14:40:10 demo systemd[1]: run-r15ba47c1117d42a7a1d919a096f307b6.service: Succeeded.
      Jan  7 14:40:16 demo zabbix_agent2[32915]: fatal error: unexpected signal during runtime execution
      Jan  7 14:40:16 demo zabbix_agent2[32915]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb93107]
      Jan  7 14:40:16 demo zabbix_agent2[32915]: runtime stack:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: runtime.throw({0xd452bd, 0x7f8015e14804})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/runtime/panic.go:1198 +0x71
      Jan  7 14:40:16 demo zabbix_agent2[32915]: runtime.sigpanic()
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/runtime/signal_unix.go:719 +0x396
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 29 [syscall]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: runtime.cgocall(0xa6f522, 0xc00005fad8)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/runtime/cgocall.go:156 +0x5c fp=0xc00005fab0 sp=0xc00005fa78 pc=0x42387c
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/pkg/zbxlib._Cfunc_process_log_check(0x7f8008000de0, 0x7f8008000c90, 0x7f8008000d40, 0xa6f172, 0xc001a10118, 0xc001a10128, 0xc000522060, 0x7f8008000e20)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011_cgo_gotypes.go:661 +0x4c fp=0xc00005fad8 sp=0xc00005fab0 pc=0x58970c
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/pkg/zbxlib.ProcessLogCheck.func3(0x7f8008000e20, 0x7f8008000de0, 0xc1a002, 0x25, 0xc00005fc40, 0x42a53d, 0xc000590680)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/pkg/zbxlib/logfile.go:298 +0x125 fp=0xc00005fb70 sp=0xc00005fad8 pc=0x58c205
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/pkg/zbxlib.ProcessLogCheck(0xc001a100bb, 0xc00005fda8, 0xc0002ad470, 0xd67488)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/pkg/zbxlib/logfile.go:298 +0x186 fp=0xc00005fcc8 sp=0xc00005fb70 pc=0x58b4c6
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/plugins/log.(*Plugin).Export(0x14fb5c0, {0xc001a100bb, 0x14fb5c0}, {0xc0001a80e0, 0xc000503f60, 0x4661af}, {0xe25a38, 0xc000200300})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/plugins/log/log.go:109 +0x50d fp=0xc00005fdf8 sp=0xc00005fcc8 pc=0x749f4d
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/scheduler.(*exporterTask).perform.func1({0xc000038100, 0x34})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/scheduler/task.go:168 +0x1cb fp=0xc00005ffc0 sp=0xc00005fdf8 pc=0x5a3a8b
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/scheduler.(*exporterTask).perform·dwrap·2()
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/scheduler/task.go:204 +0x31 fp=0xc00005ffe0 sp=0xc00005ffc0 pc=0x5a3891
      Jan  7 14:40:16 demo zabbix_agent2[32915]: runtime.goexit()
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00005ffe8 sp=0xc00005ffe0 pc=0x484061
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/scheduler.(*exporterTask).perform
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/scheduler/task.go:156 +0x108
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 1 [select]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: main.run()
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/cmd/zabbix_agent2/zabbix_agent2.go:178 +0x185
      Jan  7 14:40:16 demo zabbix_agent2[32915]: main.main()
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/cmd/zabbix_agent2/zabbix_agent2.go:566 +0x1853
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 6 [select]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/scheduler.(*Manager).run(0xc00027ee10)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/scheduler/manager.go:352 +0x1cf
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/scheduler.(*Manager).Start
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/scheduler/manager.go:540 +0x6f
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 7 [chan receive]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/resultcache.(*MemoryCache).run(0xc0002ad470)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/resultcache/memorycache.go:208 +0x85
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/resultcache.(*MemoryCache).Start
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/resultcache/memorycache.go:238 +0x6f
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 8 [select]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/serverconnector.(*Connector).run(0xc0002850e0)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/serverconnector/serverconnector.go:310 +0x1d7
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/serverconnector.(*Connector).Start
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/serverconnector/serverconnector.go:372 +0x87
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 9 [chan receive]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/resultcache.(*MemoryCache).run(0xc0002ad4d0)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/resultcache/memorycache.go:208 +0x85
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/resultcache.(*MemoryCache).Start
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/resultcache/memorycache.go:238 +0x6f
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 10 [select]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/serverconnector.(*Connector).run(0xc000285200)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/serverconnector/serverconnector.go:310 +0x1d7
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/serverconnector.(*Connector).Start
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/serverconnector/serverconnector.go:372 +0x87
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 11 [chan receive]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/resultcache.(*MemoryCache).run(0xc0002ad530)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/resultcache/memorycache.go:208 +0x85
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/resultcache.(*MemoryCache).Start
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/resultcache/memorycache.go:238 +0x6f
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 12 [select]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/serverconnector.(*Connector).run(0xc000285320)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/serverconnector/serverconnector.go:310 +0x1d7
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/serverconnector.(*Connector).Start
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/serverconnector/serverconnector.go:372 +0x87
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 19 [chan receive]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/resultcache.(*MemoryCache).run(0xc0002ad590)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/resultcache/memorycache.go:208 +0x85
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/resultcache.(*MemoryCache).Start
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/resultcache/memorycache.go:238 +0x6f
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 20 [select]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/serverconnector.(*Connector).run(0xc000285440)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/serverconnector/serverconnector.go:310 +0x1d7
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/serverconnector.(*Connector).Start
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/serverconnector/serverconnector.go:372 +0x87
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 21 [IO wait]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: internal/poll.runtime_pollWait(0x7f8014602728, 0x72)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/runtime/netpoll.go:229 +0x89
      Jan  7 14:40:16 demo zabbix_agent2[32915]: internal/poll.(*pollDesc).wait(0xc00052a000, 0xc001a100e0, 0x0)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/internal/poll/fd_poll_runtime.go:84 +0x32
      Jan  7 14:40:16 demo zabbix_agent2[32915]: internal/poll.(*pollDesc).waitRead(...)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/internal/poll/fd_poll_runtime.go:89
      Jan  7 14:40:16 demo zabbix_agent2[32915]: internal/poll.(*FD).Accept(0xc00052a000)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/internal/poll/fd_unix.go:402 +0x22c
      Jan  7 14:40:16 demo zabbix_agent2[32915]: net.(*netFD).accept(0xc00052a000)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/net/fd_unix.go:173 +0x35
      Jan  7 14:40:16 demo zabbix_agent2[32915]: net.(*TCPListener).accept(0xc00051e048)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/net/tcpsock_posix.go:140 +0x28
      Jan  7 14:40:16 demo zabbix_agent2[32915]: net.(*TCPListener).Accept(0xc00051e048)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/net/tcpsock.go:262 +0x3d
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/pkg/zbxcomms.(*Listener).Accept(0xc00051e060, 0xb2d05e00, 0x1)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/pkg/zbxcomms/comms.go:308 +0x37
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/serverlistener.(*ServerListener).run(0xc0002d0000)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/serverlistener/serverlistener.go:72 +0x167
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/serverlistener.(*ServerListener).Start
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/serverlistener/serverlistener.go:112 +0x1c7
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 34 [syscall]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: os/signal.signal_recv()
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/runtime/sigqueue.go:169 +0x98
      Jan  7 14:40:16 demo zabbix_agent2[32915]: os/signal.loop()
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/os/signal/signal_unix.go:24 +0x19
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by os/signal.Notify.func1.1
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/os/signal/signal.go:151 +0x2c
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 50 [IO wait]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: internal/poll.runtime_pollWait(0x7f8014602640, 0x72)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/runtime/netpoll.go:229 +0x89
      Jan  7 14:40:16 demo zabbix_agent2[32915]: internal/poll.(*pollDesc).wait(0xc00058c000, 0x0, 0x0)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/internal/poll/fd_poll_runtime.go:84 +0x32
      Jan  7 14:40:16 demo zabbix_agent2[32915]: internal/poll.(*pollDesc).waitRead(...)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/internal/poll/fd_poll_runtime.go:89
      Jan  7 14:40:16 demo zabbix_agent2[32915]: internal/poll.(*FD).Accept(0xc00058c000)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/internal/poll/fd_unix.go:402 +0x22c
      Jan  7 14:40:16 demo zabbix_agent2[32915]: net.(*netFD).accept(0xc00058c000)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/net/fd_unix.go:173 +0x35
      Jan  7 14:40:16 demo zabbix_agent2[32915]: net.(*UnixListener).accept(0x0)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/net/unixsock_posix.go:167 +0x1c
      Jan  7 14:40:16 demo zabbix_agent2[32915]: net.(*UnixListener).Accept(0xc000586030)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/net/unixsock.go:260 +0x3d
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/remotecontrol.(*Conn).run(0xc000580000)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/remotecontrol/remote.go:64 +0x48
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/remotecontrol.(*Conn).Start
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/remotecontrol/remote.go:80 +0x65
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 31 [runnable]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: github.com/jackc/pgconn/internal/ctxwatch.(*ContextWatcher).Watch.func1()
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/pkg/mod/github.com/jackc/[email protected]/internal/ctxwatch/context_watcher.go:41 +0x72
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by github.com/jackc/pgconn/internal/ctxwatch.(*ContextWatcher).Watch
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/pkg/mod/github.com/jackc/[email protected]/internal/ctxwatch/context_watcher.go:40 +0xc5
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 79 [runnable]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: github.com/jackc/pgconn/internal/ctxwatch.(*ContextWatcher).Watch.func1()
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/pkg/mod/github.com/jackc/[email protected]/internal/ctxwatch/context_watcher.go:40
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by github.com/jackc/pgconn/internal/ctxwatch.(*ContextWatcher).Watch
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/pkg/mod/github.com/jackc/[email protected]/internal/ctxwatch/context_watcher.go:40 +0xc5
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 30 [runnable]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: syscall.Syscall(0x1, 0x222c, 0xc007498000, 0x2f)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/syscall/asm_linux_amd64.s:20 +0x5
      Jan  7 14:40:16 demo zabbix_agent2[32915]: syscall.write(0xc0070db400, {0xc007498000, 0xc000125000, 0x42565d})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/syscall/zsyscall_linux_amd64.go:915 +0x4d
      Jan  7 14:40:16 demo zabbix_agent2[32915]: syscall.Write(...)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/syscall/syscall_unix.go:214
      Jan  7 14:40:16 demo zabbix_agent2[32915]: internal/poll.ignoringEINTRIO(...)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/internal/poll/fd_unix.go:582
      Jan  7 14:40:16 demo zabbix_agent2[32915]: internal/poll.(*FD).Write(0xc0070db400, {0xc007498000, 0x2f, 0x400})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/internal/poll/fd_unix.go:275 +0x36e
      Jan  7 14:40:16 demo zabbix_agent2[32915]: net.(*netFD).Write(0xc0070db400, {0xc007498000, 0x10000000000000a, 0x7f8005762198})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/net/fd_posix.go:74 +0x29
      Jan  7 14:40:16 demo zabbix_agent2[32915]: net.(*conn).Write(0xc006fa6f60, {0xc007498000, 0xc007498000, 0xc000125210})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/net/net.go:195 +0x45
      Jan  7 14:40:16 demo zabbix_agent2[32915]: github.com/jackc/pgconn.(*PgConn).execExtendedSuffix(0xc007496000, {0xc007498000, 0xc005d461e0, 0x0}, 0xc007496098)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/pkg/mod/github.com/jackc/[email protected]/pgconn.go:1063 +0x108
      Jan  7 14:40:16 demo zabbix_agent2[32915]: github.com/jackc/pgconn.(*PgConn).ExecPrepared(0xc007496000, {0xe1eb48, 0xc005d461e0}, {0xc001a44130, 0xa}, {0x0, 0x0, 0x0}, {0x0, 0x0, ...}, ...)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/pkg/mod/github.com/jackc/[email protected]/pgconn.go:1018 +0x196
      Jan  7 14:40:16 demo zabbix_agent2[32915]: github.com/jackc/pgx/v4.(*Conn).Query(0xc000137440, {0xe1eb48, 0xc005d461e0}, {0xd578e1, 0x1a9}, {0xc005d58110, 0x0, 0x0})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/pkg/mod/github.com/jackc/pgx/[email protected]/conn.go:705 +0xa05
      Jan  7 14:40:16 demo zabbix_agent2[32915]: github.com/jackc/pgx/v4/stdlib.(*Conn).QueryContext(0xc000137680, {0xe1eb48, 0xc005d461e0}, {0xd578e1, 0x1a9}, {0x15336c8, 0x0, 0x0})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/pkg/mod/github.com/jackc/pgx/[email protected]/stdlib/sql.go:351 +0x1e5
      Jan  7 14:40:16 demo zabbix_agent2[32915]: database/sql.ctxDriverQuery({0xe1eb48, 0xc005d461e0}, {0x7f80057708b8, 0xc000137680}, {0x0, 0x0}, {0xd578e1, 0x0}, {0x15336c8, 0x0, ...})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/database/sql/ctxutil.go:48 +0x17d
      Jan  7 14:40:16 demo zabbix_agent2[32915]: database/sql.(*DB).queryDC.func1()
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/database/sql/sql.go:1722 +0x175
      Jan  7 14:40:16 demo zabbix_agent2[32915]: database/sql.withLock({0xe15618, 0xc000516360}, 0xc0005777b8)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/database/sql/sql.go:3396 +0x8c
      Jan  7 14:40:16 demo zabbix_agent2[32915]: database/sql.(*DB).queryDC(0xc000577801, {0xe1eb48, 0xc005d461e0}, {0x0, 0x0}, 0xc000516360, 0xc005d58100, {0xd578e1, 0x1a9}, {0x0, ...})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/database/sql/sql.go:1717 +0x211
      Jan  7 14:40:16 demo zabbix_agent2[32915]: database/sql.(*DB).query(0xc000045000, {0xe1eb48, 0xc005d461e0}, {0xd578e1, 0x1a9}, {0x0, 0x0, 0x0}, 0xe0)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/database/sql/sql.go:1700 +0xfd
      Jan  7 14:40:16 demo zabbix_agent2[32915]: database/sql.(*DB).QueryContext(0x10, {0xe1eb48, 0xc005d461e0}, {0xd578e1, 0x1a9}, {0x0, 0x0, 0x0})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/database/sql/sql.go:1674 +0xdf
      Jan  7 14:40:16 demo zabbix_agent2[32915]: database/sql.(*DB).QueryRowContext(...)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/database/sql/sql.go:1778
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/plugins/postgres.(*PGConn).QueryRow(0xe1eb48, {0xe1eb48, 0xc005d461e0}, {0xd578e1, 0xe1eb10}, {0x0, 0x0, 0x0})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/plugins/postgres/conn.go:89 +0x3d
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/plugins/postgres.bgwriterHandler({0xe1eb48, 0xc005d461e0}, {0xe25b78, 0xc000099900}, {0xf, 0x0}, 0x0, {0x0, 0x0, 0x0})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/plugins/postgres/handler_bgwriter.go:53 +0x9d
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/plugins/postgres.(*Plugin).Export(0x14fbec0, {0xc001a440f0, 0x14fbec0}, {0xc005d56040, 0xc0002e7f60, 0x2c6be11d00460001}, {0x100000000000000, 0x7f80143d2f40})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/plugins/postgres/postgres.go:100 +0x71b
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/internal/agent/scheduler.(*exporterTask).perform.func1({0xc00028c240, 0x3e})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/scheduler/task.go:168 +0x1cb
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/internal/agent/scheduler.(*exporterTask).perform
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/internal/agent/scheduler/task.go:156 +0x108
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 71 [select]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: zabbix.com/plugins/postgres.(*ConnManager).housekeeper(0x0, {0xe1ead8, 0xc0071a3d00}, 0x0)
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/plugins/postgres/conn.go:186 +0x9e
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by zabbix.com/plugins/postgres.NewConnManager
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/tmp/build-rhel-8-x86_64.UFwHw3Dq/buildroot/BUILD/zabbix-6.0.0beta1/src/go/plugins/postgres/conn.go:152 +0x17b
      Jan  7 14:40:16 demo zabbix_agent2[32915]: goroutine 73 [select]:
      Jan  7 14:40:16 demo zabbix_agent2[32915]: database/sql.(*DB).connectionOpener(0xc0073d1c70, {0xe1ead8, 0xc0071a3d80})
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/database/sql/sql.go:1196 +0x93
      Jan  7 14:40:16 demo zabbix_agent2[32915]: created by database/sql.OpenDB
      Jan  7 14:40:16 demo zabbix_agent2[32915]: #011/home/packager/go1.17/src/database/sql/sql.go:794 +0x188
      Jan  7 14:40:16 demo systemd[1]: zabbix-agent2.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
      Jan  7 14:40:16 demo systemd[1]: zabbix-agent2.service: Failed with result 'exit-code'.
      

      In same time metrics are sometimes accessible and sometims not:

      [root@demo ~]# zabbix_get -s 192.168.7.203 -p 10050 -k agent.version
      zabbix_get [35017]: Get value error: cannot connect to [[192.168.7.203]:10050]: [111] Connection refused
      [root@demo ~]# zabbix_get -s 192.168.7.203 -p 10050 -k agent.version
      zabbix_get [35021]: Get value error: cannot connect to [[192.168.7.203]:10050]: [111] Connection refused
      [root@demo ~]# zabbix_get -s 192.168.7.203 -p 10050 -k agent.version
      6.0.0beta1
      [root@demo ~]# zabbix_get -s 192.168.7.203 -p 10050 -k agent.version
      6.0.0beta1
      

            ssimonenko Sergey Simonenko (Inactive)
            aigars.kadikis Aigars Kadikis
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: