I upgraded a self-hosted server from 1.8.1 to 1.9.0 then 1.9.5 and now every day at 02:00 AM seems the instance flood Mailjet with a ton of trash email "demo@example.com" subject "Test SMTP Connection" why? There is env 200 mail sent by day! Seems to impact my quota of email too...
Tried to see mail logs: docker logs appwrite-worker-mails but the mails was not sent too...
worker.v1-mails · 311.2ms · 18711ebc
level info
project.id x-prod
mail.template recovery
mail.smtp_type cloud
mail.recipient_domain gmail.com
mail.status success
────────────────────────────────────────────────────────────
worker.v1-mails · 123.3ms · 29509daf
level info
project.id x-prod
mail.template recovery
mail.smtp_type cloud
mail.recipient_domain gmail.com
mail.status success
Seems related to doctor command but why it's running everyday???
in your docker compose change healthcheck for appwrite to this
healthcheck:
test:
- CMD-SHELL
- 'curl -fsS -o /dev/null -H "Host: $${_APP_DOMAIN:-localhost}" http://localhost/v1/health/version'
interval: 5s
timeout: 5s
retries: 12
start_period: 120s
this has been fixed in latest compose file
Thanks, you mean this one:
appwrite:
container_name: appwrite
logging:
driver: json-file
options:
max-file: "5"
max-size: 10m
image: ${_APP_IMAGE:-appwrite/appwrite}:${_APP_VERSION:-latest}
healthcheck:
test:
- CMD
- doctor
interval: 5s
timeout: 5s
retries: 12
networks:
- appwrite
Need to be:
appwrite:
container_name: appwrite
logging:
driver: json-file
options:
max-file: "5"
max-size: 10m
image: ${_APP_IMAGE:-appwrite/appwrite}:${_APP_VERSION:-latest}
healthcheck:
test:
- CMD-SHELL
- 'curl -fsS -o /dev/null -H "Host: $${_APP_DOMAIN:-localhost}" http://localhost/v1/health/version'
interval: 5s
timeout: 5s
retries: 12
start_period: 120s
networks:
- appwrite
That's OK?
Seems also related to <#1529074044882915338> because it retry but the instance seems healthy...
i think the issue is that the appwrite-api use the doctor as the healthcheck, you should change it to request the /v1/health/version endpoint instead
oh mb, didn't saw you kinda resolved the issue but ye, the second seams to be the right healthcheck, you can compare with the thread i linked
Perfect, I updated the docker compose thanks both! Will check tomorrow
Recommended threads
- How to successfully migrate from 1.9.0 t...
I've tried the automatic tool for migration but my Appwrite (self-hosted) went to a broken state. My functions wouldn't deploy anymore, some things just didn't ...
- [1.9.5] Functions building indefinitely ...
I try to deploy some function, it show "Building..." during minutes and freeze the entire server. Here is the result of `docker logs appwrite-worker-builds` `...
- Appwrite doctor show incorrect status
Seems the appwrite doctor show an error with DB but all is working well ... DB seems healthy and connected...