Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Bug: running lib.getGenlFamily in container CentOS using Docker #29

Open
renanbastos93 opened this issue Nov 29, 2019 · 2 comments
Open

Comments

@renanbastos93
Copy link

renanbastos93 commented Nov 29, 2019

So I am using image FROM centos:7 but when I to try to execute code, it broke and to generate panic. But when was tried in a VM or UNIX directly it success executing.

Error reference in two lines below:

Traceback:

panic: Netlink error code -2 getting TASKSTATS family id

goroutine 1 [running]:
github.com/uber-common/cpustat/lib.getGenlFamily(0xc0000960a0, 0x50da20)
	/root/go/src/github.com/uber-common/cpustat/lib/netlink.go:274 +0x8e
github.com/uber-common/cpustat/lib.NLInit(0x4f04df)
	/root/go/src/github.com/uber-common/cpustat/lib/netlink.go:328 +0x1f3
main.main()
	/test.go:11 +0x34
@vinigfer
Copy link

vinigfer commented Dec 1, 2019

Could you describe which OS was running on the VM, and the host OS running Unix?

@renanbastos93
Copy link
Author

Yep, I testing in a VM using CentOS 7 on MacOS Catalina, but the problem is in docker

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants