BitShares Forum

Main => General Discussion => Topic started by: wmbutler on October 05, 2014, 09:49:49 pm

Title: "Not Connected"
Post by: wmbutler on October 05, 2014, 09:49:49 pm
>> network_list_potential_peers

                 ENDPOINT                LAST SEEN     LAST CONNECT ATTEMPT   SUCCESSFUL CONNECT ATTEMPTS       FAILED CONNECT ATTEMPTS        LAST CONNECTION DISPOSITION                    LAST ERROR
     128.199.137.122:1776      1970-01-01T00:00:00      2014-10-05T21:39:52                             0                            94             last_connection_failed0 exception: unspecified
Terminating handshaking connection due to inactivity of 5 seconds.  Negotiating status: connecting, bytes sent: 0, bytes received: 0
    {"peer":"128.199.137.122:1776","timeout":5,"status":"connecting","sent":0,"received":0}
    p2p  node.cpp:1203 terminate_inactive_connections_loop
     128.199.137.122:1777      1970-01-01T00:00:00      2014-10-05T21:39:52                             0                            94             last_connection_failed0 exception: unspecified
Terminating handshaking connection due to inactivity of 5 seconds.  Negotiating status: connecting, bytes sent: 0, bytes received: 0
    {"peer":"128.199.137.122:1777","timeout":5,"status":"connecting","sent":0,"received":0}
    p2p  node.cpp:1203 terminate_inactive_connections_loop
       61.129.33.213:1776      1970-01-01T00:00:00      2014-10-05T21:36:06                             0                            98             last_connection_failed0 exception: unspecified
Can't seem to connect to peers. Internet connection works fine for everything else. Here is the output from listing potential peers (truncated for brevity):

>network_list_potential_peers

Broken pipe
    {"message":"Broken pipe"}
    asio  asio.cpp:37 operator()
      89.187.144.203:8764      1970-01-01T00:00:00      2014-10-05T21:36:06                             0                            98             last_connection_failed0 exception: unspecified
Terminating handshaking connection due to inactivity of 5 seconds.  Negotiating status: connecting, bytes sent: 0, bytes received: 0
    {"peer":"89.187.144.203:8764","timeout":5,"status":"connecting","sent":0,"received":0}
    p2p  node.cpp:1203 terminate_inactive_connections_loop
       66.85.182.148:1776      2014-08-21T20:15:27      2014-10-05T21:39:52                             0                            94             last_connection_failed0 exception: unspecified
Title: Re: "Not Connected"
Post by: wmbutler on October 05, 2014, 09:52:46 pm
Client version   v0.4.20
bitshares_toolkit_revision    ab40d8dc51cd4e54c0e05a2e9770fca3f03d6565
bitshares_toolkit_revision_age    79 hours ago
blockchain_description    Decentralized Autonomous Exchange
blockchain_name    BitShares X
boost_version    1.54
build    osx 64-bit
client_version    v0.4.20
compile_date    compiled on Oct 2 2014 at 09:18:52
fc_revision    c4e814d7ded6099dc4297aa843d4be7afa98b3ed
fc_revision_age    5 days ago
openssl_version    OpenSSL 1.0.1i 6 Aug 2014
Title: Re: "Not Connected"
Post by: wmbutler on October 05, 2014, 10:05:48 pm
Also tried two different Internet connections.
Title: Re: "Not Connected"
Post by: dannotestein on October 06, 2014, 01:38:01 pm
What does "get_info" report? Note this is different from "blockchain_get_info".
Title: Re: "Not Connected"
Post by: wmbutler on October 08, 2014, 02:44:09 am
>> get_info

