N
Novuβ€’8mo ago
madhu

I am using the self deployed Novu, even though if I trigger event.

Activity feed is always empty
37 Replies
Pawan Jain
Pawan Jainβ€’8mo ago
@madhu Did you check if worker is running?
madhu
madhuβ€’8mo ago
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/newrelic@9.13.0/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?
Pawan Jain
Pawan Jainβ€’8mo ago
no newrelic is not mandatory
madhu
madhuβ€’8mo ago
How to ignore it
RG
RGβ€’8mo ago
@Pawan Jain any update on disabling new relic? @madhu were you able to solve this?
aegeavaz
aegeavazβ€’8mo ago
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
Prosper
Prosperβ€’8mo ago
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?
aegeavaz
aegeavazβ€’8mo ago
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.
Prosper
Prosperβ€’8mo ago
It feels like your workers are not running. So they can’t pick any jobs up to process Are you getting any worker errors
aegeavaz
aegeavazβ€’8mo ago
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?
Novu_Bot
Novu_Botβ€’8mo ago
@aegeavaz, you just advanced to level 1!
Prosper
Prosperβ€’8mo ago
API service
aegeavaz
aegeavazβ€’8mo ago
Nothing... 😦 same error. And nothing in the activity feed.
aegeavaz
aegeavazβ€’8mo ago
this is the worker logs
Prosper
Prosperβ€’8mo ago
@Pawan Jain Do you have an idea why this might not be working?
aegeavaz
aegeavazβ€’8mo ago
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
Prosper
Prosperβ€’8mo ago
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
aegeavaz
aegeavazβ€’8mo ago
Yeah, I'm cheking all the time πŸ˜„ But I don't see anything, and its driving me crazy. πŸ˜„
Prosper
Prosperβ€’8mo ago
Is there data in your db?
aegeavaz
aegeavazβ€’8mo ago
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
No description
Prosper
Prosperβ€’8mo ago
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?
aegeavaz
aegeavazβ€’8mo ago
I'm gonna check the db. API and worker services are running without errors.
Prosper
Prosperβ€’8mo ago
@Zac Clifton Do you have any idea what could be wrong here?
aegeavaz
aegeavazβ€’8mo ago
could you please tell me which collection in mongo db should I query?
Prosper
Prosperβ€’8mo ago
Jobs, Notifications, triggers and messages Just fyi, have you tested other emails?
aegeavaz
aegeavazβ€’8mo ago
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?
Novu_Bot
Novu_Botβ€’8mo ago
@aegeavaz, you just advanced to level 2!
Prosper
Prosperβ€’8mo ago
I mean have you tested with other email examples? For example other gmail addresses
aegeavaz
aegeavazβ€’8mo ago
Yes. I have tried. But... why the email of the subscriber could make the trigger working or not?
Prosper
Prosperβ€’8mo ago
I think you might need to switch your email provider just to test if there's something wrong with the custom smtp config
Pawan Jain
Pawan Jainβ€’8mo ago
@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?
aegeavaz
aegeavazβ€’8mo ago
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.
aegeavaz
aegeavazβ€’8mo ago
No description
aegeavaz
aegeavazβ€’8mo ago
I would expect something like this...
No description
aegeavaz
aegeavazβ€’8mo ago
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.
Prosper
Prosperβ€’8mo ago
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
aegeavaz
aegeavazβ€’8mo ago
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.