This repository was archived by the owner on Dec 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
This repository was archived by the owner on Dec 17, 2025. It is now read-only.
Receiving blank messages with discord notifier #1739
Copy link
Copy link
Open
Labels
Description
Describe the bug
Using the follwong docker-compose.yml, I'm getting blank message on discord:
version: '3.7'
services:
watchtower:
container_name: watchtower
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- "8080:8080"
environment:
WATCHTOWER_DEBUG: true
WATCHTOWER_LOG_LEVEL: debug
WATCHTOWER_POLL_INTERVAL: 60
WATCHTOWER_HTTP_API_METRICS: true
WATCHTOWER_HTTP_API_TOKEN: demotoken
WATCHTOWER_LABEL_ENABLE: true
WATCHTOWER_CLEANUP: true
WATCHTOWER_NOTIFICATION_REPORT: true
WATCHTOWER_NOTIFICATIONS: shoutrrr
WATCHTOWER_NOTIFICATIONS_LEVEL: info
WATCHTOWER_NOTIFICATION_URL: "discord://token@id"
WATCHTOWER_NOTIFICATION_TEMPLATE: |
{{- if .Report -}}
{{- with .Report -}}
{{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed
{{- range .Updated}}
- {{.Name}} ({{.ImageName}}): {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}}
{{- end -}}
{{- range .Fresh}}
- {{.Name}} ({{.ImageName}}): {{.State}}
{{- end -}}
{{- range .Skipped}}
- {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}
{{- end -}}
{{- range .Failed}}
- {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}
{{- end -}}
{{- end -}}
{{- else -}}
{{range .Entries -}}{{.Message}}{{"\n"}}{{- end -}}
{{- end -}}
# WATCHTOWER_ROLLING_RESTART: "true"
# WATCHTOWER_MONITOR_ONLY: "true"
prometheus:
container_name: prometheus
image: prom/prometheus
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus:/prometheus/
ports:
- "9091:9090"
labels:
- "com.centurylinklabs.watchtower.enable=true"
grafana:
container_name: grafana
image: grafana/grafana
ports:
- "3000:3000"
environment:
GF_INSTALL_PLUGINS: grafana-clock-panel,grafana-simple-json-datasource
volumes:
- grafana:/var/lib/grafana
- ./grafana:/etc/grafana/provisioning
labels:
- "com.centurylinklabs.watchtower.enable=true"
volumes:
prometheus: {}
grafana: {}Steps to reproduce
- docker-compose up -d --build
Expected behavior
Receive messages in discord using shoutrrr
Screenshots
No response
Environment
- Kernel 6.1.0-11-amd64
- Docker version 20.10.24+dfsg1, build 297e128
Your logs
watchtower | time="2023-08-21T16:06:28+02:00" level=debug msg="Sleeping for a second to ensure the docker api client has been properly initialized
."
watchtower | time="2023-08-21T16:06:29+02:00" level=debug msg="Making sure everything is sane before starting"
watchtower | time="2023-08-21T16:06:29+02:00" level=debug msg="Retrieving running containers"
watchtower | time="2023-08-21T16:06:29+02:00" level=debug msg="There are no additional watchtower containers"
watchtower | time="2023-08-21T16:06:29+02:00" level=info msg="Watchtower v1.5.3-70-g0d2eba1"
watchtower | time="2023-08-21T16:06:29+02:00" level=info msg="Using notifications: discord"
watchtower | time="2023-08-21T16:06:29+02:00" level=info msg="Only checking containers using enable label"
watchtower | time="2023-08-21T16:06:29+02:00" level=info msg="Scheduling first run: 2023-08-21 16:07:29 +0200 CEST"
watchtower | time="2023-08-21T16:06:29+02:00" level=info msg="Note that the first check will be performed in 59 seconds"
Additional context
No response