mist icon indicating copy to clipboard operation
mist copied to clipboard

Won't connect to peers on windows

Open buggie77 opened this issue 10 years ago • 41 comments

Hi, I git the startup screen for more than hour in this state and fw is opened on W7 x64, Looking for peers... what Im doing wrong ? thanks (version 0.3.7)

buggie77 avatar Dec 19 '15 16:12 buggie77

it is either updating your DB in the background, if you had a already a geth node running, or it didn't work. could you try to run a gteh node standalone on your win and see what it says? int could also be that you never allowed the connections to the geth node, so it never gets any peers

frozeman avatar Dec 19 '15 18:12 frozeman

I1219 19:21:46.446609 4380 database.go:71] Alloted 16MB cache to C:\Users\MyUser\AppData\Roaming\Ethereum\chaindata I1219 19:21:46.459610 4380 database.go:71] Alloted 16MB cache to C:\Users\MyUser\AppData\Roaming\Ethereum\dapp I1219 19:21:46.469610 4380 backend.go:314] Protocol Versions: [63 62 61], Net work Id: 1 I1219 19:21:46.469610 4380 backend.go:362] Blockchain DB Version: 3 I1219 19:21:46.469610 4380 blockchain.go:214] Last header: #0 [d4e56740.] TD= 17179869184 I1219 19:21:46.469610 4380 blockchain.go:215] Last block: #0 [d4e56740.] TD=1 7179869184 I1219 19:21:46.470610 4380 blockchain.go:216] Fast block: #0 [d4e56740.] TD=1 7179869184 I1219 19:21:46.476611 4380 cmd.go:114] Starting Geth/v1.3.2/windows/go1.5.1 I1219 19:21:46.476611 4380 server.go:311] Starting Server I1219 19:21:48.628734 4380 udp.go:204] Listening, enode://9d996d3903492c0c1ae 4548ac81c56f26745f0681abcdc8ddb8f4ce8239e934bc0656d7f2805284a25db1f96c696a73fbae [email protected]:30303 I1219 19:21:48.629734 4380 backend.go:526] Server started I1219 19:21:48.630734 4380 ipc.go:112] IPC service started (.\pipe\geth.ipc ) I1219 19:21:48.629734 4380 server.go:552] Listening on [::]:30303

so is running

On Sat, Dec 19, 2015 at 7:03 PM, Fabian Vogelsteller < [email protected]> wrote:

it is either updating your DB in the background, if you had a already a geth node running, or it didn't work. could you try to run a gteh node standalone on your win and see what it says? int could also be that you never allowed the connections to the geth node, so it never gets any peers

— Reply to this email directly or view it on GitHub https://github.com/ethereum/mist/issues/94#issuecomment-166010600.

buggie77 avatar Dec 19 '15 18:12 buggie77

Ok good, then can you start the node externally and then start the wallet?

frozeman avatar Dec 19 '15 19:12 frozeman

yes, I did, wallet started with skipping the nodes search but : 0 peers / 46 years since last block - thnx

On Sat, Dec 19, 2015 at 8:30 PM, Fabian Vogelsteller < [email protected]> wrote:

Ok good, then can you start the node externally and then start the wallet?

— Reply to this email directly or view it on GitHub https://github.com/ethereum/mist/issues/94#issuecomment-166017666.

buggie77 avatar Dec 19 '15 19:12 buggie77

Then you seem to not connect to the outside, this might be a firewall problem or something

frozeman avatar Dec 19 '15 19:12 frozeman

I'll try to connect outside through 4g router later, let you know, thanks On Dec 19, 2015 8:48 PM, "Fabian Vogelsteller" [email protected] wrote:

Then you seem to not connect to the outside, this might be a firewall problem or something

— Reply to this email directly or view it on GitHub https://github.com/ethereum/mist/issues/94#issuecomment-166019232.

buggie77 avatar Dec 19 '15 20:12 buggie77

Today I started the wallet and it immediately started to download blockchain :-)

On Sat, Dec 19, 2015 at 8:48 PM, Fabian Vogelsteller < [email protected]> wrote:

Then you seem to not connect to the outside, this might be a firewall problem or something

— Reply to this email directly or view it on GitHub https://github.com/ethereum/mist/issues/94#issuecomment-166019232.

buggie77 avatar Dec 20 '15 12:12 buggie77

still the same issue just says looking and stuck like that

whatsdis avatar Dec 30 '15 23:12 whatsdis

facing the same issues. have tried all of these measures... even outside firewall it's not working..

dinkargupta avatar Jan 12 '16 18:01 dinkargupta

Please try running wallet/resources/nodes/geth/geth.exe from the command line tool (cmd) and see what errors your get

frozeman avatar Jan 13 '16 11:01 frozeman

Thanks.. I tried 2 options with this geth.exe

  1. datadir and networkid options
  2. testnet option

all work well and the node starts fine on console.. then on launching the Ethereum-Wallet.exe, I keep getting the 'Looking for peers' message.

Output:

I0113 23:11:08.298017 2376 database.go:71] Alloted 16MB cache to C:\Users\AppData\Roaming\Ethereum\testnet\chaindata I0113 23:11:08.338028 2376 database.go:71] Alloted 16MB cache to C:\Users\AppData\Roaming\Ethereum\testnet\dapp I0113 23:11:08.355151 2376 backend.go:314] Protocol Versions: [63 62 61], Network Id: 2 I0113 23:11:08.358589 2376 genesis.go:89] Genesis block already in chain. Writing canonical number I0113 23:11:08.359657 2376 backend.go:362] Blockchain DB Version: 3 I0113 23:11:08.361901 2376 blockchain.go:214] Last header: #14 [1ff7b45b.] TD=1971072 I0113 23:11:08.361901 2376 blockchain.go:215] Last block: #14 [1ff7b45b.] TD=1971072 I0113 23:11:08.361901 2376 blockchain.go:216] Fast block: #14 [1ff7b45b.] TD=1971072 I0113 23:11:08.376791 2376 cmd.go:114] Starting Geth/v1.3.3/windows/go1.5.1 I0113 23:11:08.378261 2376 server.go:311] Starting Server I0113 23:11:10.881393 2376 udp.go:204] Listening, enode://907ddf36f3c6401d7d007f4d1cf458572f85a1b4e6071ad0198335f532e74c0c074634ab9e1077c3b812f5dae09fc3 I0113 23:11:10.882395 2376 server.go:552] Listening on [::]:30303 I0113 23:11:10.882395 2376 backend.go:526] Server started I0113 23:11:10.882395 2376 ipc.go:112] IPC service started (.\pipe\geth.ipc)

Any options I am missing /you would recommend ?

dinkargupta avatar Jan 13 '16 17:01 dinkargupta

Does the node ever starts to process/import blocks? if not then it doesn't get peers to sync from. It might be a network issue on your side.

frozeman avatar Jan 13 '16 18:01 frozeman

I will check again but shouldn't be. I am not behind firewall. This is not working even on home wifi network - everything else works fine (maven repositories, docket repositories.. etc.).

Let me also check it with verbose output on logging on.

dinkargupta avatar Jan 14 '16 01:01 dinkargupta

Ok.. finally. Here seems to be the issue network port tcp:30302 could not be mapped: no UPnP or NAT-PMP router discovered

when ran again with geth --datadir "D:\Ethereum 0.9.41\datadir" --networkid "23" --verbosity "5"

nat.go:109] network port udp:30303 could not be mapped: goupnp: SOAP request got HTTP 500 Internal Server Error nat.go:109] network port tcp:30303 could not be mapped: goupnp: SOAP request got HTTP 500 Internal Server Error

dinkargupta avatar Jan 14 '16 02:01 dinkargupta

@fjl any idea?

frozeman avatar Jan 14 '16 10:01 frozeman

some more details (tried again but still same result)

I am on windows 8.1. I have enabled network discovery on the network connection (this could have stopped connections to outside network). Have also allowed the connections to public network on windows firewall (UPnP based).

just ran the geth again as geth --datadir "D:\Ethereum 0.9.41\datadir" --networkid "23" --verbosity "5"

and the same result

flags.go:425] WARNING: No etherbase set and no accounts found as default database.go:71] Alloted 16MB cache to D:\eclipse\Ethereum 0.9.41\datadir\chaindata database.go:71] Alloted 16MB cache to D:\eclipse\Ethereum 0.9.41\datadir\dapp backend.go:314] Protocol Versions: [63 62 61], Network Id: 23 backend.go:362] Blockchain DB Version: 3 blockchain.go:214] Last header: #0 [d4e56740.] TD=17179869184 blockchain.go:215] Last block: #0 [d4e56740.] TD=17179869184 blockchain.go:216] Fast block: #0 [d4e56740.] TD=17179869184 cmd.go:114] Starting Geth/v1.3.3/windows/go1.5.1 server.go:311] Starting Server nat.go:109] network port udp:30303 could not be mapped: no UPnP or NAT-PMP router discovered udp.go:204] Listening, enode://7322da466f5425e7a2e8a8c8a0681de44af9b3d7aa048257302aa133ec00d2cbb0c8a2b7aa906f189cb68d4ee6b43c04a1898b561f3d983666f1682ee0788886@[::]:30303 backend.go:526] Server started server.go:552] Listening on [::]:30303 ipc.go:112] IPC service started (.\pipe\geth.ipc) nat.go:109] network port tcp:30303 could not be mapped: no UPnP or NAT-PMP router discovered table.go:336] no seed nodes found table.go:336] no seed nodes found table.go:336] no seed nodes found table.go:336] no seed nodes found

dinkargupta avatar Jan 14 '16 13:01 dinkargupta

Are you trying to work with a private chain? --networkid=23 wont get you on the main chain.

fjl avatar Jan 14 '16 18:01 fjl

Yes.. Working with testnet

dinkargupta avatar Jan 15 '16 03:01 dinkargupta

Well well well !! just like everything else, stupid mistake.. the following worked on command line geth --testnet --networkid 23 --datadir D:\Ethereum 0.9.41\datadir --verbosity 5

I was able to create a account and check balance on the console.

BUT the wallet client is still looking for peers. When I start Ethereum-Wallet.exe, I have to skip peer search and then on the UI, nothing is there are 0 peers.. so can't do much.

interestingly when I looked at the source code, the ethereumNodes.js uses the following flags when starting geth '--testnet', '--fast'

but when I used these flags on command line I can't get geth started properly and the UPnP issues come up

something to consider ?

dinkargupta avatar Jan 15 '16 06:01 dinkargupta

I think you misunderstand something here. You don't need to use the --testnet flag, if you're providing a network id. the testnet flag simply sets a genesis block and a testnet id (the one of the official testnet).

Concerning startup @karalabe you have any idea why he could have that problem? btw, @dinkargupta you're using the geth version 1.3.3, right?

frozeman avatar Jan 15 '16 09:01 frozeman