N
Novu•2y ago
AndreLuizsgf

Issues running worker on 0.14.0

Hey guys, im trying to run novu on 0.14.0 but somehow all triggered events are not being sent. When i look into the api logs it looks like everything is okay, but the worker is not doing anything. Could anyone help me? api logs: 2023-05-17T14:50:15-03:00 {"level":30,"time":1684345815507,"pid":17,"serviceName":"@novu/api","serviceVersion":"0.14.0","platform":"Docker","tenant":"OS","req":{"id":18208,"method":"POST","url":"/api/v1/events/trigger","query":{},"params":{"0":"events/trigger"},"headers":{"host":"novu.xxx.xxx","connection":"keep-alive","x-forwarded-for":"xxx, xxxx","x-forwarded-proto":"http","x-forwarded-host":"novu.xxx.xxx","x-forwarded-port":"xx","x-forwarded-path":"/api/v1/events/trigger","x-real-ip":"xxxx","content-length":"704","x-amzn-trace-id":"Root=1-646513d7-7924d5953d124ff82e4a6156","accept":"application/json, text/plain, */*","content-type":"application/json","user-agent":"axios/1.2.0","accept-encoding":"gzip, deflate, br","x-correlation-id":"d5538813-74dc-45b0-8d14-077cb376e943"},"remoteAddress":"::ffff:10.2.21.129","remotePort":41728},"userId":"635107bba2ee3de4f3c4945b","environmentId":"635107c3a2ee3de4f3c4946a","organizationId":"635107c2a2ee3de4f3c49464","msg":"TriggerQueueService.add: 3267f947-4da9-47c8-984f-9c5d5be5ead0 Group: 635107c2a2ee3de4f3c49464"} worker envvars:
IN_MEMORY_CLUSTER_MODE_ENABLED : false
MAX_NOVU_INTEGRATION_MAIL_REQUESTS : 300
NODE_ENV : dev
PORT : 3004
REDIS_CACHE_ENABLE_AUTOPIPELINING : true
REDIS_CACHE_SERVICE_HOST : host
REDIS_CACHE_SERVICE_PORT : 6379
REDIS_CLUSTER_SERVICE_HOST : host
REDIS_CLUSTER_SERVICE_PORTS : [6379]
REDIS_DB_INDEX : 2
REDIS_HOST : host
REDIS_PORT : 6379
MONGO_URL : MONGO_URL
REDIS_DB_INDEX : 2
REDIS_HOST : host
REDIS_PORT : 6379
IN_MEMORY_CLUSTER_MODE_ENABLED : false
MAX_NOVU_INTEGRATION_MAIL_REQUESTS : 300
NODE_ENV : dev
PORT : 3004
REDIS_CACHE_ENABLE_AUTOPIPELINING : true
REDIS_CACHE_SERVICE_HOST : host
REDIS_CACHE_SERVICE_PORT : 6379
REDIS_CLUSTER_SERVICE_HOST : host
REDIS_CLUSTER_SERVICE_PORTS : [6379]
REDIS_DB_INDEX : 2
REDIS_HOST : host
REDIS_PORT : 6379
MONGO_URL : MONGO_URL
REDIS_DB_INDEX : 2
REDIS_HOST : host
REDIS_PORT : 6379
api envvars:
FRONT_BASE_URL : http://novu....
REDIS_CACHE_SERVICE_HOST : REDIS_HOST
REDIS_CACHE_SERVICE_PORT : 6379
MONGO_URL : MONGO_URL
NODE_ENV : dev
REDIS_DB_INDEX : 2
REDIS_HOST : REDIS_HOST
REDIS_PORT : 6379
FRONT_BASE_URL : http://novu....
REDIS_CACHE_SERVICE_HOST : REDIS_HOST
REDIS_CACHE_SERVICE_PORT : 6379
MONGO_URL : MONGO_URL
NODE_ENV : dev
REDIS_DB_INDEX : 2
REDIS_HOST : REDIS_HOST
REDIS_PORT : 6379
7 Replies
Novu_Bot
Novu_Bot•2y ago
@andreluizsgf, you just advanced to level 3!
Pawan Jain
Pawan Jain•2y ago
Hi @andreluizsgf Few questions:- 1. Are you running novu in local machine or in VM like EC2 2. If local, worker is running?
AndreLuizsgf
AndreLuizsgfOP•2y ago
@Pawan Jain im running on VM. both worker and api are running and connected to the same redis host
Pawan Jain
Pawan Jain•2y ago
hey @andreluizsgf is this still not working for you? are you using docker to deploy novu? If yes, why are you using separate env files for each app/package
AndreLuizsgf
AndreLuizsgfOP•2y ago
hey @Pawan Jain yes. I deploy the images separately on k8s. Currently i just use novu api/web/ws and each of them have its own deployment, kustomization, configmaps... yes, still not working. 🥲
Pawan Jain
Pawan Jain•2y ago
Hi @andreluizsgf Apologies, I have very little knowledge of K8s Someone from community added kustomize https://github.com/novuhq/novu/tree/next/docker/kubernetes/kustomize
AndreLuizsgf
AndreLuizsgfOP•2y ago
thanks @Pawan Jain . I think i had some issues with the ports i was using but now everything is fine i updated to 0.15.0. Thanks a lot
Want results from more Discord servers?
Add your server