1. 程式人生 > >Troubleshoot Problems Connecting to Aurora Clusters or Instances

Troubleshoot Problems Connecting to Aurora Clusters or Instances

Make sure your instance is in the available state

When you create a new RDS DB instance, it can take up to 20 minutes for the instance to move into the available state. Instances in any state other than available (for example, creating) might not be ready to receive network connections.

You can check the current state of your instance by opening the

RDS console, selecting Instances from the left navigation pane, and checking the Status column next to your instance. If you prefer, you can also check the status of your instance using the AWS CLI or the RDS API.

Check your security groups, ACLs, route tables, and local firewalls

Make sure the security groups, network access control lists (ACLs), and route tables associated with your VPC allow connections from the source IP address on the database engine port. Run a networking utility such as nc (netcat), telnet, or traceroute to see if and where traffic to and from your DB instance is failing or timing out.

Note: When using traceroute, use the TCP (-T) option; ICMP packets are blocked by RDS.

When troubleshooting connection timeouts, first check that the security group associated with your DB instance has an inbound rule that allows traffic from the source you're connecting from:

  1. Open the RDS console and select your DB instance.
  2. From the Instance Actions menu, choose See Details.
  3. Under Security and Network, choose the security group next to Security Groups.
  4. From the Actions menu, choose Edit Inbounds.
  5. Add a rule or update a current rule to allow traffic from the source you're connecting from, and then choose Save.
    Note: It's a security best practice to limit inbound traffic to only sources that you trust. Do not allow all inbound traffic.

Next, ensure that the network ACL associated with your DB instance allows inbound traffic from the source you're connecting from, and allows outbound traffic on ephemeral or high ports (ports 1024-65535):

  1. Select the instance in the RDS console, and from the Instance Actions menu, choose See Details.
  2. Select a subnet from the list next to Subnets.
  3. Select the Network ACL tab and ensure the rules allow the necessary inbound and outbound traffic.
  4. Repeat steps 2 and 3 for any other subnets in the Subnets list.

Last, ensure that your route table allows inbound connections from the source you're connecting from:

  1. Select the instance in the RDS console, and from the Instance Actions menu, choose See Details.
  2. Select a subnet from the list next to Subnets.
  3. Select the Route Table tab and ensure inbound connections from the source you're connecting from are allowed.
    Note: Publicly accessible Aurora clusters must be in public subnets, which should route traffic to the Internet through an Internet gateway (IGW), not through an Elastic Network Interface (ENI) or NAT device.

Check whether your RDS instance is publicly accessible

If the DB instance is launched with Publicly accessible set to No, you can only connect to it from resources in the same VPC, and your RDS instance is launched with no public IP addresses. To check the state of the Publicly accessible attribute, select the DB instance in the RDS console and choose See Details from the Actions menu.

If you would like to connect from your local machine, resources outside of the VPC that contains the RDS instance, the Internet, or another AWS region, ensure that the instance or cluster is in a public subnet, and set Publicly accessible to Yes.

If you want to connect from a local network, configure a VPN connection.

Make sure that your RDS instance is connecting to the correct endpoint

Because Amazon Aurora is a managed service, you must connect to Aurora DNS endpoints using MySQL client tools.

Make sure you connect to the correct Aurora endpoint. To verify the cluster and reader endpoints your DB cluster is currently connecting to, select your DB cluster in the Cluster pane of the RDS console.

You can perform an nslookup or dig against the Aurora endpoint to make sure the DNS endpoint resolves properly. For example, if you run nslookup using the endpoint of your DB instance, and the endpoint resolves to the IP address of your instance, you receive a response similar to the following:

相關推薦

Troubleshoot Problems Connecting to Aurora Clusters or Instances

Make sure your instance is in the available state When you create a new RDS DB instance, it can take up to 20 minutes for the instan

Troubleshoot Issues Connecting to S3 from VPC Endpoints

You might experience connectivity issues with your gateway VPC endpoint due to network access or security rules that allow the connection to Am

Troubleshoot Issues Connecting to an RDS Instance

Be sure that your instance is in the "available" state If you recently launched or rebooted your DB instance, confirm that the insta

Tomcat伺服器提示:The server is temporarily unable to service your request due to maintenance downtime or capacity problems

今天網站突然不能訪問了,這裡做一下記錄提示: The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again lat

Tomcat服務器提示:The server is temporarily unable to service your request due to maintenance downtime or capacity problems

數據庫連接 gin desc 啟動服務 down 記錄 生效 problems 分析 今天網站突然不能訪問了,這裏做一下記錄提示: The server is temporarily unable to service your request due to mainte

Troubleshoot Connecting to an Instance in a VPC

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Troubleshoot Connecting to a Snowball Appliance

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Resolve "Server Refused Our Key" Errors When Connecting to EC2 Instances

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Troubleshoot Connecting to EC2 Linux Instance Through SSH

To ensure that you can connect to your EC2 Linux instance using SSH, first verify that your Security Group(s) permit access to your EC2 instan

Run containers without having to manage servers or clusters

AWS Fargate is a compute engine for Amazon ECS that allows you to run containers without having to manage servers or clusters. With AWS Fargate, y

Troubleshoot Errors with Credentials when Connecting to an EC2 Linux Instance

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

spark 卡在spark context,運行出現spark Exception encountered while connecting to the server : javax.security.sasl.SaslException

stand exc val user red class 運行 password spa 原因: 使用root用戶運行spark代碼 解決方法:使用非管理員賬戶運行spark即可 [[email protected] bin]$ ./add-user.sh

Error connecting to the Service Control Manager: 拒絕訪問 Mongodb問題-解決

原因 gap exe 而且 path 現在 拒絕 問題 service 原文地址:https://blog.csdn.net/carrot5032/article/details/74742888 發現在mongodb.log裏出現 2017-07-07T17:01:55

安裝zabbix之後登陸報錯:Error connecting to database: No su

cti ffice art sock 問題 網絡 提醒 修改 指定位置 安裝zabbix之後登陸報錯:Error connecting to database: No such file or directory解決辦法:經過網絡上找了好久也沒見到個解決辦法,最後被一片文章

c++ - Linking problems due to symbols with abi::cxx11?

() 重新 fine protobuf undefined all ems -s num 看錯誤內容: /data/projects/LipReadingSDKGPU/lib/cwlibs/libLipReading.so: undefined reference t

kettle7.0 Error connecting to database: (using class org.gjt.mm.mysql.Driver)

kettle7.0 連線mysql錯誤 錯誤連線資料庫 [con_mysql] : org.pentaho.di.core.exception.KettleDatabaseException:  Error occurred while trying to connect to t

Kafka java Client 錯誤 org.apache.kafka.clients.NetworkClient Error connecting to node 1 at slave2:909

開發環境:win10+Eclipse 伺服器:centos+kafka0.10.2 錯誤: [2017-09-09 13:34:40,648] [DEBUG] org.apache.kafka.clients.NetworkClient Initiating

記一次nginx負載均衡轉發錯誤 “no live upstreams while connecting to upstream ”

先描述一下環境,前段的負載均衡轉發給nginx,nginx再轉發給後端的應用伺服器。 nginx配置檔案如下: upstream ads {         server ap1:8888 max_fails=1 fail_timeout=60s;

error connecting to db server: no reachable servers

在使用 mongodb 的匯出工具匯出資料時,工具報錯: [mongodb]# ./bin/mongoexport -d cloud-db -c collection1 -o exportfile/collection1.dat 2018-07-27T10:15:49.066+0800 

mongodb使用mongo報錯: Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:270

在windows下命令臺輸入mongo報一下錯誤: D:\ProgramFiles\BianCheng\mongodb-win32-x86_64-2008plus-ssl-4.0.4>mongoMongoDB shell version v4.0.4connecting to: mongodb://1