You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Graylog sidecar crashes when /etc/mtab contains lines that are "too long".
● graylog-sidecar.service - Wrapper service for Graylog controlled collector
Loaded: loaded (/etc/systemd/system/graylog-sidecar.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2025-01-27 08:58:01 CET; 3s ago
Process: 325428 ExecStart=/usr/bin/graylog-sidecar (code=exited, status=2)
Main PID: 325428 (code=exited, status=2)
CPU: 21ms
Jan 23 14:58:58 host.fqdn systemd[1]: Started Wrapper service for Graylog controlled collector.
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: time="2025-01-23T14:58:58+01:00" level=info msg="Using node-id: cc1dcbf4-a2c2-44e6-81a5-23da826fc852"
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: time="2025-01-23T14:58:58+01:00" level=info msg="No node name was configured, falling back to hostname"
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: time="2025-01-23T14:58:58+01:00" level=info msg="Starting signal distributor"
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: panic: runtime error: index out of range [3] with length 3
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: goroutine 19 [running]:
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: github.com/elastic/gosigar.(*FileSystemList).Get.func1({0xc000130600?, 0xc00053c000?})
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: /home/jenkins/workspace/napshots_collector-sidecar_1.5.0/vendor/github.com/elastic/gosigar/sigar_linux_common.go:113>
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: github.com/elastic/gosigar.readFile({0x81f16f?, 0x2f000000008271fb?}, 0xc0001e7448)
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: /home/jenkins/workspace/napshots_collector-sidecar_1.5.0/vendor/github.com/elastic/gosigar/sigar_linux_common.go:386>
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: github.com/elastic/gosigar.(*FileSystemList).Get(0xc0001e7550)
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: /home/jenkins/workspace/napshots_collector-sidecar_1.5.0/vendor/github.com/elastic/gosigar/sigar_linux_common.go:106>
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: github.com/Graylog2/collector-sidecar/common.GetFileSystemList75({0xc0001e7680?, 0xc0001e7680?})
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: /home/jenkins/workspace/napshots_collector-sidecar_1.5.0/common/sigar.go:111 +0x3f
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: github.com/Graylog2/collector-sidecar/api.UpdateRegistration(0x8087a0?, {0x0, 0x0}, 0xc0001de640, 0xc000190200?, 0xc00044e2d>
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: /home/jenkins/workspace/napshots_collector-sidecar_1.5.0/api/graylog.go:170 +0x185
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: github.com/Graylog2/collector-sidecar/services.updateCollectorRegistration(0x0?, {0x0, 0x0}, 0x0?, 0x0?)
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: /home/jenkins/workspace/napshots_collector-sidecar_1.5.0/services/periodicals.go:124 +0x165
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: github.com/Graylog2/collector-sidecar/services.StartPeriodicals.func1()
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: /home/jenkins/workspace/napshots_collector-sidecar_1.5.0/services/periodicals.go:63 +0x385
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: created by github.com/Graylog2/collector-sidecar/services.StartPeriodicals in goroutine 1
Jan 23 14:58:58 host.fqdn graylog-sidecar[2816708]: /home/jenkins/workspace/napshots_collector-sidecar_1.5.0/services/periodicals.go:38 +0x4f
Jan 23 14:58:58 host.fqdn systemd[1]: graylog-sidecar.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
On our server the long mtab lines are caused by docker, the longest being 4178 bytes:
Graylog sidecar crashes when /etc/mtab contains lines that are "too long".
On our server the long mtab lines are caused by docker, the longest being 4178 bytes:
This seems to be caused by elastic/gosigar#166
The text was updated successfully, but these errors were encountered: