cosmprund's People
Forkers
liamsi mercurysolar autostake-com whispernode faddat cashmaney sryps knight-x techgigs80 effofxprime n0okone humantraffic nodeiistt cryptobtcbuyer dzima77 qf3l3k dadamu leafwind-web3 sayeh-1337 joeabbey crazysergo romanv1812 bandprotocol nysa-network goodolddays5 haild osmosis-labs silentnoname liver-23 iprouteth0 iwbinb nethernodexyz zenon-provalidator kitjacky satman81 switcheo surendra-patil vinjan23 malinp788 zeta-chain xiphiar perseverance42 pantheaeu burnt-labs staketown czarcas7ic choihocheol jeremyletang simon-provalidator deljavi937 addicola llporzall contribution-dao caotre druhtru cakra-labs bcdevtools yantodotid oraichaincosmprund's Issues
Cannot find module providing package
Hi. Keep getting this error while trying to make a fresh install:
~/cosmprund $ make build
Building Pruning
cmd/pruner.go:13:2: cannot find module providing package github.com/cosmos/cosmos-sdk/x/consensus/types: import lookup disabled by -mod=readonly
make: *** [makefile:13: build] Error 1
Tried go 1.18 and 1.21 on Ubuntu 22.04.
Any ideas how to solve it?
Issue using cosmprund with PebbleDB
Trying to use cosmprund with PebbleDB bacakend and getting the following error. Any help here would be appreciated.
`snapshot-0: # cosmprund prune data/
panic: runtime error: makeslice: len out of range
goroutine 1 [running]:
github.com/syndtr/goleveldb/leveldb.(*sessionRecord).readBytes(0xc0002511d8, {0x1032a6e, 0xd}, {0x7f746f1ca4a0?, 0xc000563d60})
/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/session_record.go:236 +0xb2
github.com/syndtr/goleveldb/leveldb.(*sessionRecord).decode(0xc0002511d8, {0x12d9a80?, 0xc000563d60})
/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/session_record.go:300 +0x4b7
github.com/syndtr/goleveldb/leveldb.(*session).recover(0xc0001613b0)
/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/session.go:170 +0x4d1
github.com/syndtr/goleveldb/leveldb.Open({0x12ecce0?, 0xc000eb3c70?}, 0x4fe900?)
/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:189 +0xa5
github.com/syndtr/goleveldb/leveldb.OpenFile({0xc000146678?, 0x1030f58?}, 0xc000d4fc48)
/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:225 +0x5d
github.com/tendermint/tm-db.NewGoLevelDBWithOpts({0x1030f58?, 0x7f746f4c4c40?}, {0xc000ec28ea?, 0x200000041964d?}, 0x1abd758?)
/go/pkg/mod/github.com/tendermint/[email protected]/goleveldb.go:32 +0x7c
github.com/binaryholdings/cosmos-pruner/cmd.pruneAppState({0x7ffd2b99ae5f?, 0xc000eb0d20?})
/go/cosmprund/cmd/pruner.go:83 +0x92
github.com/binaryholdings/cosmos-pruner/cmd.pruneCmd.func1(0xc000ea0c80?, {0xc000eca280, 0x1, 0x1})
/go/cosmprund/cmd/pruner.go:57 +0xff
github.com/spf13/cobra.(*Command).execute(0xc000ea0c80, {0xc000eca260, 0x1, 0x1})
/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xc000ea0a00)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/binaryholdings/cosmos-pruner/cmd.Execute()
/go/cosmprund/cmd/root.go:91 +0x38
main.main()
/go/cosmprund/main.go:8 +0x17`
are you planning to add releases for this tool?
Hi there! Are you planning to add releases with pre-built binaries for this tool?
error on cosmos hub
HI, getting this error:
./cosmprund prune ~/.gaiad/data/ --cosmos-sdk=false
pruning state store
Error: from height 0 and to height -10 must be greater than 0
OR with cosmos-sdk true:
/cosmprund prune ~/.gaiad/data/ --cosmos-sdk=true
pruning application state
0
panic: runtime error: slice bounds out of range [:-10]
goroutine 1 [running]:
github.com/binaryholdings/cosmos-pruner/cmd.pruneAppState({0x7fffe000d252?, 0xc0004cbf50?})
/home/cosmos/cosmprund/cmd/pruner.go:628 +0x3785
github.com/binaryholdings/cosmos-pruner/cmd.pruneCmd.func1(0xc0004eac80?, {0xc0004afa60, 0x1, 0x2})
/home/cosmos/cosmprund/cmd/pruner.go:57 +0xff
github.com/spf13/cobra.(*Command).execute(0xc0004eac80, {0xc0004afa40, 0x2, 0x2})
/home/cosmos/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xc0004eaa00)
/home/cosmos/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/home/cosmos/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/binaryholdings/cosmos-pruner/cmd.Execute()
/home/cosmos/cosmprund/cmd/root.go:91 +0x38
main.main()
/home/cosmos/cosmprund/main.go:8 +0x17
cosmos@E3-2288G:~/cosmprund/build$ ./cosmprund prune ~/.gaiad/data/ --cosmos-sdk=false
pruning state store
Error: from height 0 and to height -10 must be greater than 0
cosmos@E3-2288G:~/cosmprund/build$ ./cosmprund prune ~/.gaiad/data/ --cosmos-sdk=false
pruning state store
Error: from height 0 and to height -10 must be greater than 0
cosmos@E3-2288G:~/cosmprund/build$ ./cosmprund prune ~/.gaiad/data/ --cosmos-sdk=true
pruning application state
0
panic: runtime error: slice bounds out of range [:-10]
goroutine 1 [running]:
github.com/binaryholdings/cosmos-pruner/cmd.pruneAppState({0x7fffdd720252?, 0xc000e06ba0?})
/home/cosmos/cosmprund/cmd/pruner.go:628 +0x3785
Cannot build
When I run make build I get
go: error loading module requirements
make: *** [makefile:13: build] Error 1
How can I solve this?
Building error: "cannot find module providing package github.com/cosmos/cosmos-sdk/x/consensus/types"
make build
Building Pruning
cmd/pruner.go:13:2: cannot find module providing package github.com/cosmos/cosmos-sdk/x/consensus/types: import lookup disabled by -mod=readonly
make: *** [makefile:13: build] Error 1```
Request, Add chain Beezee
We're needing to prune a really large database to help distribute a snapshot.
Chain: Beezee
Repo: https://github.com/bze-alphateam/bze
can't build it
Hello.
Tried to build it on two different servers and got the same error
cmd/pruner.go:13:2: cannot find module providing package github.com/cosmos/cosmos-sdk/x/consensus/types: import lookup disabled by -mod=readonly
make: *** [makefile:13: build] Error 1
I use Ubuntu 22.04 and go version go1.21.5
RocksDB support - "store" module conflict
Following the README, I attempt to run the following:
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=rocksdb' -tags rocksdb ./...
My response is:
cmd/pruner.go:13:2: no required module provides package github.com/cosmos/cosmos-sdk/x/consensus/types; to add it: go get github.com/cosmos/cosmos-sdk/x/consensus/types
I run that command followed by go mod tidy
but get this response:
go: github.com/binaryholdings/cosmos-pruner/internal/rootmulti imports github.com/cosmos/cosmos-sdk/store/cachemulti: github.com/cosmos/cosmos-sdk/[email protected]: parsing go.mod: module declares its path as: cosmossdk.io/store but was required as: github.com/cosmos/cosmos-sdk/store
The module path for store
is in conflict.
Cannot build cosmprund with rocksdb
Hi I am trying to build cosmprund with rocksdb as database .
I have built a binary for a chain and synching with rocksdb as database with rockssdb version v v6.29.5 as discussed here cosmos/cosmos-sdk#15422 with @yihuang
When I try to build cosmprund with rocksdb I get the below errors.
/root/go/pkg/mod/github.com/tecbot/[email protected]/db.go:616:3: not enough arguments in call to (_Cfunc_rocksdb_approximate_sizes) have (*_Ctype_struct_rocksdb_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, *_Ctype_ulong) want (*_Ctype_struct_rocksdb_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, *_Ctype_ulong, **_Ctype_char) /root/go/pkg/mod/github.com/tecbot/[email protected]/db.go:658:3: not enough arguments in call to (_Cfunc_rocksdb_approximate_sizes_cf) have (*_Ctype_struct_rocksdb_t, *_Ctype_struct_rocksdb_column_family_handle_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, *_Ctype_ulong) want (*_Ctype_struct_rocksdb_t, *_Ctype_struct_rocksdb_column_family_handle_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, *_Ctype_ulong, **_Ctype_char) /root/go/pkg/mod/github.com/tecbot/[email protected]/filter_policy.go:49:67: cannot use _Ctype_int(bitsPerKey) (value of type _Ctype_int) as type _Ctype_double in argument to (_Cfunc_rocksdb_filterpolicy_create_bloom) /root/go/pkg/mod/github.com/tecbot/[email protected]/filter_policy.go:55:72: cannot use _Ctype_int(bitsPerKey) (value of type _Ctype_int) as type _Ctype_double in argument to (_Cfunc_rocksdb_filterpolicy_create_bloom_full) make: *** [makefile:17: install] Error 2
How can I build cosmprund for rocksdb backend support ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.