SSL connection has been closed unexpectedly

0

I have tried twice to load a 300 GB Sql dump into Aurora Severless and both times it failed after two and half hours with the message:

SSL connection has been closed unexpectedly
no connection to the server
connection to server was lost

On the AWS Console, there is an event stating that

Error restarting database: Could not verify and start postgres

preceded by a few failed attempts to bring the capacity of the cluster up from 2 to 4 capacity units (I have the max set to 64 units).

I am loading the Sql dump from an EC2 instance (created about 1 year ago) on the same VPC using psql. The dump was created by a 9.6.20 server (from the Google SQL service). The GRANTs, REVOKEs, and ALTERs unique to Google are removed before loading. It is a simple database with 6 tables.

When I try smaller databases (say a 5Gbyte dump), the same pipeline completes fine.

Any suggestions how I could debug this?

Edited by: Saci on Mar 28, 2021 7:20 PM to add italics

Edited by: Saci on Mar 29, 2021 4:18 AM. Typo

Saci
質問済み 3年前4191ビュー
2回答
0

I made some progress with this issue. It seems to be an Aurora Serverless problem. The data loads fine into an RDS Postgres database.

My suspicion is that the transition from one compute capacity to a larger one is causing the problem. Next I want to try loading the data in Aurora with fixe computing resources.

Saci
回答済み 3年前
0

Some more progress. I tried loading the large dump into Aurora and it does so with no problems. This encouraged me to modified my Aurora Severless instance to have a larger minimum compute capacity, so no transitions would be needed while the database is loading. This eliminated the error.

I suspect based on these experiments is that the SSL error above is a bug in Aurora Severless: when the engine is loading a large SQL dump, the COPY will fail if the engine switches compute capacity.

Saci
回答済み 3年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