Comments (5)
Multiple recipients should work fine for shoutrrr. It might be something with the legacy notifications adapter that encodes the commas, perhaps?
Try using a shoutrrr URL directly instead:
WATCHTOWER_NOTIFICATION_URL: smtp://username:password@host:port/?from=fromAddress&to=recipient1,recipient2
(you can see what the adapter transforms your notification configuration to if you run watchtower with --trace
)
from watchtower.
Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏
from watchtower.
Setting this environment variable fixed the issue so I could find the issue on my side.
I used the following compose notation:
version: "3"
services:
watchtower:
environment:
- WATCHTOWER_MONITOR_ONLY=true
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATIONS_LEVEL=info
- WATCHTOWER_NO_STARTUP_MESSAGE=true
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=mail
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=25
- WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_TLS_SKIP_VERIFY=true
- WATCHTOWER_NOTIFICATION_EMAIL_FROM="[email protected]"
- WATCHTOWER_NOTIFICATION_EMAIL_TO="[email protected],[email protected]"
- WATCHTOWER_LOG_LEVEL=trace
[...]
Removing the quotes fixed the issue. Quotes are fine for one recipient but with a comma the mentioned error is printed.
Thank you for the support @piksel
from watchtower.
Interesting! So this was caused by docker compose's environment parsing... Or perhaps it's due to our attempts at cleaning extra quotes that split the input into addresses before removing quotes...
I'll reopen this until it's properly investigated.
from watchtower.
I just want to add another thing. This behavior seems to depend on the compose notation. I switched environment definition from a list to a map and then it is possible to use quotes.
The following two definitions are working:
- List
environment: - [email protected],[email protected]
- Map
environment: WATCHTOWER_NOTIFICATION_EMAIL_TO: "[email protected],[email protected]"
from watchtower.
Related Issues (20)
- monitor-only requirement HOT 5
- Issue after restarting Docker - Synology NAS HOT 2
- Free disk space threshold HOT 1
- Set a fixed time instead of a timer HOT 6
- Send notification containing Image Label HOT 1
- Telegram notification HOT 3
- Stopping containers doesn't work on Ubuntu 23.10 HOT 23
- Parsed container image ref has no tag HOT 2
- SMTP timeout error with Outlook email notifications HOT 1
- FR: Multiple Hosts Support HOT 3
- Wont update aio-imaginary HOT 2
- Delete content of config.json upon every restart HOT 1
- API error when using hostname HOT 1
- Watchtower failed to create containers on host network HOT 30
- Clean formatting for email notifications HOT 1
- level=fatal msg="Failed to initialize Shoutrrr notifications: error initializing router services: failed to log in: Too Many Requests\n" HOT 2
- Container with macvlan IP uses wrong IP after recreation HOT 5
- On error print recreate command HOT 4
- Failed to parse int from \"0: strconv.Atoi: parsing \"\\\"0\": invalid syntax" HOT 4
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 watchtower.