You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
``
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: