Giter Club home page Giter Club logo

Comments (4)

cuu508 avatar cuu508 commented on June 19, 2024

I also think the double quotes is the culprit.

I did the following experiment:

  • In docker/.env, I added EMAIL_HOST_PASSWORD='>9Abt~:Wk$n:p:H3+Kkm.MDp"S4sUs?E'
  • At the bottom of settings.py I added a debug line: print("email password: ", EMAIL_HOST_PASSWORD)
  • I started the container: docker-compose up --build web

And in the output I see:

web_1  | email password:  >9Abt~:Wk$n:p:H3+Kkm.MDp"S4sUs?E
web_1  | sendreports is now running
web_1  | sendalerts is now running
web_1  | Starting SMTP listener on 0.0.0.0:25 ...

Here it looks like if the value is in single quotes, it remains in-tact. Can you also add a similar debug line and see what you get?

from healthchecks.

adocampo avatar adocampo commented on June 19, 2024

weird, the first thing i've tried was quote the password in single quotes (as I do on most services), but it didn't work when sending emails with the former error...
perhaps is because I'm using linuxserver container and it doesn't use the .env file, but a local_settings.py?

from healthchecks.

cuu508 avatar cuu508 commented on June 19, 2024

I started a linuxserver image like so:

docker run -d \
  --name=healthchecks-xyz \
  -e PUID=1000 \
  -e PGID=1000 \
  -e SITE_ROOT= \
  -e SITE_NAME= \
  -e DEFAULT_FROM_EMAIL= \
  -e EMAIL_HOST= \
  -e EMAIL_PORT=587 \
  -e EMAIL_HOST_USER= \
  -e EMAIL_HOST_PASSWORD='>9Abt~:Wk$n:p:H3+Kkm.MDp"S4sUs?E' \
  -e EMAIL_USE_TLS= \
  -e SUPERUSER_EMAIL= \
  -e SUPERUSER_PASSWORD= \
  -e REGENERATE_SETTINGS= `#optional` \
  -e SITE_LOGO_URL= `#optional` \
  -e ALLOWED_HOSTS= `#optional` \
  -e SECRET_KEY= `#optional` \
  -e APPRISE_ENABLED= `#optional` \
  -e DEBUG= `#optional` \
  -p 8000:8000 \
  -v /path/to/data:/config \
  --restart unless-stopped \
  lscr.io/linuxserver/healthchecks:latest

The email password looks good:

docker exec -it e1ca2dd266eb python3 /app/healthchecks/manage.py shell
Python 3.10.5 (main, Jul 25 2022, 15:52:08) [GCC 11.2.1 20220219] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.conf import settings
>>> settings.EMAIL_HOST_PASSWORD
'>9Abt~:Wk$n:p:H3+Kkm.MDp"S4sUs?E'

Can you check with manage.py shell in a running container the value of django.conf.settings.EMAIL_HOST_PASSWORD?

from healthchecks.

cuu508 avatar cuu508 commented on June 19, 2024

No reply, closing.

from healthchecks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.