Failed to refresh slots cache.

I changed redis server and get {"level":50,"time":1685629699169,"pid":17,"serviceName":"@novu/worker","serviceVersion":"0.15.0","platform":"Docker","tenant":"OS","context":"InMemoryCluster","err":{"type":"ClusterAllFailedError","message":"Failed to refresh slots cache.","stack":"ClusterAllFailedError: Failed to refresh slots cache.\n at tryNode (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/ioredis/built/cluster/index.js:308:31)\n at /usr/src/app/node_modules/.pnpm/[email protected]/node_modules/ioredis/built/cluster/index.js:325:21\n at /usr/src/app/node_modules/.pnpm/[email protected]/node_modules/ioredis/built/cluster/index.js:662:24\n at run (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/ioredis/built/utils/index.js:117:22)\n at tryCatcher (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/standard-as-callback/built/utils.js:12:23)\n at /usr/src/app/node_modules/.pnpm/[email protected]/node_modules/standard-as-callback/built/index.js:33:51\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)","lastNodeError":{"type":"Error","message":"Connection is closed.","stack":"Error: Connection is closed.\n at close (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/ioredis/built/redis/event_handler.js:189:25)\n at Socket.<anonymous> (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/ioredis/built/redis/event_handler.js:160:20)\n at Object.onceWrapper (node:events:628:26)\n at Socket.emit (node:events:513:28)\n at Socket.emit (node:domain:489:12)\n at TCP.<anonymous> (node:net:301:12)\n at TCP.callbackTrampoline (node:internal/async_hooks:130:17)"}},"msg":"Failed to refresh slots cache."}
10 Replies
Andrei Statov
Andrei StatovOP2y ago
In redis db there is some keys
empe
empe2y ago
@andreistatov still facing the issue? It looks like there could be an issue with the Redis server connection. One possible solution is to check the Redis configuration and ensure that it is properly set up. If the Redis connection is not the issue or if you need further assistance, please clarify the context and provide additional details about your setup.
Dima Grossman
Dima Grossman2y ago
Also another small question @andreistatov are you using a sharded redis cluster or a single instance?
Andrei Statov
Andrei StatovOP2y ago
yes
Novu_Bot
Novu_Bot2y ago
@andreistatov, you just advanced to level 1!
Andrei Statov
Andrei StatovOP2y ago
https://github.com/novuhq/novu/pull/3555 i added mongodb for k8s to reproduce the error you need to do kubectl kustomize ./kubernetes/kustomize | kubectl apply -f - and look at logs by command kubectl logs -l owner=novu -n novu -f
GitHub
add mongodb by anragen · Pull Request #3555 · novuhq/novu
What change does this PR introduce? add mongodb Why was this change needed? We don't have mongodb on kubernetes
Andrei Statov
Andrei StatovOP2y ago
get an error only when i set NODE_ENV=dev If you set NODE_ENV=local there is no issue
empe
empe2y ago
@andreistatov Is this resolved?
Andrei Statov
Andrei StatovOP2y ago
Yes, i have set NODE_ENV=production
empe
empe2y ago
Amazing!
Want results from more Discord servers?
Add your server