I am using the self deployed Novu, even though if I trigger event.
Activity feed is always empty
37 Replies
@madhu Did you check if worker is running?
Will check with platform team and let you know on this @Pawan Jain
Getting error in worker pod
some issue with license key : Selected Log Transport None
New Relic for Node.js halted startup due to an error:
Error: Not starting without license key!
at onNextTick (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/newrelic/lib/agent.js:245:16)
at processTicksAndRejections (node:internal/process/task_queues:78:11)
New Relic for Node.js halted startup due to an error:
Error: Not starting without license key!
@Pawan Jain is it mandatory new relic config?
no newrelic is not mandatory
How to ignore it
@Pawan Jain any update on disabling new relic?
@madhu were you able to solve this?
Hi! I'm having the same issue since last weekend. When I create a trigger, the response is correct, I get the transactionId, status is processed, but then nothing is sent (no email, no in app notification) and the activity feed is empty, no errors, nothing. I also have @madhu error in the worker logs. Any idea? I have a demo tomorrow and this was working fine last week. π¦ thanks
You can disable it from here https://github.com/novuhq/novu/blob/next/apps/api/src/.env.development
Set
NEW_RELIC_ENABLED
to false
You can also set this NEW_RELIC_APPLICATION_LOGGING_FORWARDING_ENABLED
to false
What email provider did you enable?I'm using only a Custom SMTP and the In-App providers. The providers are working fine because if I trigger the workflow from the novu web app, everything works fine. But If I trigger the event from the API, then the workflow is not activated.
It feels like your workers are not running. So they canβt pick any jobs up to process
Are you getting any worker errors
The same errors as madhu, about the license for the relic application. I'm gonna try to add the environment variable you mention before to disable it to see what happen. Thanks
Should I add this env variables in the docker-compose file to the api service, to the worker service, or both?
@aegeavaz, you just advanced to level 1!
API service
Nothing... π¦ same error. And nothing in the activity feed.
this is the worker logs
@Pawan Jain Do you have an idea why this might not be working?
Hi. I have been doing some testing and I have created a New Relic account and setup the license key in the env variables. So now I don't have any error in the worker service, but still, I'm not getting any activity when I trigger an event with the API. In the api logs everything looks fine:
[08:04:07.772] INFO (16): Starting Trigger
[08:04:07.780] INFO (16): TriggerQueueService.add: ebd2d627-4dbd-4d0e-b7d2-aea22f85c24c Group: 64afb0887fb59a54e65195bb
And the response is good: {'data': {'acknowledged': True, 'status': 'processed', 'transactionId': 'ebd2d627-4dbd-4d0e-b7d2-aea22f85c24c'}}
So, it looks like the issue is not related with the Relic error. Could you help me to identify where this trigger gets lost? Thanks
Did you check your activity feed again now? because that response means it was successful and there should be a log in the activity feed in your dashboard
Yeah, I'm cheking all the time π
But I don't see anything, and its driving me crazy. π
Is there data in your db?
Yeah. There is data because I have the activity feed of the last week (that was working fine) and the manually trigger that I did yesterday from the novu web app. But I don't get any new activity feed for the triggers that I start from the API
I mean is there data in your local db for the activities you did this week from your local. Because the novu web app's db is different
Also, I want to assume, your api and worker services are both running without any error logs. Is that correct?
I'm gonna check the db. API and worker services are running without errors.
@Zac Clifton Do you have any idea what could be wrong here?
could you please tell me which collection in mongo db should I query?
Jobs, Notifications, triggers and messages
Just fyi, have you tested other emails?
No data at all in Jobs, Notifications and Messages collections for the triggers created with the API call. I don't have a "triggers" collections. What do you mean with other emails?
@aegeavaz, you just advanced to level 2!
I mean have you tested with other email examples? For example other gmail addresses
Yes. I have tried. But... why the email of the subscriber could make the trigger working or not?
I think you might need to switch your email provider just to test if there's something wrong with the custom smtp config
@aegeavaz If test trigger from web-app is working then novu is correctly setup and working
As suggested by @unicodeveloper could you please check with another email provider?
Ok, I could try, but it doesn't makes too much sense for me... I mean, if I have a workflow trigger configured with two channels (email and in-app), and I'm triggering the workflow with an API call, the response of the API is fine, and there is a problem with the email provider, I would expect to see in the activity feed an entry with that workflow trigger and maybe an error in the email channel, but the problem is that I don't see any activity feed for the workflow trigger.
I would expect something like this...
I have created another test workflow with only the in-app channel, and same problem. API call is fine, I get a response from the API call, but the workflow doesn't get activated.
Are you using this with Docker or without Docker?
This is hard to debug because self-hosted has so many reasons why certain things might not work that has nothing to do with the product code/config itself
I found the problem!!!! Oh my god... π In the API call I was sending the subscriberId as an integer, after converting it to a string, everything works as expected. Ok, it was my fault, but a little bit of improvement in the API payload validation would be great. π
Thanks guys for your support.