Code Monkey home page Code Monkey logo

Comments (4)

Neamar avatar Neamar commented on September 27, 2024 10

Found my issue. Documentation at https://plausible.io/docs/self-hosting-configuration mentions that SMTP_HOST_SSL_ENABLED defaults to false, and I foolishly used true.

AH! I had to use 1, not true.
That fixed my problem.

Thanks again for your help!

from plausible_on_dokku.

d1ceward avatar d1ceward commented on September 27, 2024

Hmm, that's weird, on my instance the emailing works fine...

Does the configuration match with the return of the command dokku config <plausible app name>?
dokku config:set can sometimes do unexpected things with special characters depending on the shell.

Otherwise, try adding the environment variable LOG_LEVEL=debug to get more information about the problem.

from plausible_on_dokku.

Neamar avatar Neamar commented on September 27, 2024

Thanks for your help!

Really weird.

Here is what I'm seeing with debug enabled:

2021-04-19T15:59:17.355230630Z app[web.1]: %Bamboo.Email{assigns: %{reset_link: "https://t.neamar.fr/password/reset?token=SFMyNTY.g2gDdAAAAAFkAAVlbWFpbG0AAAAQbmVhbWFyQG5lYW1hci5m"}, attachments: [], bcc: [], cc: [], from: {nil, "[email protected]"}, headers: %{}, html_body: "<a href=\"https://redacted.neamar.fr/password/reset?token=SFMyNTY.g2gDdAAAAAFkAAVlbWFpbG0AAAAQbmVhbW\">Click here</a> to reset your Plausible password.<br /><br />\nThis link will expire in 1 hour. If you don't use it by then, you can request another login link.\n", private: %{html_layout: false, message_params: %{"TrackOpens" => false}, tag: "password-reset-email", text_layout: false, view_module: PlausibleWeb.EmailView, view_
template: "password_reset_email.html"}, subject: "Plausible password reset", text_body: nil, to: [nil: "[email protected]"]}
2021-04-19T15:59:17.355237093Z app[web.1]: 
2021-04-19T15:59:17.417084688Z app[web.1]: 15:59:17.416 [info] TLS :client: In state :hello at tls_record.erl:539 generated CLIENT ALERT: Fatal - Unexpected Message
2021-04-19T15:59:17.417104285Z app[web.1]:  - {:unsupported_record_type, 50}
2021-04-19T15:59:17.474870599Z app[web.1]: 15:59:17.474 [info] TLS :client: In state :hello at tls_record.erl:539 generated CLIENT ALERT: Fatal - Unexpected Message
2021-04-19T15:59:17.474885467Z app[web.1]:  - {:unsupported_record_type, 50}
2021-04-19T15:59:17.488550456Z app[web.1]: 15:59:17.488 [info] TLS :client: In state :hello at tls_record.erl:539 generated CLIENT ALERT: Fatal - Unexpected Message
2021-04-19T15:59:17.488565916Z app[web.1]:  - {:unsupported_record_type, 50}

(token redacted for obvious reasons)

I'm not an erlang expert, but something does seem off. Since the error comes from tls_record, I assume something is wrong with my config, but looking at it it seems to follow the recommendation from both plausible and sendgrid:

MAILER_EMAIL:                 [email protected]
SMTP_HOST_ADDR:               smtp.sendgrid.net
SMTP_HOST_PORT:               587
SMTP_HOST_SSL_ENABLED:        true
SMTP_USER_NAME:               apikey
SMTP_USER_PWD:                SG.2-redacted.

I'll keep looking, thanks for the LOG_LEVEL=debug tip!

from plausible_on_dokku.

ronilaukkarinen avatar ronilaukkarinen commented on September 27, 2024

Thank you, thank you @Neamar! Had been battling with this for hours... damn it was so simple issue after all. Thanks again for posting the solution.

from plausible_on_dokku.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.