-
Notifications
You must be signed in to change notification settings - Fork 643
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
Update docs for private testnet, and improve error message of witness_node #1770
Comments
I think it can't find the genesis file because it is in a subdirectory. Try
instead. @cedar-book the documentation seems to be wrong in that detail. Also, the error message from |
Or perhaps the program failed to parse genesis file due to wrong format or so? @heyasjack can you upload your genesis file so we can check? |
@abitmore And the genesis has 2 version. I have tried both of them, but it seemed that both of them have similar problems. the old one
|
@pmconrad Thank you for your help ! The old one is from https://dev.bitshares.works/en/master/development/testnets/private_testnet_genesis_example.html#private-testnet-genesis-example I haven't change the genesis.json when I run the witness_node. Should I need to change some variable or chain ID of it? |
@heyasjack try absolute path, e.g. Please make sure the file is there:
The old one with |
@abitmore Thank you for your advice! |
@abitmore @pmconrad Thank you for your help! |
oh, I failed again. With almost the same steps.
|
The succeed running console: Their difference begin from that. |
Well, I FOUND IT! |
Yeeeaaa, I repeat it successfully! The most important things is the route and location, the tutorial has made misleading about the location, check the location of my-genesis.json when you run witness_node. And the second point is the my-genesis.json, you should copy command |
Oh, I suggest that the tutorial should be added using screen when running the witness_node and cli_wallet |
Updated by @abitmore: see #1770 (comment) for what to do with this issue.
Instructions
Hello, I'm new to bitshares and I'd like to learn bitshares from building a private testnet.
But when I tried to build one referring to
-https://github.com/bitshares/bitshares-core/wiki/private-testnet
-https://dev.bitshares.works/en/master/development/testnets/private_testnet.html
it always stuck in 4-1
./witness_node --data-dir=data/my-blocktestnet --genesis-json=my-genesis.json --seed-nodes "[]"
it couldn't run a node
In tutorial , it says
Several messages will go to the console. When you see messages like these:
3501235ms th_a main.cpp:165 main ] Started witness node on a chain with 0 blocks.
3501235ms th_a main.cpp:166 main ] Chain ID is cf307110d029cb882d126bf0488dc4864772f68d9888d86b458d16e6c36aa74b
But my node couldn't figure it out.
I build it on GCP
Linux instance-12 4.15.0-1032-gcp #34~16.04.1-Ubuntu SMP Wed May 8 13:26:26 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
(4 vCPUs, 15 GB memory)
50GB SSD
I reproduced it according to the tutorial about ten times.
I tried running directly in bitshares-core, and make testnet_home in different location and run, but they all failed.
Only 1 time I succeeded in running witness_node in bitshares-core but it couldn't repeat later.
Finally, press the 'Submit new issue' button. The Core Team will evaluate and prioritize your Bug Report for future development.
Build Error Description
A clear and concise description of what the build error is.
Build Environment
Details about the build environment, including the relevant required libraries. Much of this information can be found in the
CMakeFiles/CMakeOutput.log
.The system is: Linux - 4.15.0-1032-gcp - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc
Build flags:
Id flags:
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
The C compiler identification is GNU, found in "/root/bitshares-core/CMakeFiles/3.5.1/CompilerIdC/a.out"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++
Build flags:
Id flags:
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
The CXX compiler identification is GNU, found in "/root/bitshares-core/CMakeFiles/3.5.1/CompilerIdCXX/a.out"
Determining if the C compiler works passed with the following output:
Change Dir: /root/bitshares-core/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_85529/fast"
@
"CMakeOutput.log" 554L, 40439C 1,1 Top
CORE TEAM TASK LIST
Build Error
Bug Report
The text was updated successfully, but these errors were encountered: