Author Topic: Test Net for Advanced Users  (Read 69944 times)

0 Members and 1 Guest are viewing this topic.

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
Re: Test Net for Advanced Users
« Reply #480 on: August 23, 2015, 02:11:23 pm »
if the --resync-blockchain is specified, does that prevent the witness form signing blocks?  I coudn't get my witness to start signed by then tried removing that and it seemed to work.  Also, if it has to resync from scratch (like empty folder) then it also doesn't seem to sign blocks.    Not 100% sure but it seems I have to:

get the witiness all synced up.. then shutdown gracefully with a ^C (which doesn't always work btw, it sometimes says DB is corrupt and restarts from scratch) , then start it again , at which point it then starts to sign blocks.
I've seen that issue, but it's not 100%.  For example dele-puppy is currently producing blocks and was launched with a --resync-blockchain.  I seem to have noticed it more on my home networked boxes. 
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline Xeldal

  • Hero Member
  • *****
  • Posts: 1023
    • View Profile
  • BitShares: xeldal
Re: Test Net for Advanced Users
« Reply #481 on: August 23, 2015, 02:28:47 pm »
Are existing 0.9.2 delegates automatically imported as a witness or is it required to upgrade and create witness object?  I'm hoping to skip sorting through the hundreds of balance id's for a proper balance that also existed on the 20th.

Thank you betax, your guide was very helpful. +5%

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
Re: Test Net for Advanced Users
« Reply #482 on: August 23, 2015, 02:34:43 pm »
Are existing 0.9.2 delegates automatically imported as a witness or is it required to upgrade and create witness object?  I'm hoping to skip sorting through the hundreds of balance id's for a proper balance that also existed on the 20th.

Thank you betax, your guide was very helpful. +5%

All existing delegates are imported as witnesses.  When you get your node set up let us know and we will vote you in.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12885
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: Test Net for Advanced Users
« Reply #483 on: August 23, 2015, 03:13:24 pm »
@betax: could you put your tutorial into the github wiki please? If not, may I do it for you?
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline Xeldal

  • Hero Member
  • *****
  • Posts: 1023
    • View Profile
  • BitShares: xeldal
Re: Test Net for Advanced Users
« Reply #484 on: August 23, 2015, 03:21:59 pm »
Are existing 0.9.2 delegates automatically imported as a witness or is it required to upgrade and create witness object?  I'm hoping to skip sorting through the hundreds of balance id's for a proper balance that also existed on the 20th.

Thank you betax, your guide was very helpful. +5%

All existing delegates are imported as witnesses.  When you get your node set up let us know and we will vote you in.

I believe I'm up now.  ID: 1.6.1624

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
Re: Test Net for Advanced Users
« Reply #485 on: August 23, 2015, 03:28:49 pm »
Are existing 0.9.2 delegates automatically imported as a witness or is it required to upgrade and create witness object?  I'm hoping to skip sorting through the hundreds of balance id's for a proper balance that also existed on the 20th.

Thank you betax, your guide was very helpful. +5%

All existing delegates are imported as witnesses.  When you get your node set up let us know and we will vote you in.

I believe I'm up now.  ID: 1.6.1624
seems I don't have my owner key imported into my vps.  I won't be able to vote till after work.  I'm sure someone else will vote you in.
Code: [Select]
0 exception: unspecified
3030001 tx_missing_active_auth: missing required active authority
Missing Active Authority 1.2.63353
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12885
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: Test Net for Advanced Users
« Reply #486 on: August 23, 2015, 04:11:29 pm »
Are existing 0.9.2 delegates automatically imported as a witness or is it required to upgrade and create witness object?  I'm hoping to skip sorting through the hundreds of balance id's for a proper balance that also existed on the 20th.

Thank you betax, your guide was very helpful. +5%

All existing delegates are imported as witnesses.  When you get your node set up let us know and we will vote you in.

I believe I'm up now.  ID: 1.6.1624
seems I don't have my owner key imported into my vps.  I won't be able to vote till after work.  I'm sure someone else will vote you in.
Code: [Select]
0 exception: unspecified
3030001 tx_missing_active_auth: missing required active authority
Missing Active Authority 1.2.63353
You may need to import the ACTIVE_KEY too!
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline lafona

  • Sr. Member
  • ****
  • Posts: 230
    • View Profile
  • BitShares: lafona
Re: Test Net for Advanced Users
« Reply #487 on: August 23, 2015, 04:28:50 pm »
Has anyone found a way to reduce the log size? Right now I have a loop running to delete the old logs, but I imagine there must be a setting somewhere. I have tried
Code: [Select]
cmake . instead of
Code: [Select]
cmake -DCMAKE_BUILD_TYPE=Debug but that didn't help. Also if it is helpful to anyone the loop is
Code: [Select]
while sleep 1800;do rm p2p.log.*; done and i just have it running in the p2p log folder to delete the archived logs every half hour or so.
BTS Witnesses: delegate-1.lafona     Witness Thread: https://bitsharestalk.org/index.php/topic,21569.msg280911/topicseen.html#msg280911
MUSE Witness: lafona

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
Re: Test Net for Advanced Users
« Reply #488 on: August 23, 2015, 04:49:39 pm »
Has anyone found a way to reduce the log size? Right now I have a loop running to delete the old logs, but I imagine there must be a setting somewhere. I have tried
Code: [Select]
cmake . instead of
Code: [Select]
cmake -DCMAKE_BUILD_TYPE=Debug but that didn't help. Also if it is helpful to anyone the loop is
Code: [Select]
while sleep 1800;do rm p2p.log.*; done and i just have it running in the p2p log folder to delete the archived logs every half hour or so.
Run out of disk space  :(
p2p.log too large.

Same here, p2p.log grows like 1Gb/h
have you tried setting log level from debug to info? I'll try it now.
On my side it's 4~5GB/h for one node. Hadn't had time to tweak the settings. Just mounted a larger partition, will try.

setting log level from debug to info for [logger.p2p] reduced its size about an order of magnitude.

Code: [Select]
107M Aug 22 16:30 p2p.log
103M Aug 22 06:59 p2p.log.20150822T100000
183M Aug 22 07:59 p2p.log.20150822T110000
116M Aug 22 08:59 p2p.log.20150822T120000
101M Aug 22 09:59 p2p.log.20150822T130000
182M Aug 22 10:59 p2p.log.20150822T140000
137M Aug 22 11:59 p2p.log.20150822T150000
 243M Aug 22 13:59 p2p.log.20150822T170000
 390M Aug 22 14:59 p2p.log.20150822T180000
 293M Aug 22 15:59 p2p.log.20150822T190000
 107M Aug 22 16:30 p2p.log.20150822T200000
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline lafona

  • Sr. Member
  • ****
  • Posts: 230
    • View Profile
  • BitShares: lafona
Re: Test Net for Advanced Users
« Reply #489 on: August 23, 2015, 04:55:24 pm »
Thanks I will try that next.
BTS Witnesses: delegate-1.lafona     Witness Thread: https://bitsharestalk.org/index.php/topic,21569.msg280911/topicseen.html#msg280911
MUSE Witness: lafona

Offline spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
Re: Test Net for Advanced Users
« Reply #490 on: August 23, 2015, 06:31:13 pm »
I have found this error in my witness:

Code: [Select]
1249999ms th_a       witness.cpp:243               block_production_loo ] Witness 1.6.4231 production slot has arrived; generating a block now...
1250000ms th_a       witness.cpp:266               block_production_loo ] Got exception while generating block:
10 assert_exception: Assert Exception
_consecutive_production_enabled || db.get_dynamic_global_properties().current_witness != scheduled_witness: Last block was generated by the same witness, this node is probably disconnect
ed from the network so block production has been disabled.  Disable this check with --allow-consecutive option.
    {}
    th_a  witness.cpp:248 block_production_loop

Is it related to p2p problem?
wallet_account_set_approval spartako

Offline betax

  • Hero Member
  • *****
  • Posts: 808
    • View Profile
Re: Test Net for Advanced Users
« Reply #491 on: August 23, 2015, 07:01:24 pm »
14. Restart with parameters to start block producing (block producing needs your witness id and private keys) Current node abit's for test 1
Code: [Select]
./witness_node --rpc-endpoint "127.0.0.1:8090"  --genesis-json aug-14-test-genesis.json -d test_net_1 -s 114.92.254.159:62015  --witness-id '"1.6.5156"' --private-key '["GPH6JhL..your.signing.key..bc5mWyCvERV3coy","5K..your.secret..a"]'15. See your witness producing blocks and
you can Ctrl A Ctrl D to detach from screen.
Thanks for sharing, but don't use my node(at least not only use my node), it breaks now and then.
And the genesis file in step 14 should be aug-20-test-genesis.json.

Here is a list of nodes I'm using (still breaks sometimes):
Code: [Select]
./witness_node --rpc-endpoint "127.0.0.1:8090"  --genesis-json  aug-20-test-genesis.json -d test_net_1 -s "104.236.51.238:1776" -s "176.221.43.130:33323" -s "45.55.6.216:1776" -s "114.92.254.159:62015"

