N
Novu14mo ago
Evkhim

new relic app name

I have deployed novu to azure kubernetes cluster but the api pod is stuck in a restart loop and the issue is its asking me to set the NEW_RELIC_APP_NAME but I don't know what this is or where to set it.
26 Replies
Evkhim
EvkhimOP14mo ago
i get this error New Relic for Node.js was unable to bootstrap itself due to an error: Error: New Relic requires that you name this application! Set app_name in your newrelic.js or newrelic.cjs file or set environment variable NEW_RELIC_APP_NAME. Not starting! I have set the name in .env.production and .env.development and also set enabled to false in both
Tomer Barnea
Tomer Barnea14mo ago
Hey @Evkhim ! @Pawan Jain can you help us here?
Pawan Jain
Pawan Jain14mo ago
Hi @Evkhim Can you try with this value [DEV] - api
Evkhim
EvkhimOP14mo ago
@jainpawan21 hello where do i set this value?
Pawan Jain
Pawan Jain14mo ago
This value should be used in api service env file
Evkhim
EvkhimOP14mo ago
service.yaml?
No description
Evkhim
EvkhimOP14mo ago
@jainpawan21 these are all of the occurrences of NEW_RELIC_APP_NAME
No description
Pawan Jain
Pawan Jain14mo ago
@zacclifton could you please help us here?
Zac Clifton
Zac Clifton14mo ago
As far as I am aware, that this warning is just the dependency saying its does not have the key. Is this effecting something in your deployment?
Evkhim
EvkhimOP14mo ago
this is the logs from the api pod
No description
Novu_Bot
Novu_Bot14mo ago
@Evkhim, you just advanced to level 1!
Zac Clifton
Zac Clifton14mo ago
The error that is preventing startup is the missing environment variables for the object storage. The new relic one is just a warning.
Evkhim
EvkhimOP14mo ago
is there a global setting I can use to disable s3 and aws?
Zac Clifton
Zac Clifton14mo ago
Unfortunately, no. Object storage is required by Novu to store notfication attachements. You can alternatively use gcp storeage or azure blob
Evkhim
EvkhimOP14mo ago
ok so I can remove all references to s3 and aws and replace with STORAGE_SERVICE: Name of the storage service to use, ‘AZURE’ Azure Blob. AZURE_CONTAINER_NAME: The name of the container in your Azure Storage account that you wish to use for your blob storage. AZURE_ACCOUNT_NAME: The name of your Azure Storage account. This is used to form the URL at which your blob storage is accessible. AZURE_ACCOUNT_KEY: The access key for your Azure Storage account. This is used to authenticate requests made against your blob storage. AZURE_HOST_NAME: The host name of your Azure Storage account . This is used to form the URL at which your blob storage is accessible. Ref.
Zac Clifton
Zac Clifton14mo ago
Yes and STORAGE_SERVICE: Name of the storage service to use, ‘AZURE’ Azure Blob. https://docs.novu.co/self-hosting-novu/object-storage#azure-blob-storage-configuration
Novu
Object Storage (S3, Blob, GCS) - Novu
Using S3 as a storage backend for your application
Evkhim
EvkhimOP14mo ago
i am still getting the same error and i only have these occurrences of AWS and none for S3
No description
No description
Zac Clifton
Zac Clifton14mo ago
Are you using localstack or minio in your cluster?
Evkhim
EvkhimOP14mo ago
sorry this is all new to me I am deploying to an azure kubernetes service using the helm install command
Zac Clifton
Zac Clifton14mo ago
What is your plan for object storage for your novu deployment? There is https://artifacthub.io/packages/helm/bitnami/minio that you can run in the cluster or you can just leverage azure blob storage
Evkhim
EvkhimOP14mo ago
blob storage is there a guide available for deploying novu to azure?
Zac Clifton
Zac Clifton14mo ago
We do not have a guide for the community on how to deploy to azure at this time
Tomer Barnea
Tomer Barnea14mo ago
@Evkhim if it's relevant to you I am happy to jump on a call and learn more about this, not sure if I can help, but happy to try
Evkhim
EvkhimOP14mo ago
that is a shame it may not be the product for us then thanks for the help I am willing to accept any help I can as our team has Novu as there number 1 choice having used it locally as part of our new stack POC
Novu_Bot
Novu_Bot14mo ago
@Evkhim, you just advanced to level 2!
Dima Grossman
Dima Grossman14mo ago
Hi @Evkhim please feel free to schedule a call here: https://calendly.com/dima-grossman/30min as mentioned previously we don't have an official azure guide, but I can help with the initial setup. The only main different should be is to pass the azure storage env variables instead of AWS ones. We also have an azure terraform setup for our ee license deployment, so might be able to take some assets from there if applicable to what you are trying to achieve.

Did you find this page helpful?