chaos-mesh / chaosd

A Chaos Engineering toolkit.
Apache License 2.0
136 stars 63 forks source link

[jvm.go:57] ["bash: bminstall.sh: command not found\n"] #129

Closed cwen0 closed 2 years ago

cwen0 commented 2 years ago
  1. Use make chaosd command to build chaosd binary
  2. Run ./chaosd attack jvm gc --pid 23333
[2022/02/11 17:48:32.111 +08:00] [ERROR] [jvm.go:57] ["bash: bminstall.sh: command not found\n"] [error="exit status 127"] [stack="github.com/pingcap/log.Error\n\t/root/go/pkg/mod/github.com/pingcap/log@v0.0.0-20200117041106-d28c14d3b1cd/global.go:42\ngithub.com/chaos-mesh/chaosd/pkg/server/chaosd.jvmAttack.Attack\n\t/root/cwen/chaosd/pkg/server/chaosd/jvm.go:57\ngithub.com/chaos-mesh/chaosd/pkg/server/chaosd.(*Server).ExecuteAttack\n\t/root/cwen/chaosd/pkg/server/chaosd/attack.go:105\ngithub.com/chaos-mesh/chaosd/cmd/attack.jvmCommandFunc\n\t/root/cwen/chaosd/cmd/attack/jvm.go:181\nreflect.Value.call\n\t/usr/local/go/src/reflect/value.go:556\nreflect.Value.Call\n\t/usr/local/go/src/reflect/value.go:339\ngo.uber.org/dig.defaultInvoker\n\t/root/go/pkg/mod/go.uber.org/dig@v1.10.0/dig.go:284\ngo.uber.org/dig.(*Container).Invoke\n\t/root/go/pkg/mod/go.uber.org/dig@v1.10.0/dig.go:439\ngo.uber.org/fx.(*App).executeInvokes\n\t/root/go/pkg/mod/go.uber.org/fx@v1.13.1/app.go:692\ngo.uber.org/fx.New\n\t/root/go/pkg/mod/go.uber.org/fx@v1.13.1/app.go:471\ngithub.com/chaos-mesh/chaosd/pkg/utils.FxNewAppWithoutLog\n\t/root/cwen/chaosd/pkg/utils/utils.go:27\ngithub.com/chaos-mesh/chaosd/cmd/attack.NewJVMGCCommand.func1\n\t/root/cwen/chaosd/cmd/attack/jvm.go:132\ngithub.com/spf13/cobra.(*Command).execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:854\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958\ngithub.com/spf13/cobra.(*Command).Execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895\nmain.main\n\t/root/cwen/chaosd/cmd/main.go:77\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:255"]
WangXiangUSTC commented 2 years ago

Need to download the byteman and other tools, I will update the Makefile