跳至內容

EC2 Server actively refusing Perforce Connections

-1

I have an EC2 US East 2 server that I exclusively use for storing project files for different projects across multiple computers that I connect to with Perforce. I have extremely limited knowledge of AWS/EC2/Networking in general beyond this. I have been using it for years with zero issues, until this morning when Perforce started giving me this error:

TCP connect to ec2-3-15-181-87.us-east-2.compute.amazonaws.com:1666 failed.
connect: 3.15.181.87:1666: WSAECONNREFUSED, No connection could be made because the target machine actively refused it. 

The only thing I knew how to do was checking to see that my instance was running (it was), check it across multiple computers (checked three, none could connect), and to reboot it (which did nothing). Does anyone have any idea how I could troubleshoot this and why it would happen out of the blue like this? All of this is really out of my wheelhouse.

已提問 1 個月前檢視次數 26 次
2 個答案
1

This issue where your EC2 instance is suddenly refusing Perforce connections after working fine for years is likely related to one of several possible causes:

  1. The Perforce service on your EC2 instance may have stopped running. When a service isn't running, connection attempts are actively refused by the operating system.

  2. There could have been a system update or reboot that prevented the Perforce service from starting automatically.

  3. Security group settings might have changed, though this typically results in timeouts rather than connection refusals.

To troubleshoot this issue:

  1. First, try to connect to your EC2 instance using SSH or EC2 Instance Connect through the AWS Console. This will help determine if the instance itself is accessible.

  2. Once connected, check if the Perforce service is running using a command appropriate for your operating system (like systemctl status perforce or service perforce status).

  3. If the service isn't running, try starting it manually.

  4. Check the Perforce server logs for any error messages that might explain why the service stopped or failed to start.

  5. Verify that there's enough disk space and memory available on your instance, as resource constraints can cause services to fail.

  6. Ensure that port 1666 (the default Perforce port) is still open in your security group's inbound rules.

If you're unable to connect to the instance at all, you might need to check the instance's system logs through the EC2 console to look for any boot or system-level issues.

The "actively refused" error specifically indicates that your EC2 instance is reachable, but the Perforce service isn't accepting connections, which points to an issue with the service itself rather than network connectivity.
Sources
Suddenly I can't connect to my ec2 server | AWS re:Post
EC2: Cannot connect anymore via Instance Connect or SSH command line | AWS re:Post

已回答 1 個月前
AWS
專家
已審閱 1 個月前
0
已接受的答案

What ended up working was going into my perforce folder through my instance's terminal (cd perforce) and then running ./p4v. It doesn't look like it does anything, but perforce suddenly worked!

已回答 1 個月前
AWS
專家
已審閱 1 個月前

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

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