tegon icon indicating copy to clipboard operation
tegon copied to clipboard

Self host user invite not working

Open PravinRajnale opened this issue 1 year ago • 8 comments

When attempting to invite users to the self-hosted instance, the invite functionality is not working. The system fails to send the invitation email or add the new user to the system. This issue blocks the ability to link new users effectively. PFA the attached screenshot.

Error: "Invites failed, Try again after sometime: forbidden resource" IMG-20240924-WA0014

PravinRajnale avatar Sep 24 '24 16:09 PravinRajnale

hey @PravinRajnale, can you pull the latest docker image version 0.3.6-alpha of the server and webapp. logout and login again. let me know if it doesn't work.

Also, if you don't set smtp it won't send an invite email to that user. it'll just create a row in the invite table.

saimanoj avatar Sep 25 '24 04:09 saimanoj

Hey @PravinRajnale did it work?

AggManik avatar Oct 01 '24 05:10 AggManik

I tried troubleshooting/debugging it locally but the error seems to be unresolved. PFA IMG-20241002-WA0001 IMG-20241002-WA0000

PravinRajnale avatar Oct 01 '24 19:10 PravinRajnale

@PravinRajnale, can you also copy .env to apps/server to run pnpm migrate.

webapp is not able to connect server. can you also share server logs?

saimanoj avatar Oct 02 '24 15:10 saimanoj

Can you please check these screenshots, when i tried to run apps/server - run pnpm migrate - i am getting server not found.

IMG-20241002-WA0028 IMG-20241002-WA0029 IMG-20241002-WA0030

PravinRajnale avatar Oct 02 '24 16:10 PravinRajnale

please change DB_HOST to localhost.

Also, is the Docker environment possibly mixed with the local setup?

saimanoj avatar Oct 03 '24 02:10 saimanoj

when i run pnpm migrate in app/server is migrating but when i run docker-compose/route error"database not found/ prisma can't connect" PFA the screenshot. image (2) image (3)

PravinRajnale avatar Oct 03 '24 05:10 PravinRajnale

@PravinRajnale can you please check if the .env file is set up correctly in the docker-compose directory?

saimanoj avatar Oct 04 '24 05:10 saimanoj

@PravinRajnale Can you look at the updated local setup instructions and retry?

AdityaSanthosh avatar Oct 15 '24 14:10 AdityaSanthosh