Internal Error in ConnectionMultiplexer
Hey guys. I'm getting a internal error with my logging plugged into ConnectionMultiplexer.InternalError
System.NullReferenceException: Object reference not set to an instance of an object. at StackExchange.Redis.ConnectionMultiplexer.OnHeartbeat() in c:\TeamCity\buildAgent\work\58bc9a6df18a3782\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line 859
This is in an environment in AWS. I was having issues with the master dropping and the multiplexer not reestablishing the connection. I then upgraded from version 1.0.312 to 1.0.330 and started receiving these errors in the logs. When it's in this state it will still run commands against redis just fine. Any idea what's going on?
I just restarted the application and have more to add to this. It lost connection with the slave
redis connection failed on 10.70.128.158:6379:SocketClosed
then
redis configuration changed on 10.70.128.158:6379
Then it started doing the heartbeat failures described above.
Here are the logs from the slave. The disconnect happened at 3:57:42 AM UTC
Sep 4 03:42:40 ip-10-70-128-158 redis-6379[13128]: SLAVE OF 10.70.128.144:6379 enabled (user request) Sep 4 03:42:40 ip-10-70-128-158 redis-6379[13128]: CONFIG REWRITE executed with success. Sep 4 03:42:41 ip-10-70-128-158 redis-6379[13128]: Connecting to MASTER 10.70.128.144:6379 Sep 4 03:42:41 ip-10-70-128-158 redis-6379[13128]: MASTER <-> SLAVE sync started Sep 4 03:42:41 ip-10-70-128-158 redis-6379[13128]: Non blocking connect for SYNC fired the event. Sep 4 03:42:41 ip-10-70-128-158 redis-6379[13128]: Master replied to PING, replication can continue... Sep 4 03:42:41 ip-10-70-128-158 redis-6379[13128]: Partial resynchronization not possible (no cached master) Sep 4 03:42:41 ip-10-70-128-158 redis-6379[13128]: Full resync from master: 5877505a782505dcc71e82c4448217eccfac7b56:377734 Sep 4 03:42:41 ip-10-70-128-158 redis-6379[13128]: MASTER <-> SLAVE sync: receiving 20829 bytes from master Sep 4 03:42:41 ip-10-70-128-158 redis-6379[13128]: MASTER <-> SLAVE sync: Flushing old data Sep 4 03:42:41 ip-10-70-128-158 redis-6379[13128]: MASTER <-> SLAVE sync: Loading DB in memory Sep 4 03:42:41 ip-10-70-128-158 redis-6379[13128]: MASTER <-> SLAVE sync: Finished with success Sep 4 03:48:29 ip-10-70-128-158 redis-6379[13128]: 10 changes in 300 seconds. Saving... Sep 4 03:48:29 ip-10-70-128-158 redis-6379[13128]: Background saving started by pid 19328 Sep 4 03:48:29 ip-10-70-128-158 redis-6379[19328]: DB saved on disk Sep 4 03:48:29 ip-10-70-128-158 redis-6379[19328]: RDB: 4 MB of memory used by copy-on-write Sep 4 03:48:29 ip-10-70-128-158 redis-6379[13128]: Background saving terminated with success Sep 4 03:49:25 ip-10-70-128-158 dhclient: DHCPREQUEST of 10.70.128.158 on eth0 to 10.70.128.129 port 67 (xid=0x560cbd94) Sep 4 03:49:25 ip-10-70-128-158 dhclient: DHCPACK of 10.70.128.158 from 10.70.128.129 Sep 4 03:49:25 ip-10-70-128-158 dhclient: bound to 10.70.128.158 -- renewal in 1526 seconds. Sep 4 03:53:30 ip-10-70-128-158 redis-6379[13128]: 10 changes in 300 seconds. Saving... Sep 4 03:53:30 ip-10-70-128-158 redis-6379[13128]: Background saving started by pid 19340 Sep 4 03:53:30 ip-10-70-128-158 redis-6379[19340]: DB saved on disk Sep 4 03:53:30 ip-10-70-128-158 redis-6379[19340]: RDB: 4 MB of memory used by copy-on-write Sep 4 03:53:30 ip-10-70-128-158 redis-6379[13128]: Background saving terminated with success Sep 4 03:57:43 ip-10-70-128-158 redis-6379[13128]: Connection with master lost. Sep 4 03:57:43 ip-10-70-128-158 redis-6379[13128]: Caching the disconnected master state. Sep 4 03:57:43 ip-10-70-128-158 redis-6379[13128]: Discarding previously cached master state. Sep 4 03:57:43 ip-10-70-128-158 redis-6379[13128]: SLAVE OF 127.0.0.1:6379 enabled (user request) Sep 4 03:57:43 ip-10-70-128-158 redis-6379[13128]: CONFIG REWRITE executed with success. Sep 4 03:57:44 ip-10-70-128-158 redis-6379[13128]: Connecting to MASTER 127.0.0.1:6379 Sep 4 03:57:44 ip-10-70-128-158 redis-6379[13128]: MASTER <-> SLAVE sync started Sep 4 03:57:44 ip-10-70-128-158 redis-6379[13128]: Non blocking connect for SYNC fired the event. Sep 4 03:57:44 ip-10-70-128-158 redis-6379[13128]: Master replied to PING, replication can continue... Sep 4 03:57:49 ip-10-70-128-158 redis-6379[13128]: (Non critical) Master does not understand REPLCONF listening-port: -Reading from master: Connection timed out Sep 4 03:57:49 ip-10-70-128-158 redis-6379[13128]: Partial resynchronization not possible (no cached master) Sep 4 03:57:54 ip-10-70-128-158 redis-6379[13128]: Unexpected reply to PSYNC from master: -Reading from master: Connection timed out Sep 4 03:57:54 ip-10-70-128-158 redis-6379[13128]: Retrying with SYNC...
Potentially related to #82 as it causes the serverSnapshot array to have null values
Yup. It sounds like this is the same issue.
K, will take a look On 4 Sep 2014 04:30, "annymsMthd" [email protected] wrote:
Hey guys. I'm getting a internal error with my logging plugged into ConnectionMultiplexer.InternalError
System.NullReferenceException: Object reference not set to an instance of an object. at StackExchange.Redis.ConnectionMultiplexer.OnHeartbeat() in c:\TeamCity\buildAgent\work\58bc9a6df18a3782\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line 859
This is in an environment in AWS. I was having issues with the master dropping and the multiplexer not reestablishing the connection. I then upgraded from version 1.0.312 to 1.0.330 and started receiving these errors in the logs. When it's in this state it will still run commands against redis just fine. Any idea what's going on?
— Reply to this email directly or view it on GitHub https://github.com/StackExchange/StackExchange.Redis/issues/86.
I believe this is fixed now by https://github.com/StackExchange/StackExchange.Redis/commit/ecb9e3fef95e4cd853a517bbca3c053a1375cbc7
Urgent----------------------Urgent-------
Looking for Help
Urgent----------------------------------------------------------------------------
Error, TagType=InfoTagModule=APPERROR$$$CRITICAL - APPERROR - Application_Error event - ErrorDetails - * VP Error Report : Error: Timeout performing EVAL, inst: 0, mgr: ExecuteSelect, err: never, queue: 49, qu: 48, qs: 1, qc: 0, wr: 1, wq: 1, in: 0, ar: 0, IOCP: (Busy=0,Free=1000,Min=36,Max=1000), WORKER:(Busy=52,Free=32715,Min=36,Max=32767), clientName: ************
Source: StackExchange.Redis.StrongName Stack Trace: at StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl[T](Message message, ResultProcessor1 processor, ServerEndPoint server) at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor1 processor, ServerEndPoint server) at StackExchange.Redis.RedisDatabase.ScriptEvaluate(String script, RedisKey[] keys, RedisValue[] values, CommandFlags flags) at Microsoft.Web.Redis.StackExchangeClientConnection.<>c__DisplayClass4.1 redisOperation) at Microsoft.Web.Redis.StackExchangeClientConnection.RetryLogic(Func1 redisOperation) at Microsoft.Web.Redis.StackExchangeClientConnection.Eval(String script, String[] keyArgs, Object[] valueArgs) at Microsoft.Web.Redis.RedisConnectionWrapper.TryUpdateAndReleaseLockIfLockIdMatch(Object lockId, ISessionStateItemCollection data, Int32 sessionTimeout) at Microsoft.Web.Redis.RedisSessionStateProvider.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) at System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) UserSession Items:User Key: 0 Currency Key: 3 Basket Key: 1454212 Date: 11 December 2015 Time: 05:30:24 URL: /CheckoutStep1.aspx File: /
Urgent----------------------Urgent------- Looking for Help Urgent----------------------------------------------------------------------------