Running Hyperledger Besu instance on EC2

0

I'm trying to start a node for a private implementation of Besu on my EC2 instance. However, every time I try to start the node, it throws a java.net.ConnectException immediately on start. There is no message given, no cause, just throws the exception immediately and dies.

I've checked the security groups, and all the necessary ports are open. I tried it with and without UFW and no success. I also tried using ports that are already standard defined but not commonly used UDP/TCP ports, and that did not work either. It runs successfully in our local dev environment, so I know the difference is environmental and not a code issue, but I'm not sure where else to look.

The Java version is the same, the compiled jars are the same, and I've tried everything I can think of with regards to opening ports on the EC2 instance.

已提問 2 年前檢視次數 340 次
1 個回答
0

Hello,

If the server listens on port 1099 then the port you use to connect the stub is random so you either have to open all TCP ports in the security group of AWS.

OR, you can specify the port while constructing or exporting which is recommended.

Hope this helps.

profile pictureAWS
支援工程師
已回答 2 年前
  • I specify the port to 30303 as well as 8545-8546. I also tried opening all ports, and that did not succeed either. I tried most of the obvious solutions, and they did not work. I tried using a standard port and it did not work.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南