Connection Error - Couldn't connect to ethereum node on AWS at http://xx.xxx.xx.xxx:8545

kirtikirti Posts: 3Member
We setup ethereum node on AWS Ubuntu Server 16.04 LTS (HVM) EC2 instance and configured it in the standard way before launching the geth console using the below command:
sudo geth --identity "EthereumMain" --datadir ~/.ethereum_private/ --networkid "123" --verbosity 3 --nodiscover --rpcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3" --rpccorsdomain "*" --rpc --port "30301" --rpcport "8545" --rpcaddr "0.0.0.0" --nat "any" console 2>> ~/fm-ethchain/fm-ethchain.log

(Basically we tried to incorporate all the suggestions we found on various forums and websites to solve the problem!! )

Now, when we try to connect to this node from lambda function using the web3:
var web3 = new Web3( new Web3.providers.HttpProvider('http://xx.xxx.xx.xxx:8545') );

We keep getting the following error:

CONNECTION ERROR: Couldn't connect to node http://xx.xxx.xx.xxx:8545 (where xx.xxx.xx.xxx is the public IP address of the EC2 instance).


Can somebody please specify what is the mistake or what is it that we are missing?

Comments

  • slaeyaslaeya New ZealandPosts: 12Member
    have you checked your FW and are you seeing packets arriving at the destination? (assuming your looking for these on the destination as opposed to claiming they were sent)
  • kirtikirti Posts: 3Member
    Hey @slaeya .. Thank you for responding! Unfortunately we are behind a corporate FW and so we can't see or track the packets! :(
  • slaeyaslaeya New ZealandPosts: 12Member
    On your ubuntu server you could take a pcap and itll capture anything on the Ethernet interface. As long as you know what ip you're attempting to connect to the node from id be more than happy to analyse the data for you. Itd only take me a min or two
  • kirtikirti Posts: 3Member
    Hi @slaeya .. Thanks a lot for offering to help! Appreciate it.. We do know the IP address of the node (on AWS) which we are trying to connect from the lambda function (again on another AWS account). But I am curious about how we can synchronize the testing, as in we trying to connect and you helping us analyze the data, using pcap?
  • slaeyaslaeya New ZealandPosts: 12Member
    you can get me off board on Telegram, Line, Hangouts user: slaeya
Sign In or Register to comment.