- Newest
- Most votes
- Most comments
It sounds like you're experiencing connection issues with your EC2 instance, especially since you are trying to work with ArangoDB on port 8529. Here are some possible causes and steps to troubleshoot your connection issue:
Potential Causes and Troubleshooting Steps
-
Security Group Configuration:
- Ensure that the inbound rule specifically allows traffic on port 8529 from your IP address or from all IP addresses (0.0.0.0/0) for testing purposes. The rule should look like this:
- Type: Custom TCP
- Protocol: TCP
- Port Range: 8529
- Source: Your IP address (or 0.0.0.0/0 for testing)
- After making any changes, remember to save the rules.
- Ensure that the inbound rule specifically allows traffic on port 8529 from your IP address or from all IP addresses (0.0.0.0/0) for testing purposes. The rule should look like this:
-
ArangoDB Service Status:
-
Make sure the ArangoDB service is running on your instance. You can check the status using:
sudo systemctl status arangodb3
-
If it's not running, you can start it with:
sudo systemctl start arangodb3
-
-
Check ArangoDB Configuration:
-
Verify that ArangoDB is configured to listen on the correct network interface. Check the configuration file (usually located at
/etc/arangodb3/arangod.conf
) for the following settings:endpoint = tcp://0.0.0.0:8529
-
If it's set to
localhost
or127.0.0.1
, it will not accept external connections. Change it to0.0.0.0
to allow connections from any IP.
-
-
Network ACLs:
- Ensure that the Network Access Control Lists (ACLs) associated with your VPC are not blocking inbound or outbound traffic on port 8529.
-
Instance Health:
- Check the instance health and ensure that it is in the "running" state with no status check failures.
-
Accessing the Correct URL:
-
Make sure you are accessing the ArangoDB web interface correctly. The URL should look like this:
http://<Public_IP_or_DNS>:8529
-
If you're using HTTPS, make sure the appropriate port and configuration are set up.
-
-
Reboot the Instance:
- If you have made changes to the configuration or security group, sometimes rebooting the instance can help apply those changes.
Additional Questions
- Have you tried connecting to ArangoDB using a command-line client or another tool (like
curl
or Postman) to see if you receive a different response? - If you have access to the EC2 instance via SSH, can you check the ArangoDB logs for any error messages? The logs are usually found in
/var/log/arangodb3/
.
Are you running a webserver on the EC2? If not you will not get a response
Based on the information provided, there are several potential reasons for the connection issue you're experiencing with your EC2 instance. Here are some key points to consider and steps to take:
-
Security Group Configuration: While you've configured the inbound rules to allow traffic on port 8529 for ArangoDB, it appears that you haven't allowed traffic on the standard web ports (80 for HTTP and 443 for HTTPS). If you're trying to access a web service, you need to add rules for these ports in your security group.
-
Web Server: Ensure that a web server (like Apache or Nginx) is installed and running on your EC2 instance. If no web server is running, there won't be anything to respond to HTTP requests.
-
Application Configuration: If you're specifically trying to access ArangoDB, make sure it's properly installed, configured, and running on your instance. Also, verify that it's set to listen on the correct port (8529) and interface.
-
Network ACLs: Check the Network Access Control Lists (ACLs) for your subnet. Ensure that they allow inbound and outbound traffic on the necessary ports.
-
Route Table: Verify that the route table associated with your instance's subnet has a route to an Internet Gateway for public internet access.
-
Instance Status: While your screenshot shows the instance status as "running", double-check that it's passing all status checks.
-
Firewall on the Instance: Ubuntu comes with a built-in firewall called UFW (Uncomplicated Firewall). Make sure it's not blocking incoming connections.
To troubleshoot further:
- Try to SSH into your instance to confirm basic connectivity.
- Check the instance's system logs for any error messages.
- Verify that your application (ArangoDB in this case) is running and listening on the correct port.
- Consider temporarily allowing all inbound traffic in your security group for testing purposes (remember to revert this after testing).
If you've confirmed all these settings and are still unable to connect, you may need to reach out to AWS support for further assistance, as there could be underlying network or infrastructure issues.
Sources
Troubleshoot website connectivity on EC2 Windows instance | AWS re:Post
site can't reachable through the public IP | AWS re:Post
Unable to access the EC2 instance with the Public IP | AWS re:Post
Thankyou, @Gary_S. I tried troubleshooting the database config. I made changes to the /etc/arangodb3/arangod.conf
file:
endpoint = tcp://127.0.0.1:8529
had to be changed to:
endpoint = tcp://0.0.0.0:8529
This allows ArangoDB to accept connections from any IP address.
Also, thanks to @Gary McLean, I switched to HTTP, and now I can access the database.
Relevant content
- asked a year ago
- asked 2 years ago
Yes, I have the arangodb server running
When accessing
arangodb
have you ensured that you are using the correct port at the end of the EC2 domain? For examplehttp://ec2-X-X-X-X.X.compute.amazonaws.com:8529
? If this doesn't work I would suggesting SSH'ing into the the EC2 instance and troubleshooting the database install and configuration locally.Gary_s Is correct..When you click on the Public IPv4 DNS link, I get a message saying it "took too long to respond." it will open on port 443 by default. Update the port and chang to HTTP
Thankyou @Gary_S and @Gary Mclean!