N
Novu•5mo ago
Puvi

Self Deployment

Hello Team, I'm new to deployment process, I have some doubts in it. what are .env variables I must change for self deployment. Note: planning to deploy it on s3 Do I really need to run web socket to send emails and push notifications ? Please help me on this. Thanks!!
16 Replies
Puvi
Puvi•5mo ago
Sorry for miss coummincation we are planning to host in VM.
Tomer Barnea
Tomer Barnea•5mo ago
Hey @Puvi 👋 So for emails and push socket is not required, in later stage of you want to add in-app you can add socket. As for variables I’ll let @Pawan Jain and @Moderator to help us 🙂
Puvi
Puvi•5mo ago
Thanks @Tomer Barnea
Pawan Jain
Pawan Jain•5mo ago
@puvi07 Novu can be self hosted on EC2 based instance. S3 is just a storage service. it can not be used to host Novu. Novu requires a virtual machine. Checkout this docs to learn how to self host novu using docker compose https://docs.novu.co/self-hosting-novu/deploy-with-docker We have a step by step video guide. we have .example.env file that can be used as it is, Just need to change HOST_NAME depending on where you host
Puvi
Puvi•5mo ago
Thank you so much @Pawan Jain, can we have novu,mongo anfd redis on the same machine ?
Pawan Jain
Pawan Jain•5mo ago
Yes
Puvi
Puvi•5mo ago
Thanks @Pawan Jain I will let you if we are facing any errors, kindly please help us
Pawan Jain
Pawan Jain•5mo ago
Checkout video guide on the doc page. It will resolve all of your questions
Puvi
Puvi•4mo ago
Great !! Hi @Pawan Jain worker | ReplyError: NOAUTH Authentication required. worker | at Object.onceWrapper (node:events:627:28) worker | at Socket.emit (node:events:525:35) worker | at Socket.emit (node:domain:489:12) worker | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1263:10) { worker | command: { name: 'select', args: [ '2' ] } worker | } worker | ReplyError: WRONGPASS invalid username-password pair worker | at Object.onceWrapper (node:events:627:28) worker | at Socket.emit (node:events:525:35) worker | at Socket.emit (node:domain:489:12) worker | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1263:10) { worker | command: { worker | name: 'auth', worker | args: [ 'our Password' ] worker | } We are getting this error while doing docker compose. REDIS_HOST=redis REDIS_PASSWORD= REDIS_CACHE_SERVICE_HOST= What is REDIS_CACHE_SERVICE_HOST, which value we need to provide to this ? Please help me on this. Thanks.
Pawan Jain
Pawan Jain•4mo ago
@Puvi did you follow the same steps as shown in video?
Puvi
Puvi•4mo ago
Yes but we have set environmental variables for our requirement @Pawan Jain
Pawan Jain
Pawan Jain•4mo ago
@Puvi are you giving same values to REDIS_HOST and REDIS_CACHE_SERVICE_HOST ?
Puvi
Puvi•4mo ago
Yes @Pawan Jain, Redis issue resolved. Currently We are facing this iisue | [Nest] 128 - 02/06/2024, 9:10:52 AM ERROR [ExceptionHandler] Server selection timed out after 30000 ms ws | MongooseServerSelectionError: Server selection timed out after 30000 ms ws | at _handleConnectionErrors (/usr/src/app/node_modules/.pnpm/mongoose@7.5.2/node_modules/mongoose/lib/connection.js:805:11) ws | at NativeConnection.openUri (/usr/src/app/node_modules/.pnpm/mongoose@7.5.2/node_modules/mongoose/lib/connection.js:780:11) ws | at processTicksAndRejections (node:internal/process/task_queues:96:5) has context menu
Novu_Bot
Novu_Bot•4mo ago
@Puvi, you just advanced to level 4!
Pawan Jain
Pawan Jain•4mo ago
As per this errror, I suspect mongodb is not accepting connections or mongodb uri is wrong + incorrect credentials
Puvi
Puvi•4mo ago
Thanks @Pawan Jain