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

Error on starting binary cache client #94

Open
jurraca opened this issue Oct 3, 2023 · 0 comments
Open

Error on starting binary cache client #94

jurraca opened this issue Oct 3, 2023 · 0 comments

Comments

@jurraca
Copy link
Contributor

jurraca commented Oct 3, 2023

On starting the trustix-nix-cache service, the LogAPIClient gets started with a URL which, according to this comment should be the base URL of the cache we're setting up. But it seems to get started with the trustix socket addr, as you can see in the first line of debug message in the log dump below (address="unix:///run/trustix-daemon.socket").
Should I set the URL somewhere? I'm not setting the socket addr as the URL anywhere so not sure how this is supposed to work. Any insight would be appreciated. (sorry if this is obvious, not great at parsing Golang)
Thanks!

Oct 03 07:55:40 trustix-ams trustix-nix[228012]: time="2023-10-03T07:55:40Z" level=debug msg="Creating client for remote" address="unix:///run/trustix-daemon.socket"
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: panic: runtime error: invalid memory address or nil pointer dereference
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x7b55be]
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: goroutine 1 [running]:
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: github.com/bufbuild/connect-go.newClientConfig({0xc00023e100?, 0xc00023e100?}, {0xc0000f9ab0, 0x1, 0x90d240?})
Oct 03 07:55:40 trustix-ams trustix-nix[228012]:         github.com/bufbuild/connect-go/client.go:198 +0x1de
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: github.com/bufbuild/connect-go.NewClient[...]({0xad43a0, 0xc000206630?}, {0xc00023e100, 0x3f}, {0xc0000f9ab0, 0x1, 0x1})
Oct 03 07:55:40 trustix-ams trustix-nix[228012]:         github.com/bufbuild/connect-go/client.go:41 +0xa9
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: github.com/nix-community/trustix/packages/trustix-proto/api/apiconnect.NewLogAPIClient({0xad43a0, 0xc000206630}, {0x7fff719>
Oct 03 07:55:40 trustix-ams trustix-nix[228012]:         github.com/nix-community/trustix/packages/trustix-proto/api/apiconnect/api.connect.go:140 +0xcd
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: github.com/nix-community/trustix/packages/trustix/client.newLogAPIConnectClient(...)
Oct 03 07:55:40 trustix-ams trustix-nix[228012]:         github.com/nix-community/trustix/packages/trustix/client/connect_logapi.go:23
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: github.com/nix-community/trustix/packages/trustix/client.CreateClient({0x7fff7195bb76, 0x21}, {0xc0000f9ab0, 0x1, 0x1})
Oct 03 07:55:40 trustix-ams trustix-nix[228012]:         github.com/nix-community/trustix/packages/trustix/client/conn.go:35 +0x1d5
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: github.com/nix-community/trustix/packages/trustix-nix/cmd.glob..func1(0xe4d5a0?, {0x9f4c1f?, 0x6?, 0x6?})
Oct 03 07:55:40 trustix-ams trustix-nix[228012]:         github.com/nix-community/trustix/packages/trustix-nix/cmd/binary-cache-proxy.go:155 +0x205
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: github.com/spf13/cobra.(*Command).execute(0xe4d5a0, {0xc000220180, 0x6, 0x6})
Oct 03 07:55:40 trustix-ams trustix-nix[228012]:         github.com/spf13/cobra/command.go:872 +0x694
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: github.com/spf13/cobra.(*Command).ExecuteC(0xe4daa0)
Oct 03 07:55:40 trustix-ams trustix-nix[228012]:         github.com/spf13/cobra/command.go:990 +0x3bd
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: github.com/spf13/cobra.(*Command).Execute(...)
Oct 03 07:55:40 trustix-ams trustix-nix[228012]:         github.com/spf13/cobra/command.go:918
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: github.com/nix-community/trustix/packages/trustix-nix/cmd.Execute()
Oct 03 07:55:40 trustix-ams trustix-nix[228012]:         github.com/nix-community/trustix/packages/trustix-nix/cmd/root.go:57 +0x45
Oct 03 07:55:40 trustix-ams trustix-nix[228012]: main.main()
Oct 03 07:55:40 trustix-ams trustix-nix[228012]:         github.com/nix-community/trustix/packages/trustix-nix/main.go:11 +0x17
Oct 03 07:55:40 trustix-ams systemd[1]: trustix-nix-cache.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
``
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

1 participant