C# Library StackExchange.Redis Missing IPv6 Support
See original GitHub issueC# library StackExchange.Redis
for demo service cartservice
can not support IPv6. Below are some detail information:
All microservice pods are running well, except cartservice
$ kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
adservice-744f87d6bd-m5qgl 1/1 Running 0 84s 2001:db8:1234:5678:8:2:4f:a012 zhlsunshine <none> <none>
cartservice-cfbf8d6f-f5xtw 0/1 CrashLoopBackOff 3 (27s ago) 85s 2001:db8:1234:5678:8:2:4f:a017 zhlsunshine <none> <none>
checkoutservice-6b4b4f77f4-nw5js 1/1 Running 0 85s 2001:db8:1234:5678:8:2:4f:a01b zhlsunshine <none> <none>
currencyservice-f6d848d9d-ccvkp 1/1 Running 0 84s 2001:db8:1234:5678:8:2:4f:a011 zhlsunshine <none> <none>
emailservice-6f56fbcd98-kghvd 1/1 Running 0 85s 2001:db8:1234:5678:8:2:4f:a00c zhlsunshine <none> <none>
frontend-df498668b-8mcl9 1/1 Running 0 85s 2001:db8:1234:5678:8:2:4f:a010 zhlsunshine <none> <none>
loadgenerator-5544bc469c-c6vx6 1/1 Running 0 85s 2001:db8:1234:5678:8:2:4f:a01a zhlsunshine <none> <none>
paymentservice-597b54dcbb-xmng8 1/1 Running 0 85s 2001:db8:1234:5678:8:2:4f:a00a zhlsunshine <none> <none>
productcatalogservice-5f7ff554c8-5slcb 1/1 Running 0 85s 2001:db8:1234:5678:8:2:4f:a015 zhlsunshine <none> <none>
recommendationservice-68599c67cb-kfh8j 1/1 Running 0 85s 2001:db8:1234:5678:8:2:4f:a013 zhlsunshine <none> <none>
redis-cart-757f95b597-8ftts 1/1 Running 0 84s 2001:db8:1234:5678:8:2:4f:a014 zhlsunshine <none> <none>
redis-cli-547c68d454-kmwfs 1/1 Running 0 106m 2001:db8:1234:5678:8:2:4f:a0e6 zhlsunshine <none> <none>
shippingservice-6565786ccd-qggnb 1/1 Running 0 84s 2001:db8:1234:5678:8:2:4f:a019 zhlsunshine <none> <none>
sleep-557747455f-l7mw4 1/1 Running 0 20h 2001:db8:1234:5678:8:2:4f:a06d zhlsunshine <none> <none>
And error logs shows as below:
$ kubectl logs cartservice-cfbf8d6f-f5xtw
Connecting to Redis: redis-cart:6379,ssl=false,allowAdmin=true,abortConnect=false
Wasn't able to connect to redis
Unhandled exception. System.ApplicationException: Wasn't able to connect to redis
at cartservice.cartstore.RedisCartStore.EnsureRedisConnected()
at cartservice.cartstore.RedisCartStore.InitializeAsync()
at cartservice.Startup.ConfigureServices(IServiceCollection services)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass13_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services)
at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at <Program>$.<Main>$(String[] args)
After my investigation, this was caused by C# library of StackExchange.Redis which can not support IPv6. However, I also notice that there is a repo for IPv6: https://www.nuget.org/packages/StackExchange.Redis.IPv6/, however, unfortunately, it does not work. So I new this issue, and hope anyone can help to handle this, thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Configuration | StackExchange.Redis
We run this command to verify that we have a valid connection to the Redis service. Because there are lots of different ways...
Read more >StackExchange.Redis.IPv6 2.2.15 - NuGet
High performance Redis client, incorporating both synchronous and asynchronous usage.
Read more >sitemap-questions-1.xml - Unix Stack Exchange
https://unix.stackexchange.com/questions/631805/how-to-hold-package-from- ... -does-the-netbsd-system-call-manual-mention-the-standard-c-library 2021-01-16 ...
Read more >Newest 'ipv6' Questions - Page 5 - Stack Overflow
I'm trying to convert a HEX value (ipv6 address, expanded) to a BIGINT value on SQL Server 2019. Input is: 2a0085c0000100000000000002410023 Expected output: ......
Read more >Cloud SQL error messages
(gcloud.sql.connect) It seems your client does not have ipv6 connectivity and the ... The project could be missing the Service Networking service account...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, the interface binding makes sense. I think the patches would be appreciated if there’s an easy fix.
JFYI: the issue is still here as per: https://github.com/GoogleCloudPlatform/microservices-demo/pull/1340#issuecomment-1335303056. Reopening it in order to better track it alongside: https://github.com/GoogleCloudPlatform/microservices-demo/issues/1221.