xmidt-org / xmidt

Highly scalable pipes for communicating with devices all over the place.
Apache License 2.0
17 stars 19 forks source link

Need help with a WebPA server installation #79

Closed VicLin66 closed 3 months ago

VicLin66 commented 4 months ago

Suffered same situation with issue #3. But seems no resolve guide there. I had issued talaria installation command, "GO111MODULE=on go install github.com/xmidt-org/talaria@latest", after install is finished, O can launch talaria program. But it showed with below error message, is it expected?

[LOG]
$ talaria 
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x178 pc=0xa405f7]

goroutine 1 [running]:
github.com/spf13/viper.(*Viper).AllKeys(0x0)
    /home/wnc/go/pkg/mod/github.com/spf13/viper@v1.18.2/viper.go:2069 +0x97
github.com/spf13/viper.(*Viper).Unmarshal(0x418f54?, {0xd97940, 0xc000072080}, {0x0, 0x0, 0x0})
    /home/wnc/go/pkg/mod/github.com/spf13/viper@v1.18.2/viper.go:1118 +0x31
github.com/xmidt-org/webpa-common/v2/service/servicecfg.NewEnvironment(0xc000138540?, {0x10ca860, 0x0}, {0x0, 0x0, 0x1?})
    /home/wnc/go/pkg/mod/github.com/xmidt-org/webpa-common/v2@v2.3.2/service/servicecfg/environment.go:28 +0x104
main.talaria({0xc0000400b0, 0x1, 0x1})
    /home/wnc/go/pkg/mod/github.com/xmidt-org/talaria@v0.9.2/main.go:151 +0x7d8
main.main.func1()
    /home/wnc/go/pkg/mod/github.com/xmidt-org/talaria@v0.9.2/main.go:271 +0x28
main.main()
    /home/wnc/go/pkg/mod/github.com/xmidt-org/talaria@v0.9.2/main.go:274 +0x13

Any I use go v1.21.6

$ go version
go version go1.21.6 linux/amd64

$ talaria -v
talaria:
  version:  undefined
  go version:   go1.21.6
  built time:   undefined
  git commit:   undefined
  os/arch:  linux/amd64
VicLin66 commented 3 months ago

I ignored to put talaria.yaml into /etc/talaria/ After that, it seems worked. close case. Sorry for any inconvenient.