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

Local setup fails starting API due to non-unique hmac #526

Closed
darkspirit510 opened this issue Mar 6, 2021 · 1 comment · Fixed by #529
Closed

Local setup fails starting API due to non-unique hmac #526

darkspirit510 opened this issue Mar 6, 2021 · 1 comment · Fixed by #529

Comments

@darkspirit510
Copy link

darkspirit510 commented Mar 6, 2021

Hi all,
I ran make install, sourced the env file and tried make run-client. This failed with:
[HUSKYCI][ERROR] Sending request to huskyCI: Post "http://localhost:8888/analysis": dial tcp [::1]:8888: connect: connection refused. I checked for missing/stopped Docker containers and found a Exited API. The logs of the API contains the following error:

panic: crypto/hmac: hash generation function does not produce unique values

goroutine 1 [running]:
crypto/hmac.New(0xc0005cdbf0, 0xc0004d88d0, 0xf, 0x10, 0x0, 0x10)
	/usr/local/go/src/crypto/hmac/hmac.go:143 +0x370
golang.org/x/crypto/pbkdf2.Key(0xc0004d88d0, 0xf, 0x10, 0xc0003ee4c0, 0x40, 0x40, 0x186a0, 0x200, 0xc0005cdbf0, 0x0, ...)
	/go/pkg/mod/golang.org/x/crypto@v0.0.0-20200510223506-06a226fb4e37/pbkdf2/pbkdf2.go:43 +0x67
github.com/globocom/huskyCI/api/user.InsertDefaultUser(0xa28e60, 0xc00019c000)
	/go/src/github.com/globocom/huskyCI/api/user/user.go:58 +0x333
github.com/globocom/huskyCI/api/util/api.(*CheckUtils).checkDefaultUser(0xce2678, 0xc000022380, 0x98a011, 0x8)
	/go/src/github.com/globocom/huskyCI/api/util/api/api.go:139 +0x158
github.com/globocom/huskyCI/api/util/api.HuskyUtils.CheckHuskyRequirements(0xa33258, 0xce2678, 0xc000022380, 0x6, 0xb)
	/go/src/github.com/globocom/huskyCI/api/util/api/api.go:47 +0x22c
main.main()
	/go/src/github.com/globocom/huskyCI/api/server.go:46 +0x1ff

Is this a known issue or a misconfiguration on my side? (I did not see any required configuration in the quick start guide)

Platform: Docker version 20.10.2, build 2291f61, macOS 11.2.2 (20D80), go version go1.16 darwin/amd64

@darkspirit510
Copy link
Author

Update: Fresh installation of LTS Ubuntu server (20.04), only installed golang via apt install golang (1.13) and followed setup guide - same error/panic.

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

Successfully merging a pull request may close this issue.

1 participant