Redis logs null error
See original GitHub issueWe’re having issues with our redis setup, and I reached out to our cloud provider to get more info about it:
We often see this message in our logs:
2019-04-26 16:39:36 [APP/PROC/WEB/0] ERR RedisOplog - Connection to redis ended
2019-04-26 16:39:46 [APP/PROC/WEB/0] ERR RedisOplog - There was an error when re-connecting to redis {"delay":10000,"attempt":1,"error":null,"total_retry_time":0,"times_connected":12}
We only have 128 allowed concurrent connections, so I’m hoping there’s only 1 connection opened per host (we have <10 hosts connected to redis in total).
The answer from their tech support is the following:
“It seems that your application (“RedisOplog”) does not write out a proper error (“error”:null). It would be very helpful to get the detailed error message for the error you are getting. Can you check your application if there is more information available or more information that could be printed in case of an error?”
Any idea what could be causing this? Are lots of connections being opened from the same server? What about the null error?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:11 (9 by maintainers)
Top GitHub Comments
@edemaine We had this error all the time when we were using the original (i.e this repo). Here is what we discovered:
This is a serious issue as it means you missed important messages and reactivity is broken
We solved it by:
this.unblock
andMeteor.defer
. This is an artifact of the single-thread approach of Node. You have to return quickly from your functions to give Node the chance to read from RedisHope that helps
hmm, I just found this https://devcenter.heroku.com/articles/heroku-redis#timeout my DigitalOcean redis instance might have this timeout set.