Replies: 4 comments
-
|
Strange that it works one way yet not the other. |
Beta Was this translation helpful? Give feedback.
-
|
I see that two configurations are present in discourse.conf, perhaps from an append instead of a replace? The settings that are present seem correct and I can't see how multiple identical values would cause an issue but that might be another bug to track down. I pared discourse.conf down to one configuration, pkilled puma, and attempted an email link again. Still no love. The container never attempts to connect to the mailhost.
FYI, The puma.log, puma-error.log, and sidekiq.log files are all zero-length. |
Beta Was this translation helpful? Give feedback.
-
|
Great eyes. Indeed its appending if the container restarts "warm". I'll fix that one up. I'm going to need to open a Dev server to look into this on my own and at the very least get more logging going for those zero byte files. I have a mountain of things on the go right now, going to put it on my list for near future < next 10 days. I have this running in a production environment and haven't seen similar things. I do know as well there are a few Lets see what I can come up with. |
Beta Was this translation helpful? Give feedback.
-
|
I'm having a similar issue with a fresh container I'm trying to set up. I can't finish the first setup procedure since it fails to send the activation email. I verified that running the following inside the container does send an email, but the user confirmation email won't send and it won't log any errors: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Discourse is not sending certain system emails. Test emails can be successfully sent from the UI as well as the Ruby scripts and the system successfully sends upgrade reminder emails, so the infrastructure seems correct. However, new users do not get login link emails or email confirmation emails sent. I can see nothing in logfiles to indicate why.
Steps to reproduce
What is the expected correct behavior?
Discourse should send an email to the email of the user, with a login link included.
Relevant logs and/or screenshots
Environment
Any logs | docker-compose.yml
``` version: '2.4' services: discourse-app: container_name: discourse-app image: tiredofit/discourse:latest labels: - traefik.enable=true - traefik.http.routers.discourse-example-org.rule=Host(`discourse.example.org`) # REDACTED - traefik.http.services.discourse-example-org.loadbalancer.server.port=3000 volumes: - ./logs:/data/logs - ./data/uploads:/data/uploads - ./data/backups:/data/backups environment: - TIMEZONE=America/New_York - CONTAINER_NAME=discourse-app- proxy
discourse-redis:
image: tiredofit/redis:7
container_name: discourse-redis
volumes:
- ./redis:/var/lib/redis
environment:
- TIMEZONE=America/New_York
- CONTAINER_NAME=discourse-redis
- CONTAINER_ENABLE_MESSAGING=TRUE
- SMTP_HOST=postfix
- SMTP_PORT=25
- SMTP_OPENSSL_VERIFY_MODE=none
- SMTP_ENABLE_START_TLS=true
discourse-db-backup:
image: tiredofit/db-backup
container_name: discourse-db-backup
volumes:
- ./dbbackup:/backup
environment:
- TIMEZONE=America/New_York
- CONTAINER_NAME=discourse-db-backup
- DB_HOST=postgresdb
- DB_TYPE=postgres
- DB_NAME=REDACTED
- DB_USER=REDACTED
- DB_PASS=REDACTED
- DB_DUMP_FREQ=1440
- DB_DUMP_BEGIN=0000
- DB_CLEANUP_TIME=8640
networks:
- services
restart: always
extra_hosts:
- postgresdb:172.17.0.1
- postfix:172.17.0.1
ports:
- 2022:2020
- 10152:10050
networks:
proxy:
services:
~
Beta Was this translation helpful? Give feedback.
All reactions