Hi folks,
after upgrading to Graylog 2.5.0 and Elasticsearch 6.5.2 from 5.6.13 which was a pretty smooth process, I saw that all my collectors (0.1.6) were in inactive mode, even though delivering still log data to into graylog. I then saw that there is a new version available (0.1.7) which should be used due to the new CSRF headers to be send correctly. After I installed the new agent on one machine it thoughs an error while starting. (see below) The machine is running CentOS 5.11 and I hope the new version is compatible with that legacy OS. This was one of the reasons why I chose graylog. I also updated a CentOS 6 machine and there the collector is running without issues.
Hope someone can help me to understand, if the new agent design was breaking the compatiblity with CentOS 5 versions or just the new beats package inside.
Michael
time=“2018-12-06T17:16:26+01:00” level=info msg=“Using collector-id: 74d6e409-7842-47db-8f85-abd120c81883”
time=“2018-12-06T17:16:26+01:00” level=info msg=“Fetching configurations tagged by: [qad_test]”
runtime: epollwait on fd 4 failed with 38
fatal error: runtime: netpoll failed
runtime stack:
runtime.throw(0x805cc8, 0x17)
/opt/go/src/runtime/panic.go:616 +0x81
runtime.netpoll(0xc420018000, 0x0)
/opt/go/src/runtime/netpoll_epoll.go:75 +0x216
runtime.findrunnable(0xc420018000, 0x0)
/opt/go/src/runtime/proc.go:2251 +0x97b
runtime.schedule()
/opt/go/src/runtime/proc.go:2541 +0x13b
runtime.park_m(0xc420066900)
/opt/go/src/runtime/proc.go:2604 +0xb6
runtime.mcall(0x100000000001000)
/opt/go/src/runtime/asm_amd64.s:351 +0x5b
goroutine 1 [syscall]:
syscall.Syscall6(0xf7, 0x1, 0xb06, 0xc420143938, 0x1000004, 0x0, 0x0, 0x0, 0xa22380, 0x0)
/opt/go/src/syscall/asm_linux_amd64.s:44 +0x5
os.(*Process).blockUntilWaitable(0xc42008a450, 0x0, 0x0, 0x2)
/opt/go/src/os/wait_waitid.go:31 +0x98
os.(*Process).wait(0xc42008a450, 0xc420118640, 0xc42009e918, 0xc42009e918)
/opt/go/src/os/exec_unix.go:22 +0x3c
os.(*Process).Wait(0xc42008a450, 0x8195b8, 0x8195c0, 0x8195b0)
/opt/go/src/os/exec.go:123 +0x2b
os/exec.(*Cmd).Wait(0xc42009e840, 0x0, 0x0)
/opt/go/src/os/exec/exec.go:461 +0x5c
os/exec.(*Cmd).Run(0xc42009e840, 0xc4200c30a0, 0xc42009e840)
/opt/go/src/os/exec/exec.go:305 +0x5c
os/exec.(*Cmd).CombinedOutput(0xc42009e840, 0x11, 0xc420143c48, 0x1, 0x1, 0xc42009e840)
/opt/go/src/os/exec/exec.go:521 +0x106
github.com/Graylog2/collector-sidecar/backends/beats/filebeat.(*FileBeatConfig).readVersion(0xc42008c0b0, 0x40cd35, 0xc420143d38, 0x5bb963b6, 0xd5e9fcb06aa555d, 0xc42008c0b0)
/go/src/github.com/Graylog2/collector-sidecar/backends/beats/filebeat/filebeat.go:100 +0xc3
github.com/Graylog2/collector-sidecar/backends/beats/filebeat.(*FileBeatConfig).ValidatePreconditions(0xc42008c0b0, 0x84d640)
/go/src/github.com/Graylog2/collector-sidecar/backends/beats/filebeat/filebeat.go:119 +0x40
main.backendSetup(0xc420090340)
/go/src/github.com/Graylog2/collector-sidecar/main.go:166 +0x228
main.main()
/go/src/github.com/Graylog2/collector-sidecar/main.go:127 +0x3d2
goroutine 19 [syscall]:
os/signal.signal_recv(0x0)
/opt/go/src/runtime/sigqueue.go:139 +0xa6
os/signal.loop()
/opt/go/src/os/signal/signal_unix.go:22 +0x22
created by os/signal.init.0
/opt/go/src/os/signal/signal_unix.go:28 +0x41
goroutine 20 [IO wait]:
internal/poll.runtime_pollWait(0x2ace2f56ff00, 0x72, 0xc4200274e8)
/opt/go/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc42008ea68, 0x72, 0xffffffffffffff01, 0x848820, 0x9e94a0)
/opt/go/src/internal/poll/fd_poll_runtime.go:85 +0x9b
internal/poll.(*pollDesc).waitRead(0xc42008ea68, 0xc42014c001, 0x200, 0x200)
/opt/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc42008ea50, 0xc42014c000, 0x200, 0x200, 0x0, 0x0, 0x0)
/opt/go/src/internal/poll/fd_unix.go:157 +0x17d
os.(*File).read(0xc42008c0c8, 0xc42014c000, 0x200, 0x200, 0xc42014c000, 0x0, 0x0)
/opt/go/src/os/file_unix.go:226 +0x4e
os.(*File).Read(0xc42008c0c8, 0xc42014c000, 0x200, 0x200, 0x0, 0x0, 0xc420027660)
/opt/go/src/os/file.go:107 +0x6a
bytes.(*Buffer).ReadFrom(0xc4200c30a0, 0x847e80, 0xc42008c0c8, 0x2ace2f70b020, 0xc4200c30a0, 0x1)
/opt/go/src/bytes/buffer.go:205 +0xa0
io.copyBuffer(0x847820, 0xc4200c30a0, 0x847e80, 0xc42008c0c8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/opt/go/src/io/io.go:386 +0x31a
io.Copy(0x847820, 0xc4200c30a0, 0x847e80, 0xc42008c0c8, 0x0, 0x0, 0x0)
/opt/go/src/io/io.go:362 +0x5a
os/exec.(*Cmd).writerDescriptor.func1(0x0, 0x0)
/opt/go/src/os/exec/exec.go:275 +0x4d
os/exec.(*Cmd).Start.func1(0xc42009e840, 0xc420118680)
/opt/go/src/os/exec/exec.go:396 +0x27
created by os/exec.(*Cmd).Start
/opt/go/src/os/exec/exec.go:395 +0x5df
Blockquote