SwiftPackageIndex-Server: Fix `NIOSSL.NIOSSLError.uncleanShutdown`

Follow-up from #1014

They fail with:

[ INFO ] Reconciling ... [component: reconcile]
[ ERROR ] Channel error caught. [psql_connection_id: EBB34917-47DC-40F9-8EF4-207ECC928E9B, psql_error: uncleanShutdown]
[ ERROR ] Channel error caught. Closing connection. [psql_connection_id: EBB34917-47DC-40F9-8EF4-207ECC928E9B, psql_error: PSQLError(base: PostgresNIO.PSQLError.Base.connectionError(underlying: NIOSSL.NIOSSLError.uncleanShutdown))]

Interestingly, app_server does seem to be able to connect:

[ INFO ] GET /marinofelipe/swift-package-info [component: server, request-id: 858996AA-35CF-4962-9648-31D1492F13E1]
[ INFO ] POST /api/versions/78A72B11-A475-478B-9189-F3AD5B3411DC/builds [component: server, request-id: B6103D4D-7C59-44F4-BAFD-6F6C7FA543FA]

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

That spike as the first deployment (2.26.1) went out with the PG NIO fix (around 10:25) is from a bunch of SSL errors that were stacking up as the services restarted. Notice how the follow up deployment 2.26.2 a few minutes later doesn’t cause a spike.

Azure ticket opened: Case 2104190050000549  Your question was successfully submitted - TrackingID#2104190050000549