无法在AZURE上连接Redis服务器 [英] Unable to connect Redis Server on AZURE

查看:136
本文介绍了无法在AZURE上连接Redis服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team


我正在尝试连接到Redis缓存服务器,我写了以下一行来建立连接


  &NBSP; &NBSP;   private static Lazy< ConnectionMultiplexer> lazyConnection = new Lazy< ConnectionMultiplexer>(()=>

     {

       return ConnectionMultiplexer.Connect(Utils.Constants.RedisConnection);

    });
$


  &NBSP; &NBSP; &NBSP; public static ConnectionMultiplexer连接

  &NBSP; &NBSP; &NBSP; {

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; get {return lazyConnection.Value; }¥b $ b  &NBSP; &NBSP; &NBSP; }

收到以下错误消息 



无法连接到redis服务器;要创建断开连接的多路复用器,请禁用AbortOnConnectFail。 PING上的SocketFailure



我设置了SSL假,但没有运气!没有代理问题。感谢你的想法


问候


Kalyan


www.techbubbles.com

解决方案

@ Azuresupport指导改变  abort在连接字符串中将
值设置为false。然后出现以下新错误消息:


SocketFailure
on XXX.redis.cache.windows.net:6380/Subscription,origin: CheckForStaleConnection,input-buffer:0,outstanding:4,last-read:1s ago,last-write:1s ago,unanswered-write:1s ago,keep-alive:60s,pending:0,state:ConnectedEstablishing,last-heartbeat :never,
last-mbeat:-1s ago,global:1s ago,mgr:RecordConnectionFailed_ReportFailure,err:never


仅供参考 - 我使用的是基本价格等级缓存


问候


格利扬


Hi Team

I am trying to connect to Redis Cache Server, I have written the following line to establish the connection

       private static Lazy<ConnectionMultiplexer> lazyConnection = new Lazy<ConnectionMultiplexer>(() =>
        {
            return ConnectionMultiplexer.Connect(Utils.Constants.RedisConnection);
        });

        public static ConnectionMultiplexer Connection
        {
            get { return lazyConnection.Value; }
        }

getting the following error message 

It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. SocketFailure on PING

I have set SSL false but no luck!! no proxy issues. appreciate your thought on the same

regards

Kalyan

www.techbubbles.com

解决方案

@Azuresupport guided to change the abortConnect value to false in connection string. then following new error message was appearing

SocketFailure on XXX.redis.cache.windows.net:6380/Subscription, origin: CheckForStaleConnection, input-buffer:0, outstanding: 4, last-read: 1s ago, last-write: 1s ago, unanswered-write: 1s ago, keep-alive: 60s, pending:0, state: ConnectedEstablishing, last-heartbeat:never, last-mbeat: -1s ago, global: 1s ago, mgr:RecordConnectionFailed_ReportFailure, err: never

just FYI - I am using Basic price tier cache

regards

Kalyan


这篇关于无法在AZURE上连接Redis服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