-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cannot send emails using docker run #2533
Comments
Apologies if this is what you mean by "local failure log" but do you have any error messages in |
The admin.log doesn't display anything, the call to http://localhost/admin/login is much, much faster too. |
On a side note, the example docker-compose.yaml (https://github.com/bitwarden/server/blob/master/docker-unified/docker-compose.yml) contains a mount path for the logs. The docker run example (https://bitwarden.com/help/install-and-deploy-unified-beta/#using-docker-run) does not. |
Did you configure a mail server in your env vars? |
Yes, using "docker compose up" with the same settings.env file works just fine, docker even reports the same env variables. |
There should be no difference as long as you are using the correct command. Are you sure you don't need to specify a more absolute path to the settings.env? |
docker-compose.yml
The first will absuletely not send emails, the second one does so without a hitch. |
I can confirm that docker run is not sending mails. I can also confirm that settings.env is being found correctly and set by Docker while checking using inspect also using Postgres which works fine so settings.env is definitely parsed. I also noticed that the setting to disable User Registrations is being ignored so it looks like all settings with globalSettings are being ignored including mail:
|
Can you exec the
|
docker run
docker compose up
After sorting both the only differences are the HOSTNAME and the double quotes around the adminSettings__admins variable (content is otherwise the same). |
Probably the same issue as #2572. |
Can you try removing the quotes from the admin email settings, as discussed here: #2572 |
That indeed fixes the issue, will the documentation be updated or will the container be updated to support this behaviour (or both?). |
Great. The referenced PR updates the example used in the docs. |
Steps To Reproduce
1: install using docker compose up, verify that /admin sends the email correctly
2: docker rm bitwarden-bitwarden-1 (gets a funny name using docker compose up, this is the only discernable difference)
3: start it using the alternative method (e.g. docker run -d --name bitwarden -v C:\Users\MichielHazelhof\Desktop\bitwarden\bwdata:/etc/bitwarden -p 80:8080 --env-file settings.env bitwarden/self-host:beta)
4: attempt to get the email from /admin
Expected Result
Emails should always arive and if they don't a log should be generated
Actual Result
No email is sent (no logs on the mailserver) and no local failure log is generated
Screenshots or Videos
No response
Additional Context
No response
Githash Version
455d62e-dirty
Environment Details
Database Image
Mariadb: 10.10.2
Issue-Link
#2480
Issue Tracking Info
The text was updated successfully, but these errors were encountered: