Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json unmarshal panic on startup #824

Closed
deathtrip opened this issue Jul 31, 2021 · 2 comments
Closed

json unmarshal panic on startup #824

deathtrip opened this issue Jul 31, 2021 · 2 comments

Comments

@deathtrip
Copy link

I'm using the git package from the AUR with go 1.16.6, and upon starting the service i get this error:

panic: json: cannot unmarshal string into Go struct field NodeConfig.Listen of type []string
yggdrasil[177312]: goroutine 34 [running]:
yggdrasil[177312]: main.readConfig(0xc000128060, 0x0, 0x7ca3dbe81865, 0x13, 0xc00012c000, 0x0)
yggdrasil[177312]: /tmp/makepkg/yggdrasil-git/src/yggdrasil/cmd/yggdrasil/main.go:132 +0xdb7
yggdrasil[177312]: main.run(0x0, 0x7ca3dbe81865, 0x13, 0x0, 0x75de58, 0x6, 0x0, 0x75d7ea, 0x4, 0x7bd038, ...)
yggdrasil[177312]: /tmp/makepkg/yggdrasil-git/src/yggdrasil/cmd/yggdrasil/main.go:268 +0x1078
yggdrasil[177312]: created by main.main
yggdrasil[177312]: /tmp/makepkg/yggdrasil-git/src/yggdrasil/cmd/yggdrasil/main.go:395 +0x22e
systemd[1]: yggdrasil.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: yggdrasil.service: Failed with result 'exit-code'.

@beryll1um
Copy link

beryll1um commented Jan 7, 2022

Please provide more information about the problem. I've tried to compile project from AUR package then generate configuration:

./yggdrasil -genconf > yggdrasil.conf

and finally start the yggdrasil node:

sudo ./yggdrasil -useconffile yggdrasil.conf

In my case all working fine. I think you generated the config not according to the manual, or your config was changed after generation.

@deathtrip
Copy link
Author

I was using the old config file from the 0.3 version, after generating a new one, it's working again. Thanks for the hint.

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

No branches or pull requests

2 participants