Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: self-hosted resend email integration not working #1592

Closed
sallespro opened this issue Jan 9, 2025 · 8 comments
Closed

bug: self-hosted resend email integration not working #1592

sallespro opened this issue Jan 9, 2025 · 8 comments

Comments

@sallespro
Copy link

Provide environment information

i installed the current coolify service edition of trigger.dev

Describe the bug

Out of the box, it acts as if e-mail is sent, but is is not. Looking closer, i noticed a missing env Variable, when EMAIL_TRANSPORT is included, it fails with API Key invalid

Reproduction repo

https://trigger.dev/docs/open-source-self-hosting

To reproduce

install trigger.dev using coolify and try to login.

Additional information

No response

@matt-aitken
Copy link
Member

@sallespro do you have a valid Resend API key set? We use Resend on our cloud product and so I can confirm that this does work.

@sallespro
Copy link
Author

hi, i do have and can confirm it works as well.
Another anomaly is regarding redis in trigger container logs .

2025-01-09T15:03:38.280645429Z     at parseError (/triggerdotdev/node_modules/.pnpm/[email protected]/node_modules/redis-parser/lib/parser.js:179:12)
2025-01-09T15:03:38.280652643Z     at parseType (/triggerdotdev/node_modules/.pnpm/[email protected]/node_modules/redis-parser/lib/parser.js:302:14)
2025-01-09T15:03:38.281882890Z [ioredis] Unhandled error event: ReplyError: NOAUTH Authentication required. ```

@sallespro
Copy link
Author

i did a fresh install and despite setting the RESEND_API_KEY, the email is not sent. This means looking at logs to get the magic link...this means a major problem just to onboard trigger...

Another thing is some account data that is kept locally when npx trigger.dev@latest init -p... is run. i am using a different account name ant i can't get rid of this hidden cache... so i can not create a project because there's some missmatch .


Trigger.dev (3.3.9)
------------------------------------------------------
┌  Initializing project
│
◇  Retrieved your account details for [email protected]
│
■  --project-ref proj_etc is not a valid project ref. Request to fetch data resulted in: 404 "Project not found"

I wish i could help to debug, but now it is not possible. So i hope this shows how difficult it is to take the self host way.

@matt-aitken
Copy link
Member

Can you explain a bit more about what guide you followed?

The Coolify template isn't official and I know it has some issues – there's an open Pull Request on Coolify here: coollabsio/coolify#4724

We have a self-hosting community who might also be helpful using Coolify with Trigger.dev here: https://trigger.dev/discord

@sallespro
Copy link
Author

Oh, i see. in this case i'll use the cloud version and hope this is fixed in the future. thank you

@sallespro
Copy link
Author

Can you explain a bit more about what guide you followed?

found about your platform on youtube, i use coolify, so I was glad to find it there. tried. didn't work because of e-mail provider. would be VERY important to have own auth, not only e-mail or github.

i checked the "unofficial template", but it seems to use latest release. ghcr.io/triggerdotdev/trigger.dev:v3

@abudioutbond
Copy link

You can fix Auth emails by adding this line to all environments sections in the docker compose file EMAIL_TRANSPORT: 'resend'
However, I still can't enable the email alerts for some reason, although the email invitations and magic links work fine

@abudioutbond
Copy link

abudioutbond commented Jan 10, 2025

I also could fix the Alerts issue by adding those 4 lines to the docker compose file too:
ALERT_EMAIL_TRANSPORT: '${ALERT_EMAIL_TRANSPORT}'
ALERT_FROM_EMAIL: '${ALERT_FROM_EMAIL}'
ALERT_REPLY_TO_EMAIL: '${ALERT_REPLY_TO_EMAIL}'
ALERT_RESEND_API_KEY: '${ALERT_REPLY_TO_EMAIL}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants