Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 3. fails #137

Open
daxdax89 opened this issue Dec 11, 2018 · 32 comments
Open

Step 3. fails #137

daxdax89 opened this issue Dec 11, 2018 · 32 comments

Comments

@daxdax89
Copy link

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?

@jwasinger
Copy link
Contributor

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.

@daxdax89
Copy link
Author

daxdax89 commented Dec 11, 2018

@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)

@lrgeoemtry
Copy link

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

@jwasinger
Copy link
Contributor

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

@daxdax89
Copy link
Author

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

@hugo-dc
Copy link
Member

hugo-dc commented Dec 11, 2018

@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

@jwasinger
Copy link
Contributor

I think WS_SECRET needs to be swedish_fish ?

@daxdax89
Copy link
Author

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

@lrettig
Copy link
Member

lrettig commented Dec 12, 2018

I think WS_SECRET needs to be swedish_fish ?

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

@lrettig
Copy link
Member

lrettig commented Dec 12, 2018

How does one see the whole explorer now?

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

@daxdax89
Copy link
Author

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 :)

@jwasinger
Copy link
Contributor

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.

@daxdax89
Copy link
Author

daxdax89 commented Dec 12, 2018

@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',

@jwasinger
Copy link
Contributor

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

@daxdax89
Copy link
Author

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"

@jwasinger
Copy link
Contributor

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.

@daxdax89
Copy link
Author

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...

@jwasinger
Copy link
Contributor

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

@jwasinger
Copy link
Contributor

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

@daxdax89
Copy link
Author

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?

@jwasinger
Copy link
Contributor

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

@daxdax89
Copy link
Author

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

@jwasinger
Copy link
Contributor

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

@daxdax89
Copy link
Author

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

@jwasinger
Copy link
Contributor

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

@daxdax89
Copy link
Author

daxdax89 commented Jan 4, 2019

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'

@jwasinger
Copy link
Contributor

app.js

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

@daxdax89
Copy link
Author

daxdax89 commented Jan 7, 2019

app.js

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

Yes

@jwasinger
Copy link
Contributor

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.

@daxdax89
Copy link
Author

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
Copy link
Author

I tried every single step but i've placed them in different folders as you suggested. And every step worked perfectly! I feel like its a big progress but i still don't see it here:
http://ewasm.ethereum.org:3003/

@axic
Copy link
Member

axic commented Feb 8, 2019

@daxdax89 sorry for the delay, the ethstats page contains a curated list of nodes, it won't show any other node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants