Closed Crocmagnon closed 3 years ago
I faced the same issue. You can run docker without --detach
and when doing a password reset or registering a new user you get an error:
[warn] Failed to send Sentry event.Cannot send Sentry event because of invalid DSN
Which I think is weird. It happens with SMTP_HOST_ADDR
set to localhost
, 127.0.0.1
and the special host.docker.internal
(see blow for requirement) and I guess is a bug.
Workaround that I used is letting the mail service relay it again
mail:
image: bytemark/smtp
restart: always
environment:
RELAY_HOST: smtp.mailgun.org
RELAY_PORT: 465
RELAY_USERNAME: alice@example.com
RELAY_PASSWORD: secretpassword
See: https://hub.docker.com/r/bytemark/smtp/
Add this to your service if you want to have the host addressable via host.docker.internal
extra_hosts:
- "host.docker.internal:host-gateway"
@Crocmagnon You can test/debug email delivery by trying to send a password reset to an existing account. You can check for any errors with docker logs <plausible-container-name>
To get weekly/monthly reports to work, you need to set CRON_ENABLED=1
in your configuration. I will cut a new release this month where this is enabled by default.
Thanks @kevinvalk. I'd like not to resort to another service since plausible should be able to speak to an existing relay.
@ukutaht, the CRON_ENABLED
variable is not mentioned in the docs (here). I enabled it, will check if I get these reports 🙂
I can't find a way to send a password reset. The only page I found other than the site view is this one:
Does this work @Crocmagnon? https://plausible.io/docs/reset-password
Yes it does, thanks @metmarkosaric! Using the URL provided in the docs on my self-hosted instance I've been able to try and send an email. My config was ok.
Thanks!
One issue still though, when I enable cron via the env variable, plausible is really not happy:
Sorry my bad. It's CRON_ENABLED=true
. And apologies for not having these things documented. Like I said, it will be enabled by default in future versions.
No problem! I just pointed it out to increase the quality of the docs 🙂
I can confirm that plausible boots fine with CRON_ENABLED=true
! Thank you all for your help 👌
I'm trying to setup plausible to send weekly and monthly reports. I added the relevant variables but I don't receive the emails.
I couldn't find any way to send an email immediately, and I don't really want to wait 1 week between retries 😊
Here's my conf: