Comments (4)
I also think the double quotes is the culprit.
I did the following experiment:
- In
docker/.env
, I addedEMAIL_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.
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.
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.
No reply, closing.
from healthchecks.
Related Issues (20)
- [Docker] replace pip with apt HOT 1
- Feature request: High-Availability HOT 2
- Alert gets sent even though check is OK HOT 2
- SITE_ROOT in local_settings.py HOT 2
- New type of API key: read-only, but returns check and channel UUIDs HOT 3
- gotify integration should allow to set priorities
- Slack legacy webhook integration HOT 2
- Mute all checks while updating HOT 3
- Get informed if job run time is too short HOT 2
- Hi, how to fix this error ,please help me, whenever user register it gives: SMTPAuthenticationError at /accounts/register/ (535, b'Incorrect authentication data')
- [docker] .env includes DEBUG=False yet banner still states "Running in debug mode, do not use in production." HOT 2
- Slack integration - default integration name to channel name HOT 1
- Unexpected "down" after sending ping HOT 2
- Read only user can create project, can we have "true" read only users ? HOT 3
- Discord Webhook integration HOT 6
- Return UUID in "List Existing Checks" response
- check display
- Allow use of slugs for E-Mail pings
- Notifications not working? HOT 1
- Cron not interpreted correctly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from healthchecks.