Windows node syncing

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

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.

Please also read this thread: Problem with node sync
These issues usually stem from a DNS issue: your ISP, router, antivirus, firewall may be blocking some DNS queries (sometimes they block TCP DNS queries, sometimes they restrict to their own DNS, … all these may create issues - this is especially true in corporate settings but some ISP are quite bad wrt that too).

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\u0000\u0000\u0000:53 218.248.112.65\u0000\u0000: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\u0000\u0000\u0000:53 218.248.112.65\u0000\u0000:53]), fallback resolver(\u003cnil\u003e), 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"}
{"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 (_archive._tcp.testnet.algodev.network., 33) from DNS servers [218.248.112.1\u0000\u0000\u0000:53 218.248.112.65\u0000\u0000:53]","time":"2021-07-14T17:57:39.297321+05:30"}
{"file":"wsNetwork.go","function":"github.com/algorand/go-algorand/network.(*WebsocketNetwork).getDNSAddrs","level":"warning","line":1854,"msg":"Cannot lookup archive SRV record for testnet.algodev.network: ReadFromBootstrap: DNS LookupSRV failed when using system resolver(no answer for (_archive._tcp.testnet.algodev.network., 33) from DNS servers [218.248.112.1\u0000\u0000\u0000:53 218.248.112.65\u0000\u0000:53]), fallback resolver(\u003cnil\u003e), as well as using default resolver due to no signature in DNS response for _archive._tcp.testnet.algodev.network","name":"","time":"2021-07-14T17:57:39.335662+05:30"}
{"file":"wsNetwork.go","function":"github.com/algorand/go-algorand/network.(*WebsocketNetwork).meshThread","level":"info","line":1543,"msg":"got no relay DNS addrs for network testnet","name":"","time":"2021-07-14T17:57:39.335662+05:30"}
{"file":"txSyncer.go","function":"github.com/algorand/go-algorand/rpcs.(*TxSyncer).syncFromClient","level":"info","line":113,"msg":"TxSyncer.Sync: asking client  for missing transactions","time":"2021-07-14T17:57:39.688348+05:30"}
{"Context":"sync","file":"service.go","function":"github.com/algorand/go-algorand/catchup.(*Service).periodicSync","level":"info","line":519,"msg":"It's been too long since our ledger advanced; resyncing","name":"","time":"2021-07-14T17:57:53.996274+05:30"}
{"Context":"sync","details":{"StartRound":0},"file":"telemetry.go","function":"github.com/algorand/go-algorand/logging.(*telemetryState).logTelemetry","instanceName":"FXV1hViuawpohX9n","level":"info","line":212,"msg":"/ApplicationState/CatchupStart","name":"","session":"","time":"2021-07-14T17:57:53.996274+05:30"}
{"Context":"sync","details":{"StartRound":0,"EndRound":0,"Time":0,"InitSync":false},"file":"telemetry.go","function":"github.com/algorand/go-algorand/logging.(*telemetryState).logTelemetry","instanceName":"FXV1hViuawpohX9n","level":"info","line":212,"msg":"/ApplicationState/CatchupStop","name":"","session":"","time":"2021-07-14T17:57:53.996274+05:30"}
{"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:53.996274+05:30"}
{"Context":"sync","file":"service.go","function":"github.com/algorand/go-algorand/catchup.(*Service).periodicSync","level":"info","line":519,"msg":"It's been too long since our ledger advanced; resyncing","name":"","time":"2021-07-14T17:58:11.000426+05:30"}
{"Context":"sync","details":{"StartRound":0},"file":"telemetry.go","function":"github.com/algorand/go-algorand/logging.(*telemetryState).logTelemetry","instanceName":"FXV1hViuawpohX9n","level":"info","line":212,"msg":"/ApplicationState/CatchupStart","name":"","session":"","time":"2021-07-14T17:58:11.000426+05:30"}
{"Context":"sync","details":{"StartRound":0,"EndRound":0,"Time":0,"InitSync":false},"file":"telemetry.go","function":"github.com/algorand/go-algorand/logging.(*telemetryState).logTelemetry","instanceName":"FXV1hViuawpohX9n","level":"info","line":212,"msg":"/ApplicationState/CatchupStop","name":"","session":"","time":"2021-07-14T17:58:11.000426+05:30"}
{"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:58:11.000426+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\u0000\u0000\u0000:53 218.248.112.65\u0000\u0000:53]","time":"2021-07-14T17:58:11.005867+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\u0000\u0000\u0000:53 218.248.112.65\u0000\u0000:53]), fallback resolver(\u003cnil\u003e), as well as using default resolver due to no signature in DNS response for _algobootstrap._tcp.testnet.algodev.network","name":"","time":"2021-07-14T17:58:11.046300+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 (_archive._tcp.testnet.algodev.network., 33) from DNS servers [218.248.112.1\u0000\u0000\u0000:53 218.248.112.65\u0000\u0000:53]","time":"2021-07-14T17:58:11.052761+05:30"}
{"file":"wsNetwork.go","function":"github.com/algorand/go-algorand/network.(*WebsocketNetwork).getDNSAddrs","level":"warning","line":1854,"msg":"Cannot lookup archive SRV record for testnet.algodev.network: ReadFromBootstrap: DNS LookupSRV failed when using system resolver(no answer for (_archive._tcp.testnet.algodev.network., 33) from DNS servers [218.248.112.1\u0000\u0000\u0000:53 218.248.112.65\u0000\u0000:53]), fallback resolver(\u003cnil\u003e), as well as using default resolver due to no signature in DNS response for _archive._tcp.testnet.algodev.network","name":"","time":"2021-07-14T17:58:11.088168+05:30"}
{"file":"wsNetwork.go","function":"github.com/algorand/go-algorand/network.(*WebsocketNetwork).meshThread","level":"info","line":1543,"msg":"got no relay DNS addrs for network testnet","name":"","time":"2021-07-14T17:58:11.088168+05:30"}

Two potential issues:

  1. You’re using master branch instead of stable. master branch may not work correctly. But I don’t think it’s an issue in your case.
  2. You have the above-mentioned DNS issue. Can you try Problem with node sync - #16 by fabrice (commands need to be adapted to Windows, main important part is having config.json containing the indicated content and stopping and starting the node) ? This is not ideal as it reduces security, but may be the only solution is your ISP/router is blocking DNSSec.

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.

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?

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.
First option may be simpler on Windows.

It works.Thank you for your help

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 some algos using testnet faucet.
But these following command returns 0 algos.I want algos for these address for move forward

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

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

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

@robert is the lead developer for AlgoBuilder.

Hi @harish - let’s continue on Discord, will be easier to support you.
Mainly you need to make sure you have all dependencies installed:

  • make (for running infrastructure scripts)
  • algod – the Algorand node
  • nodejs – for running algob