I know .NET 6 isn’t officially supported yet, and this post is more to bring awareness to the issue so that it can be looked at when support for .NET 6 is added.
I downloaded the first release of .NET 6 (6.0.0) and tried it with SDK 3.2.4. It works in one situation, but not another:
-
.Net 6 Windows Console Application With SDK 3.2.4 connecting to local 6.6 Couchbase Server ==> Able to Bootstrap + Issue Queries
-
.Net 6 Alpine (3.14) Docker Container Application Hosted On Kubernetes connecting to cloud hosted 6.6 Couchbase Server ==> Bootstrap error below (1 occurrence each for Couchbase, Memcached, and Ephemeral):
“Cannot bootstrap bucket THEBUCKET as Couchbase. System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.
at System.Net.Security.SslStream.g__InternalFillHandshakeBufferAsync|187_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte reAuthenticationData, Boolean isApm)
at Couchbase.Core.IO.Connections.ConnectionFactory.CreateAndConnectAsync(IPEndPoint endPoint, HostEndpoint hostEndpoint, CancellationToken cancellationToken)
at Couchbase.Core.IO.Connections.ConnectionPoolBase.CreateConnectionAsync(CancellationToken cancellationToken)
at Couchbase.Core.IO.Connections.DataFlow.DataFlowConnectionPool.<>c__DisplayClass29_0.<g__StartConnection|0>d.MoveNext()
— End of stack trace from previous location —
at Couchbase.Core.IO.Connections.DataFlow.DataFlowConnectionPool.AddConnectionsAsync(Int32 count, CancellationToken cancellationToken)
at Couchbase.Core.IO.Connections.DataFlow.DataFlowConnectionPool.InitializeAsync(CancellationToken cancellationToken)
at Couchbase.Core.ClusterNode.InitializeAsync()
at Couchbase.Core.DI.ClusterNodeFactory.CreateAndConnectAsync(HostEndpoint endPoint, BucketType bucketType, NodeAdapter nodeAdapter, CancellationToken cancellationToken)
at Couchbase.Core.ClusterContext.CreateAndBootStrapBucketAsync(String name, HostEndpoint endpoint, BucketType type)
at Couchbase.Core.ClusterContext.GetOrCreateBucketAsync(String name)”
Unsure what differences in the environments/systems are causing the issue. Both setups are working fine with .Net Core 3.1 + SDK 3.2.4
Unsure if related/the same as this issue: .NETCore App 6 compatible