Windows node syncing - General - Algorand

Windows node syncing

post by harish on Jul 14, 2021

My node is not syncing. How to sync the node? Can anyone explain me?

post by fabrice on Jul 14, 2021

Please give the output of the following commands:

goal node status
goal version -v

as well as the last 20 lines of algo.log in the $ALGORAND_DATA folder.

These issues usually stem from a DNS issue: your ISP, router, antivirus, firewall may be blocking some DNS queries.

post by harish on Jul 14, 2021

command: goal node status -d data

output:

C:\Users\Dell\AlgorandNode>goal node status -d data
Last committed block: 0
Time since last block: 0.0s
Sync Time: 0.0s
Last consensus protocol: https://github.com/algorand/spec/tree/a26ed78ed8f834e2b9ccb6eb7d3ee9f629a6e622
Next consensus protocol: https://github.com/algorand/spec/tree/a26ed78ed8f834e2b9ccb6eb7d3ee9f629a6e622
Round for next consensus protocol: 1
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Genesis hash: SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=

command: node version -v -d data

output

C:\Users\Dell\AlgorandNode>goal version -v -d data
Version: [v1 v2]
GenesisID: testnet-v1.0
Build: 2.8.114414.master [master] (commit #da26ca79)

algog.log

{"Context":"sync","file":"service.go","function":"github.com/algorand/go-algorand/catchup.(*Service).sync","level":"info","line":591,"msg":"Catchup Service: finished catching up, now at round 0 (previously 0). Total time catching up 0s.","name":"","time":"2021-07-14T17:57:36.994641+05:30"}
{"file":"bootstrap.go","function":"github.com/algorand/go-algorand/tools/network.ReadFromSRV","level":"info","line":43,"msg":"ReadFromBootstrap: DNS LookupSRV failed when using system resolver: no answer for (_algobootstrap._tcp.testnet.algodev.network., 33) from DNS servers [218.248.112.1:53 218.248.112.65:53]","time":"2021-07-14T17:57:39.257066+05:30"}
{"file":"wsNetwork.go","function":"github.com/algorand/go-algorand/network.(*WebsocketNetwork).getDNSAddrs","level":"warning","line":1845,"msg":"Cannot lookup algobootstrap SRV record for testnet.algodev.network: ReadFromBootstrap: DNS LookupSRV failed when using system resolver(no answer for (_algobootstrap._tcp.testnet.algodev.network., 33) from DNS servers [218.248.112.1:53 218.248.112.65:53]), fallback resolver(null), as well as using default resolver due to no signature in DNS response for _algobootstrap._tcp.testnet.algodev.network","name":"","time":"2021-07-14T17:57:39.291325+05:30"}

post by fabrice on Jul 14, 2021

Two potential issues:

  1. You’re using master branch instead of stable. master branch may not work correctly.
  2. You have the above-mentioned DNS issue. Can you try Problem with node sync - #16 by fabrice?

post by harish on Jul 14, 2021

C:\Users\Dell\AlgorandNode>export ALGORAND_DATA="$HOME/node/newdata"

‘export’ is not recognized as an internal or external command, operable program or batch file.

post by harish on Jul 14, 2021

Is i copy only genesis.json file and create config.json file which store only DNSSecurityFlags value only? Is I want to copy some other file like algod.token, algod.lock like files?

post by fabrice on Jul 14, 2021

you need to adapt the commands to Windows.

You can either keep the same folder and change config.json

Or create a new folder copying just genesis.json, the new config.json. No need to copy anything else.

post by harish on Jul 14, 2021

It works. Thank you for your help

post by harish on Jul 14, 2021

I compiled simple smart contract using teal. Iink- Writing a Simple Smart Contract | Algorand Developer Portal

In that I compiled passphrase.teal file. It returns output

C:\Users\Dell\AlgorandNode>goal clerk compile passphrase1.teal
passphrase1.teal: RZ2CUMV2VG3NCVFEVUVHVBYQUABQIBWAT3AC736Y6YL7PPDNAD7K3TVNAI

Then for this address-RZ2CUMV2VG3NCVFEVUVHVBYQUABQIBWAT3AC736Y6YL7PPDNAD7K3TVNAI

I got some algos using testnet faucet.

But these following command returns 0 algos. I want algos for these address to move forward

C:\Users\Dell\AlgorandNode>goal account balance -a  RZ2CUMV2VG3NCVFEVUVHVBYQUABQIBWAT3AC736Y6YL7K3TVNAI -d "C:\users\Dell\AlgorandNode\newdata"
0 microAlgos

post by fabrice on Jul 14, 2021

Most likely your node is not synced. Run goal node status. The sync time must be 0.0 and the last committed block should match testnet.algoexplorer.io.

You can use fast catchup to go faster: Install a Node - Algorand Developer Portal

post by harish on Jul 14, 2021

Thank you. I faced some error in algo builder tutorial 1. Where can I get the answer? I already posted an error in forum and discord. Can you help me?

post by fabrice on Jul 14, 2021

@robert is the lead developer for AlgoBuilder.

post by robert on Jul 14, 2021

Hi @harish - let’s continue on Discord, will be easier to support you.

Mainly you need to make sure you have all dependencies installed: