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] Email not sent from Docker image regardless of using Mailgun or SMTP #1129

Open
AlexJFox opened this issue Apr 11, 2023 · 6 comments
Open
Labels
type: bug something is broken, we need to fix it

Comments

@AlexJFox
Copy link

Fider Cloud or Self Hosted
Self Hoster, latest docker image

Describe the bug
Will not send emails. have tried SMTP configuration and using mailgun. Email just simply does not leave the docker image.

To Reproduce
Steps to reproduce the behavior:

  1. configure docker-compose.yml with necessary email settings
  2. run docker image
  3. fill in Fider registration form and await email

Expected behavior
Expect email to arrive

@AlexJFox AlexJFox added the type: bug something is broken, we need to fix it label Apr 11, 2023
@Systems-NYULib
Copy link

We too are experiencing this same issue with our Azure hosted instance which is using AWS SES for mail.

2023-04-14T17:18:56.908014860Z: [INFO] - failed to send email with template signup_email (app/services/email/awsses/awsses.go:122)

@muji786
Copy link

muji786 commented Apr 24, 2023

This issue is confirmed by us as well. Preventing us from using the service as people cant sign up

@vonsa
Copy link

vonsa commented May 18, 2023

I tried to set this up in Heroku using either SMTP or Mailgun. Using current version as well as stable.
Emails are indeed not being sent, product is unusable.

@gulbalee
Copy link

gulbalee commented Oct 7, 2023

I also get the same issue... Any updates?

 ERROR [2023-10-07T16:26:27Z] [BGW] Error Trace: 
fider-app-1  | - app/middlewares/setup.go:61
fider-app-1  | - goroutine 36 [running]:
fider-app-1  | runtime/debug.Stack()
fider-app-1  |  /usr/local/go/src/runtime/debug/stack.go:24 +0x65
fider-app-1  | github.com/getfider/fider/app/pkg/errors.Panicked({0x1eabe80, 0xc0001738e0})
fider-app-1  |  /server/app/pkg/errors/errors.go:40 +0xcc
fider-app-1  | github.com/getfider/fider/app/middlewares.WorkerSetup.func1.1.2()
fider-app-1  |  /server/app/middlewares/setup.go:61 +0x4a
fider-app-1  | panic({0x1eabe80, 0xc0001738e0})
fider-app-1  |  /usr/local/go/src/runtime/panic.go:838 +0x207
fider-app-1  | github.com/getfider/fider/app/services/email/smtp.sendMail({0x21ccfe8, 0xc0002a4240}, 0xc0001061e0)
fider-app-1  |  /server/app/services/email/smtp/smtp.go:105 +0x146e
fider-app-1  | reflect.Value.call({0x1e8db60?, 0x2023948?, 0x21d2740?}, {0x1f9957d, 0x4}, {0xc000149ca0, 0x2, 0x21d2740?})
fider-app-1  |  /usr/local/go/src/reflect/value.go:556 +0x845
fider-app-1  | reflect.Value.Call({0x1e8db60?, 0x2023948?, 0xc0004ce0c0?}, {0xc000149ca0, 0x2, 0x2})
fider-app-1  |  /usr/local/go/src/reflect/value.go:339 +0xbf
fider-app-1  | github.com/getfider/fider/app/pkg/bus.Publish({0x21ccfe8?, 0xc0002a4240}, {0xc000139d78?, 0x1, 0xc000149d68?})
fider-app-1  |  /server/app/pkg/bus/bus.go:154 +0x46f
fider-app-1  | github.com/getfider/fider/app/tasks.SendSignUpEmail.func1(0x21cccd8?)
fider-app-1  |  /server/app/tasks/signup.go:19 +0x337
fider-app-1  | github.com/getfider/fider/app/middlewares.WorkerSetup.func1.1(0xc0002a4240)
fider-app-1  |  /server/app/middlewares/setup.go:68 +0x363
fider-app-1  | github.com/getfider/fider/app/pkg/worker.(*BackgroundWorker).Run(0xc0000ac880, {0x1fc0a34, 0x1})
fider-app-1  |  /server/app/pkg/worker/worker.go:73 +0x22a
fider-app-1  | created by github.com/getfider/fider/app/pkg/web.(*Engine).Start
fider-app-1  |  /server/app/pkg/web/engine.go:128 +0x71a
fider-app-1  |  (app/pkg/errors/errors.go:40)
fider-app-1  | - github.com/getfider/fider/app/services/email/smtp.sendMail:105 (app/pkg/errors/errors.go:39)
fider-app-1  | - failed to send email with template signup_email (app/services/email/smtp/smtp.go:105)
fider-app-1  | - EOF
fider-app-1  | ERROR [2023-10-07T16:26:27Z] [BGW] Error Trace: 
fider-app-1  | - app/middlewares/setup.go:61
fider-app-1  | - goroutine 36 [running]:
fider-app-1  | runtime/debug.Stack()
fider-app-1  |  /usr/local/go/src/runtime/debug/stack.go:24 +0x65
fider-app-1  | github.com/getfider/fider/app/pkg/errors.Panicked({0x1eabe80, 0xc0001738e0})
fider-app-1  |  /server/app/pkg/errors/errors.go:40 +0xcc
fider-app-1  | github.com/getfider/fider/app/middlewares.WorkerSetup.func1.1.2()
fider-app-1  |  /server/app/middlewares/setup.go:61 +0x4a
fider-app-1  | panic({0x1eabe80, 0xc0001738e0})
fider-app-1  |  /usr/local/go/src/runtime/panic.go:838 +0x207
fider-app-1  | github.com/getfider/fider/app/services/email/smtp.sendMail({0x21ccfe8, 0xc0002a4240}, 0xc0001061e0)
fider-app-1  |  /server/app/services/email/smtp/smtp.go:105 +0x146e
fider-app-1  | reflect.Value.call({0x1e8db60?, 0x2023948?, 0x21d2740?}, {0x1f9957d, 0x4}, {0xc000149ca0, 0x2, 0x21d2740?})
fider-app-1  |  /usr/local/go/src/reflect/value.go:556 +0x845
fider-app-1  | reflect.Value.Call({0x1e8db60?, 0x2023948?, 0xc0004ce0c0?}, {0xc000149ca0, 0x2, 0x2})
fider-app-1  |  /usr/local/go/src/reflect/value.go:339 +0xbf
fider-app-1  | github.com/getfider/fider/app/pkg/bus.Publish({0x21ccfe8?, 0xc0002a4240}, {0xc000139d78?, 0x1, 0xc000149d68?})
fider-app-1  |  /server/app/pkg/bus/bus.go:154 +0x46f
fider-app-1  | github.com/getfider/fider/app/tasks.SendSignUpEmail.func1(0x21cccd8?)
fider-app-1  |  /server/app/tasks/signup.go:19 +0x337
fider-app-1  | github.com/getfider/fider/app/middlewares.WorkerSetup.func1.1(0xc0002a4240)
fider-app-1  |  /server/app/middlewares/setup.go:68 +0x363
fider-app-1  | github.com/getfider/fider/app/pkg/worker.(*BackgroundWorker).Run(0xc0000ac880, {0x1fc0a34, 0x1})
fider-app-1  |  /server/app/pkg/worker/worker.go:73 +0x22a
fider-app-1  | created by github.com/getfider/fider/app/pkg/web.(*Engine).Start
fider-app-1  |  /server/app/pkg/web/engine.go:128 +0x71a
fider-app-1  |  (app/pkg/errors/errors.go:40)
fider-app-1  | - github.com/getfider/fider/app/services/email/smtp.sendMail:105 (app/pkg/errors/errors.go:39)
fider-app-1  | - failed to send email with template signup_email (app/services/email/smtp/smtp.go:105)
fider-app-1  | - EOF

@stardeltapower
Copy link

+1

Has anyone been able to fix this issue in a fork?

@zzinx58
Copy link

zzinx58 commented Apr 22, 2024

So sad during the process trying self host, almost spent couple days on this, want to do it on my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug something is broken, we need to fix it
Projects
None yet
Development

No branches or pull requests

7 participants