imagegenius / docker-obico

Monolithic (Single) Docker Container for Obico Server
https://hub.docker.com/r/imagegenius/obico
GNU General Public License v3.0
8 stars 3 forks source link

Email 504 Gateway Time-out #10

Open autumnwalker opened 1 year ago

autumnwalker commented 1 year ago

When I try and configure SMTP / email I get a 504 Gateway Time-out error.

I don't see anything in the Docker logs.

I have configured SMTP according to environment variables. If I set something to knowingly wrong (e.g. wrong password) I get a 500 error instead.

hydazz commented 1 year ago

Setting the email variables causes the webui to stop working?

autumnwalker commented 1 year ago

webui works fine until I try to send a test email, then I get 504.

hydazz commented 1 year ago

try updating, see if error persists

autumnwalker commented 1 year ago

Still getting a 504 - takes awhile now to get it.

hydazz commented 1 year ago

can you share your docker-compose/template/run command

autumnwalker commented 1 year ago

Not sure of a more elegant way to share this: https://imgur.com/a/qm2ST6h

hydazz commented 1 year ago

I have configured SMTP, sending a test email works image

I am using the following config (exclusively, i have not specified anything else):

EMAIL_HOST=mail....
EMAIL_HOST_USER=no-reply@...
EMAIL_HOST_PASSWORD=...
EMAIL_PORT=587
EMAIL_USE_TLS=True
DEFAULT_FROM_EMAIL=no-reply@...

https://www.obico.io/docs/server-guides/advanced/email_guide/#troubleshooting-with-the-test-email I can only assume that something is configured incorrectly

If you get a Server Error (500) it is likely that something is wrong with the configuration such as incorrect credentials, port, etc. Check the logs on your web container to see what may have been rejected.

perhaps try setting DEBUG=True in another variable, and see if theres anything in the logs