-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
"sui start" panic (main branch 1.29) #18468
Comments
Thanks for reporting this. I've made some changes to
If you do not have anything sensitive in that folder, could you show me the structure of it? |
When testing, my script delete and regenerate "everything" from scratch. So in the case of testing 1.29, it does not reach the point of creating full_node_db. (1) The blob is in /home/olet/suibase/workdirs/localnet/config (2) Will follow up in a few minutes about where full_node_db is created when testing with 1.28.1 |
I see, in this case, I think you might just get away with passing the folder instead of the actual network file |
But I will fix it asap so that it accepts the |
Thanks for the detailed info! I'll try to put up a fix today. |
thanks @mario4tier. I am not fully sure how I have a PR up that should fix the issue you have. If you have a chance to build the Thanks for your patience here! |
It works (tested with latest 1.29 main branch + changes to sui_command.rs). Thanks! About DBs location That design allows to support a distinct set of binaries/repos/config/keystore for each network. The users/app can then operate localnet/devnet/testnet/mainnet concurrently... there is no "switch env" for Suibase users. To keep things clean, all files related to a network are kept in a single place (e.g. ~/suibase/workdirs/testnet). full_node_db is the only exception right now... I tried to modify the fullnode.yaml with an absolute path like done in network.yaml, but it did not work (still created in ~/.sui/sui_config ). In short, ideally, Suibase would benefit from being able to specify the full_node_db path (but it is not breaking anything right now). |
## Description Prior to #18204, `sui start` accepted a network config file when using `--network.config`, and `sui-test-validator` accepted a config directory when using the `--config-dir`, so we need to support both. That PR introduces a bug as in it accepts only directories. This PR fixes this issue and should close #18468. ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK:
…abs#18469) ## Description Prior to MystenLabs#18204, `sui start` accepted a network config file when using `--network.config`, and `sui-test-validator` accepted a config directory when using the `--config-dir`, so we need to support both. That PR introduces a bug as in it accepts only directories. This PR fixes this issue and should close MystenLabs#18468. ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK:
…abs#18469) ## Description Prior to MystenLabs#18204, `sui start` accepted a network config file when using `--network.config`, and `sui-test-validator` accepted a config directory when using the `--config-dir`, so we need to support both. That PR introduces a bug as in it accepts only directories. This PR fixes this issue and should close MystenLabs#18468. ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK:
Steps to Reproduce Issue
(1) Build sui binary from main branch (currently 1.29.0-f6f2584c5072 )
(2)
env RUST_LOG=error sui start --network.config /home/olet/suibase/workdirs/localnet/config/network.yaml
network.yaml is attached ( network.yaml.txt )
Expected Result
"sui start" to normally start and keep running.
Actual Result
A panic
This problem is not happening with devnet branch 1.28.1 (and many older versions).
The error message shows a path that includes the file "network.yaml" which is not a directory (it is the file specified with --network-config), could this be the problem?
System Information
ubuntu, rustc 1.75
Tests with 1.29 is my own cargo build, while 1.28.1 was the precompiled Mysten binaries ( sui-devnet-v1.28.1-ubuntu-x86_64.tgz )
The text was updated successfully, but these errors were encountered: