testnet icon indicating copy to clipboard operation
testnet copied to clipboard

Step 3. fails

Open daxdax89 opened this issue 6 years ago • 32 comments

I am trying to do it with Herc and for me it fails at the step 3.

Download the genesis file and use it to initialize geth:

wget https://raw.githubusercontent.com/ewasm/testnet/ewasm-testnet-milestone1/ewasm-testnet-geth-config.json ./build/bin/geth --datadir /tmp/ewasm-node/4201/ init ewasm-testnet-geth-config.json Note that the /tmp/ewasm-node/4201 directory name above is arbitrary. It just needs to be unique.

I've tried to make a directory manually as well but it still kept telling me there is no directory. I am using Ubuntu 18 from AWS EC2 instance. Is there anything that i am missing? Anyone got this figured out?

daxdax89 avatar Dec 11 '18 15:12 daxdax89

Note that the /tmp/ewasm-node/4201 directory name above is arbitrary. It just needs to be unique.

you can use whichever directory you would like for the data directory. you don't even have to specify--datadir and geth will choose ~/.ethereum as the default.

jwasinger avatar Dec 11 '18 15:12 jwasinger

@jwasinger if i go without directory that way the custom genesis wouldn't be initialized i guess? BCS otherwise i get this:

Fatal: Failed to write genesis block: database already contains an incompatible genesis block (have d4e56740f876aef8, new 1a48e34978274c3c)

daxdax89 avatar Dec 11 '18 15:12 daxdax89

That fatal. U must already have geth on the instance Remove the chain data and ls and remove the mainnet genesis file

lrgeoemtry avatar Dec 11 '18 16:12 lrgeoemtry

you need to delete your existing db (geth removedb) before using geth init to create a new one.

jwasinger avatar Dec 11 '18 16:12 jwasinger

Thanks mate you are helping a lot really. So i managed to run it, now i get this when i try to link up netstats

ubuntu@ip-172-31-26-5:~/eth-net-intelligence-api$ NODE_ENV=production INSTANCE_NAME="ewasmTestnet" CONTACT_DETAILS="[email protected]" WS_SERVER=wss://ewasm.ethereum.org WS_SECRET=97255273942224 VERBOSITY=2 node www/app.js
module.js:549
    throw err;
    ^

Error: Cannot find module '/home/ubuntu/eth-net-intelligence-api/www/app.js'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

Any idea why? @jwasinger

daxdax89 avatar Dec 11 '18 17:12 daxdax89

@daxdax89 Try with this command:

NODE_ENV=production INSTANCE_NAME="ewasmTestnet" CONTACT_DETAILS="[email protected]" WS_SERVER=wss://ewasm.ethereum.org WS_SECRET=97255273942224 VERBOSITY=2 node app.js

hugo-dc avatar Dec 11 '18 18:12 hugo-dc

I think WS_SECRET needs to be swedish_fish ?

jwasinger avatar Dec 11 '18 18:12 jwasinger

Ok seems to be running now? How does one see the whole explorer now? @jwasinger @hugo-dc Thanks a lot guys! <3

daxdax89 avatar Dec 11 '18 22:12 daxdax89

I think WS_SECRET needs to be swedish_fish ?

Are we sure? If so I'll update the public doc.

lrettig avatar Dec 12 '18 08:12 lrettig

How does one see the whole explorer now?

Not sure what you mean by explorer here. See the links at http://ewasm.ethereum.org/.

lrettig avatar Dec 12 '18 08:12 lrettig

How does one see the whole explorer now?

Not sure what you mean by explorer here. See the links at http://ewasm.ethereum.org/.

I've meant the ethstats yeah, sorry about that :)

daxdax89 avatar Dec 12 '18 13:12 daxdax89

http://ewasm.ethereum.org:3003

looks like you aren't connected, if you are running a node. and both nodes show 1 peer connected (they are connected to each other) . So your geth node isn't running or didn't successfully connect to the network.

jwasinger avatar Dec 12 '18 13:12 jwasinger

@jwasinger You are right, ok i've tried again with swedish_fish, looks like peers connected still showing 0

[eth]
[eth]     NET STATS CLIENT
[eth]     v0.1.1
[eth]
[eth]
[eth] =i= Starting web3 connection
[eth] =✓= Web3 connection established
[eth] ==> Getting info
[eth] =i= { name: 'ewasmTestnet',
  contact: '[email protected]',
  coinbase: '0x031159df845ade415202e6da299223cb640b9db0',
  node: 'Geth/v1.8.17-evmc.6.0.0-1-stable/linux-amd64/go1.10.4',
  net: '66',
  protocol: 63,
  api: '0.15.3',
  port: 30303,
  os: 'linux',
  os_v: '4.15.0-1021-aws',
  client: '0.1.1',
  canUpdateHistory: true }

It's timing out

[eth] =✓= Installed chain filter
[eth] =✓= Installed pending filter
[eth] =i= { id: 'ewasmTestnet',
  stats:
   { active: true,
     syncing: false,
     mining: true,
     hashrate: 51602,
     peers: 0,
     gasPrice: '1000000000',
     uptime: 100 } }
[eth] =i= { id: 'ewasmTestnet',
  stats:
   { active: true,
     syncing: false,
     mining: true,
     hashrate: 51668,
     peers: 0,
     gasPrice: '1000000000',
     uptime: 100 } }
[wsc] =✘= Socket connection timeout
[wsc] =!= Reconnecting in 500 ms
[wsc] =!= This is attempt 1 out of 10
[wsc] =i= Socket reconnect attempt started
[eth] =i= { id: 'ewasmTestnet',

daxdax89 avatar Dec 12 '18 13:12 daxdax89

For some reason your geth node isn't connecting to the testnet.

jwasinger avatar Dec 12 '18 16:12 jwasinger

For some reason your geth node isn't connecting to the testnet.

i tried rerunning it now again, and it says that IPC and HTTP are registered. Here is the log:

INFO [12-12|16:54:35.685] Maximum peer count                       ETH=25 LES=0 total=25
INFO [12-12|16:54:35.685] Starting peer-to-peer node               instance=Geth/v1.8.17-evmc.6.0.0-1-stable/linux-amd64/go1.10.4
INFO [12-12|16:54:35.685] Allocated cache and file handles         database=/home/ubuntu/.ethereum/geth/chaindata cache=768 handles=512
INFO [12-12|16:54:35.998] Initialised chain configuration          config="{ChainID: 66 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: <nil> Engine: ethash}"
INFO [12-12|16:54:35.998] Disk storage enabled for ethash caches   dir=/home/ubuntu/.ethereum/geth/ethash count=3
INFO [12-12|16:54:35.998] Disk storage enabled for ethash DAGs     dir=/home/ubuntu/.ethash               count=2
INFO [12-12|16:54:35.998] Initialising Ethereum protocol           versions="[63 62]" network=66
INFO [12-12|16:54:35.999] Loaded most recent local header          number=9686 hash=1a2b42…1e8ee1 td=5623649875 age=14s
INFO [12-12|16:54:35.999] Loaded most recent local full block      number=9686 hash=1a2b42…1e8ee1 td=5623649875 age=14s
INFO [12-12|16:54:35.999] Loaded most recent local fast block      number=9686 hash=1a2b42…1e8ee1 td=5623649875 age=14s
INFO [12-12|16:54:35.999] Loaded local transaction journal         transactions=0 dropped=0
INFO [12-12|16:54:35.999] Regenerated local transaction journal    transactions=0 accounts=0
WARN [12-12|16:54:35.999] Blockchain not empty, fast sync disabled
INFO [12-12|16:54:35.999] Starting P2P networking
DEBUG[12-12|16:54:36.000] IPC registered                           namespace=admin
DEBUG[12-12|16:54:36.000] IPC registered                           namespace=admin
DEBUG[12-12|16:54:36.000] IPC registered                           namespace=debug
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=debug
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=web3
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=eth
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=eth
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=eth
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=txpool
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=debug
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=debug
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=eth
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=personal
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=eth
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=ethash
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=eth
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=eth
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=eth
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=miner
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=eth
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=admin
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=debug
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=debug
DEBUG[12-12|16:54:36.001] IPC registered                           namespace=net
INFO [12-12|16:54:36.001] IPC endpoint opened                      url=/home/ubuntu/.ethereum/geth.ipc
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=debug
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=debug
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=web3
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=eth
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=eth
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=eth
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=debug
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=debug
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=eth
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=eth
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=eth
DEBUG[12-12|16:54:36.001] HTTP registered                          namespace=eth
DEBUG[12-12|16:54:36.002] HTTP registered                          namespace=eth
DEBUG[12-12|16:54:36.002] HTTP registered                          namespace=eth
DEBUG[12-12|16:54:36.002] HTTP registered                          namespace=debug
DEBUG[12-12|16:54:36.002] HTTP registered                          namespace=debug
DEBUG[12-12|16:54:36.002] HTTP registered                          namespace=net
INFO [12-12|16:54:36.002] HTTP endpoint opened                     url=http://0.0.0.0:8545             cors=* vhosts=*
INFO [12-12|16:54:36.002] Transaction pool price threshold updated price=1000000000
INFO [12-12|16:54:36.002] Updated mining threads                   threads=1
INFO [12-12|16:54:36.002] Transaction pool price threshold updated price=1000000000
INFO [12-12|16:54:36.002] Commit new mining work                   number=9687 sealhash=e7d6af…762bbc uncles=0 txs=0 gas=0 fees=0 elapsed=266.421µs
INFO [12-12|16:54:38.100] RLPx listener up                         self="enode://daed7525c5334ca0b5e92ae6c8bf83bb679fb9ed5bc2b8a8f3d32ceb9ba793fdc9fbd97f74e1cd0c6e215b23512b85cc7d993ab64d3f3bda3ac1b41344fb1bc9@127.0.0.1:30303?discport=0"

daxdax89 avatar Dec 12 '18 16:12 daxdax89

set the log verbosity up to 12 --vmodule "p2p=12", then filter for log entries containing the IP address of the node you are connecting to.

Also, filter for entries containing the first 4-5 characters in the "enode" id (the string after enode://).

post those.

jwasinger avatar Dec 12 '18 17:12 jwasinger

set the log verbosity up to 12 --vmodule "p2p=12", then filter for log entries containing the IP address of the node you are connecting to.

Also, filter for entries containing the first 4-5 characters in the "enode" id (the string after enode://).

post those.

Enode starts like this

self="enode://daed7525c5334c...

daxdax89 avatar Dec 12 '18 17:12 daxdax89

that's your enode. you need to filter for the one you are connecting to (passed as --bootnodes.

jwasinger avatar Dec 12 '18 17:12 jwasinger

You are using EC2? what are the NSG rules for your instance?

jwasinger avatar Dec 12 '18 17:12 jwasinger

You are using EC2? what are the NSG rules for your instance?

I've completely forgot about that, only ssh 22 is opened for inbound. Which ones should i open?

daxdax89 avatar Dec 12 '18 17:12 daxdax89

You know what... the instructions for connecting a node to the testnet don't work for me either....

jwasinger avatar Dec 12 '18 17:12 jwasinger

You know what... the instructions for connecting a node to the testnet don't work for me either....

Added you do LinkedIn, let's chat and try to figure out then post the solution after or maybe edit instructions ? I appreciate all the help really, would like to make this thingie working :D

daxdax89 avatar Dec 12 '18 17:12 daxdax89

I think I've discovered the source of the issues we are seeing. I need to roll some updates out to the testnet and then the instructions should work! Will let you know

jwasinger avatar Dec 12 '18 17:12 jwasinger

I think I've discovered the source of the issues we are seeing. I need to roll some updates out to the testnet and then the instructions should work! Will let you know

Awesome, glad to see this moving forwards :) Lmk, i will be up

daxdax89 avatar Dec 12 '18 17:12 daxdax89

Hi @daxdax89 can you reference the README changes here and see if those steps work for you?

jwasinger avatar Jan 02 '19 20:01 jwasinger

Hi @daxdax89 can you reference the README changes here and see if those steps work for you?

Cannot find module '/home/ubuntu/go-ethereum/hera/build/app.js'

daxdax89 avatar Jan 04 '19 13:01 daxdax89

app.js

So I'm assuming that this is failing when you try to connect to ethstats?

jwasinger avatar Jan 04 '19 18:01 jwasinger

app.js

So I'm assuming that this is failing when you try to connect to ethstats?

Yes

daxdax89 avatar Jan 07 '19 09:01 daxdax89

Well it's hard to see what is happening without being able to reproduce your error. I'd recommend having the different components hera, geth, ethstats share a common parent folder. These are separate projects and should not be cloned recursively into one another.

jwasinger avatar Jan 07 '19 20:01 jwasinger

Well it's hard to see what is happening without being able to reproduce your error. I'd recommend having the different components hera, geth, ethstats share a common parent folder. These are separate projects and should not be cloned recursively into one another.

Ok i will try separated now, did you push new readme? Should i be following official readme now or still not updated and pushed?

daxdax89 avatar Jan 15 '19 12:01 daxdax89