#Issues running worker on 0.14.0

1 messages · Page 1 of 1 (latest)

night shadow
#

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

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
timber sapphireBOT
#

@night shadow, you just advanced to level 3!

frank maple
#

Hi @night shadow
Few questions:-

  1. Are you running novu in local machine or in VM like EC2
  2. If local, worker is running?
night shadow
#

@frank maple im running on VM.
both worker and api are running and connected to the same redis host

frank maple
#

hey @night shadow 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

night shadow
#

hey @frank maple 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...

night shadow
frank maple
night shadow
#

thanks @frank maple . I think i had some issues with the ports i was using but now everything is fine