N
Novu•2w ago
olivemonk

Need help in resolving some issues with self hosted local deployment of Novu.

Hello everyone, I'm new here, I wanted to deploy and run novu locally and I followed the self host guide, and it some what worked I had some question and issues: 1. in this we are using Mongo DB, can we use any other DB of our choice(most likely Dynamo DB) and if yes then do we need to make a lot of changes or it can be done with minimal efforts. 2. whenever we run npx novu@latest dev --port 4000 command it spins up Tunnel, Studio, Dashboard & Endpoint and gives us the different urls for these, I wanted to know after some time whenever I try to trigger a notification using a Nextjs frontend with some delay(like 5-10 min) after running the above command, the tunnel connection don't work i need to re-run the above command again and then it start working, can you please explain why this is happening. error that i get :
Error triggering notification: Unknown BridgeError: {
"code": "TunnelNotFound",
"statusCode": 404,
"timestamp": "2025-02-09T05:47:36.441Z",
"path": "/v1/events/trigger",
"message": "Unable to establish tunnel connection to `https://c8e09208-****-****-****-ac8fcd1c7f8f.novu.sh/api/novu`. Run npx novu@latest dev in Local mode, or ensure your Tunnel app deployment is available.",
"ctx": {
"code": "TunnelNotFound"
}
}
Error triggering notification: Unknown BridgeError: {
"code": "TunnelNotFound",
"statusCode": 404,
"timestamp": "2025-02-09T05:47:36.441Z",
"path": "/v1/events/trigger",
"message": "Unable to establish tunnel connection to `https://c8e09208-****-****-****-ac8fcd1c7f8f.novu.sh/api/novu`. Run npx novu@latest dev in Local mode, or ensure your Tunnel app deployment is available.",
"ctx": {
"code": "TunnelNotFound"
}
}
3. Also i tried creating workflow in my local deployment, we need to integrate email provider, i tired setting up mailtrap and some other mail providers but for all them i got auth failed i followed the docs to setup a mail provider @DevRel @Community Verification @Support
3 Replies
Pawan Jain
Pawan Jain•2w ago
Hey 👋 - 1. We support MongoDB only - 2. We have timeout with tunnel, that's why you need to run this command again so that the tunnel session is refreshed - 3. Please share the screenshot of this issue. It will be helpful to debug the issue
olivemonk
olivemonkOP•2w ago
Thanks for the reply, I wanted to know will the timeout problem persists in deployment
Pawan Jain
Pawan Jain•2w ago
@olivemonk

Locla studio and local tunnel is not required in production environment. When you deploy your application, bridge url will be your application base URL + API path https://docs.novu.co/framework/endpoint#what-is-the-difference-between-tunnel-url-and-bridge-url

Did you find this page helpful?