Thanks ill add more nodes and correct it now..
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline betax

  • Hero Member
  • *****
  • Posts: 808
    • View Profile
Re: Test Net for Advanced Users
« Reply #492 on: August 23, 2015, 07:02:10 pm »
@betax: could you put your tutorial into the github wiki please? If not, may I do it for you?

It's here: https://github.com/cryptonomex/graphene/wiki/How-to-setup-your-witness-for-test-net-(Ubuntu-14.04)

Please feel free to correct anything.
« Last Edit: August 23, 2015, 08:35:09 pm by betax »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3703
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
Re: Test Net for Advanced Users
« Reply #493 on: August 23, 2015, 08:46:38 pm »
I have found this error in my witness:

Code: [Select]
1249999ms th_a       witness.cpp:243               block_production_loo ] Witness 1.6.4231 production slot has arrived; generating a block now...
1250000ms th_a       witness.cpp:266               block_production_loo ] Got exception while generating block:
10 assert_exception: Assert Exception
_consecutive_production_enabled || db.get_dynamic_global_properties().current_witness != scheduled_witness: Last block was generated by the same witness, this node is probably disconnect
ed from the network so block production has been disabled.  Disable this check with --allow-consecutive option.
    {}
    th_a  witness.cpp:248 block_production_loop

Is it related to p2p problem?
Looks like you're on a fork.. Try restart, if it happen again try restart with --resync-blockchain.
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3703
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
Re: Test Net for Advanced Users
« Reply #494 on: August 23, 2015, 08:54:10 pm »
Quote
-s "104.236.51.238:1776" -s "176.221.43.130:33323" -s "45.55.6.216:1776" -s "114.92.254.159:62015"
It seems that the seed nodes are all dead. If anyone know any good node please post here. Thanks.

//EDIT:
To become a seed node, add "--p2p-endpoint" parameter when launching witness_node, and remember to configure firewall/NAT to allow incoming connection, since witness_node doesn't enable uPNP by default.
Code: [Select]
./witness_node --p2p-endpoint "0.0.0.0:A_FIXED_PORT" --rpc-endpoint "127.0.0.1:8090"  --genesis-json aug-20-test-genesis.json -d test_net_1 -s "104.236.51.238:1776" -s "176.221.43.130:33323" -s "45.55.6.216:1776" -s "114.92.254.159:62015" 

Note it's better to use a new node but not your block-producing node for seed node.
« Last Edit: August 23, 2015, 09:04:25 pm by abit »
BTS account: abit
BTS committee member: abit
BTS witness: in.abit