balance
balance
Explore posts from servers
NNovu
Created by balance on 9/19/2023 in #💬│support
Deployment via Kubernetes on AWS EKS
Hello, I'm not the most knowledgeable when it comes to Kubernetes. Here's what I did: 1. Created cluster on EKS 2. Downloaded the kubeconfig 3. Switched to the context that points towards my cluster I just created on EKS 4. git clone <novu-repo> 5. cd docker/kubernetes/helm 6. Tried to install the Chart.yaml file:
helm install novu-test . Error: INSTALLATION FAILED: An error occurred while checking for chart dependencies. You may need to run helm dependency build to fetch missing dependencies: found in Chart.yaml, but missing in charts/ directory: redis, mongodb, common, localstack
Was a bit confused to see this error, my experience is too low to really judge this. 7. rm Chat.yaml 8. helm dependency build -> ok 9. Retried installation:
helm install novu-test . Error: INSTALLATION FAILED: template: novu/templates/web/deployment.yaml:96:38: executing "novu/templates/web/deployment.yaml" at <.Values.web.env.NODE_ENV>: nil pointer evaluating interface {}.NODE_ENV
10. Inspct values.yaml -> has no web.env.NODE_ENV -> error makes sense So what do I do now? Why is the env var missing? Edit: I also tried to check out a specific verison: git checkout v0.19.0 but still, same issue.
5 replies
NNovu
Created by balance on 9/5/2023 in #💬│support
Can't init session widget and LaunchDarkly after Migration from 0.9.0 -> 0.18.0
Hello everyone, so I was tasked with the great quest to migrate from 0.9.0 to 0.18.0 and it seems, I mostly got it working. It's a bit hard to judge for me, since I'm rather unfamiliar with Novu. I host it using docker compose, at least locally. Nothing's deployed yet. When I surf around the localhost:4200 dashboard, I see the following "HTTP errors". 1. POST http://localhost:3000/v1/widgets/session/initialize => 404 (several times) LaunchDarkly The following seem all to be related. I guess since there is no env/client-side ID specified, everything else doesn't work but I have no idea how I do specify one. 2. [LaunchDarkly] No environment/client-side ID was specified. Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initializing-the-client for instructions on SDK initialization. 3. GET https://app.launchdarkly.com/sdk/goals/undefined => 404 (note the undefined) 4.(this is related to 3.) XML Parsing Error: no root element found Location: https://app.launchdarkly.com/sdk/goals/undefined Line Number 1, Column 1: 5. [LaunchDarkly] Environment not found. Double check that you specified a valid environment/client-side ID. Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initializing-the-client for instructions on SDK initialization.
2 replies
NNovu
Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
Hi, I'm currently running novu locally using docker compose. I set up a basic workflow that sends a push notification. I set up the FCM provider. I then use the following script to send a notification:
// Set device token for push
const { Novu, PushProviderIdEnum } = require('@novu/node');

const config = {
backendUrl: 'http://localhost:3000',
};

const novu = new Novu(NOVU_API_KEY, config);

// Only run once at the start
//novu.subscribers.setCredentials(SUBSCRIBER_ID, PushProviderIdEnum.FCM, {
// deviceTokens: [DEVICE_TOKEN],
//}).then((res) => { console.log("Set device token successfully."); }).catch((error) => { console.log(error); })

// Send a push notification
novu.trigger(WORKFLOW_ID, {
to: {
subscriberId: SUBSCRIBER_ID,
},
payload: {
"message": "hi"
},
});
// Set device token for push
const { Novu, PushProviderIdEnum } = require('@novu/node');

const config = {
backendUrl: 'http://localhost:3000',
};

const novu = new Novu(NOVU_API_KEY, config);

// Only run once at the start
//novu.subscribers.setCredentials(SUBSCRIBER_ID, PushProviderIdEnum.FCM, {
// deviceTokens: [DEVICE_TOKEN],
//}).then((res) => { console.log("Set device token successfully."); }).catch((error) => { console.log(error); })

// Send a push notification
novu.trigger(WORKFLOW_ID, {
to: {
subscriberId: SUBSCRIBER_ID,
},
payload: {
"message": "hi"
},
});
I downloaded the FCM toolbox app from the play store, which gives me a device token. So I can test things without having to code an app for it. If I now run my script, I see the notification in the acitvity monitor but it tells me, that there is an unexpected provider error. The details are just {}. How should I debug this? Also see https://i.imgur.com/L2TAYTu.png
27 replies
NNovu
Created by balance on 7/25/2023 in #💬│support
Migrate data from 0.9.0 -> latest
Hello, so I have a server running a fork of novu: This branch is 5 commits ahead, 6465 commits behind novuhq:next. I have to install novu using the latest images and basically kill the fork but I have to migrate the database. I think the fork is at 0.9.0. Now what's the best approach to upgrade to latest? I figured I just set up 0.9.0 again, then migrate the data and then just take one 0.x.0 version at a time?
2 replies
NNovu
Created by balance on 12/6/2022 in #💬│support
Why do we copy the env file?
# Get the code
git clone --depth 1 https://github.com/novuhq/novu

# Go to the docker folder
cd novu/docker

# Copy the example env file
cp .env.example ./local/deployment/.env

# Start Novu
docker-compose -f ./local/deployment/docker-compose.yml up
# Get the code
git clone --depth 1 https://github.com/novuhq/novu

# Go to the docker folder
cd novu/docker

# Copy the example env file
cp .env.example ./local/deployment/.env

# Start Novu
docker-compose -f ./local/deployment/docker-compose.yml up
What's the point of copying the env file?
18 replies