-
Notifications
You must be signed in to change notification settings - Fork 632
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
Difficulty Running Osmosis #519
Comments
I'm seeing the exact same issue when trying to launch the daemon. |
In the Discord here: https://discord.com/channels/798583171548840026/877743338760069141/891380625687322715 I was able to find advice here suggesting that the when not using state sync, the previous version 3.1 should be synced until the upgrade block (1314500), then switch to v4. Another comment confirms that v3.1 must be run first:
|
In general this error relates to a common aspect of block sync vs state sync. For anyone who is new to Cosmos / Osmosis but generally comfortable with Linux admin, see these related article from Cosmos / Tendermint: https://hub.cosmos.network/main/gaia-tutorials/join-mainnet.html https://docs.tendermint.com/master/tendermint-core/state-sync.html |
Yeah, you can't use the v4 binary against genesis, and you can't use the genesis binaries against latest state :/ Unfortunately this is the confusion with syncing from genesis, hopefully we get more tooling to fix things / help protect against syncing with the wrong version. You can use the chainlayer snapshots to relatively quickly get a snapshot of a recent block height, and run the mainnet binary off of that to get synced to the network: https://quicksync.io/networks/osmosis.html I think we'll have to brainstorm in the SDK for a better way to give a user error when using too new of a binary against an older version. Its a bit easier tbh to detect using too old of a binary, which has someone working on an improved error message there: cosmos/cosmos-sdk#10318 |
Maybe we need to ship a binary with cosmovisor and all the version binaries preinstalled? |
@ValarDragon - using the quicksync link to download the snapshot worked great and i was able to get osmosisd up and running without issue. Trying to get cosmovisor working after getting osmosisd working still ended up failing and erroring out. I think i'll move forward without cosmovisor now. @sunnya97 - If it's for the sake of making it easier for newbies to be able to set this stuff up pretty easily, updating the docker image might be a great way to go. I tried using the compose file that was in the repo initially and it ended up failing because the image is no longer available on docker hub. |
I've been thinking of something more along jacob's idea, of one stop setup scripts. I'm thinking the end state here is something like rust-up, where it has you pick from a couple compiler options, with a default.
Thats a great idea. We have not touched the docker image, would love for some help in doing that |
I am still having trouble with this issue. Is there an easy for fix for someone who isn't has familiar with this stuff? |
@ValarDragon I get that error because genesis started with version 3 and upgraded to v4 ?
|
@dualsystems I think it's a question of ConsensusVersion somewhere in the app and I'm not real sure that it is possible/good/okay to simply change it in the code you're using to state sync from. Love where your mind is at, though. Statesync is really the way. I now do relaying from a state synced Gaia. I also changed the name of this issue to difficulty running osmosis, and I'd like to make this an omnibus issue. Regarding state distribution, I view quicksync as fairly flawed, ipfs would be generally faster and better. That said, I need to put together a distribution architecture that has:
then does the sorta cron thing found here: https://github.com/c29r3/cosmos-snapshots and once that cron thing is done, it would post IPFS CIDs to a simple web page or github repository, say, once every 12 hours per chain. Then, other validators can follow the cluster. Trusted validators could even provide snapshots to the cluster. |
@faddat I can upload small snapshots from https://bootstrap.dual.systems/ to ipfs. |
Actually on Osmo right now, it isn't possible to state sync. Best option is looking like #647 which is lookin 🔥 |
SDK is fixed: tendermint/tendermint#7463 |
I am trying to install the daemon and run a node, using branch
v4.x
I am able to install and init the moniker, but I am getting this error when I run
osmosisd start
7:30PM INF running initialization for module module=epochs panic: unknown field "current_epoch_ended" in types.EpochInfo
When I look at the actual EpochInfo type in
x/epochs/types/genesis.pb.go
on line 31 I see that it does not have the field mentioned.The text was updated successfully, but these errors were encountered: