Comments (4)
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.
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.
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.
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)
- Docs HOT 2
- Permission error when ranch tries to bind to port 80 (:eacces (permission denied)) HOT 1
- App fails to start HOT 6
- Selfhosted Emails with Sendgrid HOT 2
- App container failed to start HOT 1
- Upgrading to v1.3.0: Syntax error: failed at position 27: SAMPLE BY user_id when running migrations
- Invalid default port mappings HOT 5
- Unable to access plausible after deploy HOT 1
- Updated from 1.2 to 1.3 => 502 Bad Gateway HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plausible_on_dokku.