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 When Running Local Development Network #2025

Open
smallfu6 opened this issue Sep 28, 2024 · 1 comment
Open

Error When Running Local Development Network #2025

smallfu6 opened this issue Sep 28, 2024 · 1 comment

Comments

@smallfu6
Copy link

smallfu6 commented Sep 28, 2024

I'm encountering an error while trying to run a local development network. The following steps were taken:

make start

Error Message:

make[1]: Entering directory '/home/web3/beacon-kit'                                                                                                
mkdir -p /home/web3/beacon-kit/build/bin/                                                                                                          
Building beacond/cmd 
......                                                                                                                              
types.go:24:2: cosmossdk.io/[email protected]: invalid version: unknown revision 896cdf1971bc                                   
../../mod/errors/mod.go:26:2: cosmossdk.io/[email protected]: invalid version: unknown revision 896cdf1971bc    
......
../../mod/consensus/pkg/cometbft/cli/commands.go:38:2: cosmossdk.io/[email protected]: invalid version: unknown revision 896cdf1971bc
../../mod/consensus/pkg/cometbft/cli/commands.go:42:2: cosmossdk.io/[email protected]: invalid version: unknown revision 896cdf1971bc
../../mod/consensus/pkg/cometbft/cli/commands.go:43:2: cosmossdk.io/[email protected]: invalid version: unknown revision 896cdf1971bc
../../mod/consensus/pkg/cometbft/cli/commands.go:46:2: cosmossdk.io/[email protected]: invalid version: unknown revision 896cdf1971bc
../../mod/cli/pkg/commands/setup.go:37:2: cosmossdk.io/[email protected]: invalid version: unknown revision 896cdf1971bc
main.go:32:2: cosmossdk.io/[email protected]: invalid version: unknown revision 896cdf1971bc
make[1]: *** [build/scripts/build.mk:90: build] Error 1
make[1]: Leaving directory '/home/web3/beacon-kit'
make: *** [build/scripts/testing.mk:34: start] Error 2

Environment:

OS: Ubuntu 20.04.6 LTS
Golang: 1.23.0
Docker: 24.0.7

Do I need to reinstall cosmossdk? how to fix this error?

@metter0
Copy link

metter0 commented Sep 29, 2024

  1. Verify the go.mod file of your project to check the expected version of the cosmossdk.io/store module. Look for a line like this:
  • require cosmossdk.io/store v1.1.1-0.20240418092142-896cdf1971bc
    2)Ensure that you are using a valid version of the cosmossdk.io/store module. Update your Go module dependencies:
  1. Run the following command to tidy up the go.mod file and prune any unused dependencies:
  • go mod tidy
    Next
  • go get -u cosmossdk.io/store@latest
    or specify a stable version:
  • go get cosmossdk.io/[email protected]
    
  1. Clear Module Cache
  • go clean -modcache
    Retry Build
  1. After performing the steps above, try running the command again to start the build: make start
  • make start
    If the issue persists, check if there are any specific issues on GitHub repositories or forums concerning the cosmossdk version you're using. It’s possible that there have been breaking changes or the specific revision has been removed.
  1. Reinstall Dependencies (if necessary)
    If none of the above solutions work, you might want to delete your go.mod and go.sum files and reinitialize the module:
  1. Delete go.mod and go.sum.
  2. Reinitialize the Go module with:
  • go mod init <module_name>

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