{
  "blockchain_head_block_num": 613874,
  "blockchain_head_block_age": "8 days old",
  "blockchain_head_block_timestamp": "2014-09-29T18:18:30",
  "blockchain_average_delegate_participation": "0.14 %",
  "blockchain_confirmation_requirement": 1,
  "blockchain_delegate_pay_rate": "1.37333 BTSX",
  "blockchain_share_supply": "1,999,983,974.00817 BTSX",
  "blockchain_blocks_left_in_round": 4,
  "blockchain_next_round_time": "at least 38 seconds in the future",
  "blockchain_next_round_timestamp": "2014-10-08T02:44:30",
  "blockchain_random_seed": "ebba2caadeef1ae96e642ac56bb5d7c4df2370e7",
  "client_data_dir": "/Users/bill/Library/Application Support/BitShares X",
  "client_version": "v0.4.20",
  "network_num_connections": 0,
  "network_num_connections_max": 200,
  "ntp_time": "2014-10-08T02:43:52",
  "ntp_time_error": 3.1526869999999998,
  "wallet_open": true,
  "wallet_unlocked": true,
  "wallet_unlocked_until": "12 days in the future",
  "wallet_unlocked_until_timestamp": "2014-10-19T16:27:59",
  "wallet_last_scanned_block_timestamp": null,
  "wallet_scan_progress": "0.00 %",
  "wallet_block_production_enabled": false,
  "wallet_next_block_production_time": null,
  "wallet_next_block_production_timestamp": null
}
Title: Re: "Not Connected"
Post by: cube on October 08, 2014, 02:17:20 pm
>> get_info

{
  "blockchain_head_block_num": 613874,
  "blockchain_head_block_age": "8 days old",
  "blockchain_head_block_timestamp": "2014-09-29T18:18:30",
  "blockchain_average_delegate_participation": "0.14 %",
  "blockchain_confirmation_requirement": 1,
  "blockchain_delegate_pay_rate": "1.37333 BTSX",
  "blockchain_share_supply": "1,999,983,974.00817 BTSX",
  "blockchain_blocks_left_in_round": 4,
  "blockchain_next_round_time": "at least 38 seconds in the future",
  "blockchain_next_round_timestamp": "2014-10-08T02:44:30",
  "blockchain_random_seed": "ebba2caadeef1ae96e642ac56bb5d7c4df2370e7",
  "client_data_dir": "/Users/bill/Library/Application Support/BitShares X",
  "client_version": "v0.4.20",
  "network_num_connections": 0,
  "network_num_connections_max": 200,
  "ntp_time": "2014-10-08T02:43:52",
  "ntp_time_error": 3.1526869999999998,
  "wallet_open": true,
  "wallet_unlocked": true,
  "wallet_unlocked_until": "12 days in the future",
  "wallet_unlocked_until_timestamp": "2014-10-19T16:27:59",
  "wallet_last_scanned_block_timestamp": null,
  "wallet_scan_progress": "0.00 %",
  "wallet_block_production_enabled": false,
  "wallet_next_block_production_time": null,
  "wallet_next_block_production_timestamp": null
}

Your blockchain is not in sync.

Try this:

1) Open Windows Explorer. Go to %appdata%\BitShares X
2) Backup your wallet folder by making a folder copy to another location
3) Delete everything EXCEPT your wallet
4) Launch the wallet app. You will see 'Not Connected'.  Wait for about 10 to 30mins and it will start to sync.

If you the above works for you, please vote for delegate bitcube.  ;)
Title: Re: "Not Connected"
Post by: wmbutler on October 08, 2014, 05:38:43 pm
I'm on OS X. Can you give me similar instructions on which files to keep vs trash on my platform. I believe I've located:

~/Library/Application Support/BitShares X/

as the base directory.
Title: Re: "Not Connected"
Post by: wmbutler on October 08, 2014, 05:53:22 pm
Here is what I did:

Made a backup of my wallet from the GUI and saved it on my desktop just for safety. I also backed up the BitShares X directory to the desktop (that's the first command). The code below moves the wallet directory one dir up. Then we delete the entire contents of the BitShares X dir. Then we move the wallet file back into the BitShares X directory. The backslashes are there to deal with spaces in the directory names for unix.

Code: [Select]
cp -Rf ~/Library/Application\ Support/BitShares\ X/ ~/Desktop/
mv -Rf ~/Library/Application\ Support/BitShares\ X/wallet ../
rm -Rf ~/Library/Application\ Support/BitShares\ X/*
mv -Rf ~/Library/Application\ Support/wallet ~/Library/Application\ Support/Bitshares\ X/wallet

Cheers!
Title: Re: "Not Connected"
Post by: cube on October 09, 2014, 07:07:18 pm
Well done!  You got it.  :)