You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`watchtower | time="2024-04-30T03:54:12Z" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp``
Can access smtp.gmail.com just fine:
$ ping smtp.gmail.com
PING smtp.gmail.com (142.251.10.108) 56(84) bytes of data.
64 bytes from sd-in-f108.1e100.net (142.251.10.108): icmp_seq=1 ttl=56 time=107 ms
64 bytes from sd-in-f108.1e100.net (142.251.10.108): icmp_seq=2 ttl=56 time=107 ms
64 bytes from sd-in-f108.1e100.net (142.251.10.108): icmp_seq=3 ttl=56 time=108 ms
$ telnet smtp.gmail.com 587
Trying 74.125.68.108...
Connected to smtp.gmail.com.
Escape character is '^]'.
No email notifications are ever received.
Expected behavior
Receive email notifications via Gmail's SMTP server.
Screenshots
No response
Environment
Platform: Debian GNU/Linux 12 (bookworm)
Architecture: 64 bit
Docker Version: 20.10.24+dfsg1, build 297e128
Your logs
watchtower | time="2024-04-30T04:06:22Z" level=debug msg="Sleeping for a second to ensure the docker api client has been properly initialized."
watchtower | time="2024-04-30T04:06:23Z" level=debug msg="Making sure everything is sane before starting"
watchtower | time="2024-04-30T04:06:23Z" level=debug msg="Retrieving running containers"
watchtower | time="2024-04-30T04:06:23Z" level=debug msg="There are no additional watchtower containers"
watchtower | time="2024-04-30T04:06:23Z" level=debug msg="Watchtower HTTP API skipped."
watchtower | time="2024-04-30T04:06:23Z" level=info msg="Watchtower 1.7.1"
watchtower | time="2024-04-30T04:06:23Z" level=info msg="Using notifications: smtp"
watchtower | time="2024-04-30T04:06:23Z" level=info msg="Checking all containers (except explicitly disabled with label)"
watchtower | time="2024-04-30T04:06:23Z" level=info msg="Scheduling first run: 2024-05-01 04:06:23 +0000 UTC"
watchtower | time="2024-04-30T04:06:23Z" level=info msg="Note that the first check will be performed in 23 hours, 59 minutes, 59 seconds"
watchtower | time="2024-04-30T04:06:35Z" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp
Additional context
No response
The text was updated successfully, but these errors were encountered:
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! 🙏
The problem was on Docker's end, when using a bridge the DNS server gets set to 127.0.0.11 for the watchtower container by default and for some reason this wasn't resolving smtp.gmail.com correctly even though the host could.
Explicitly binding the ports for my local DNS server (also hosted in a docker container) to the local network address allows the Watchtower container to correctly look up smtp.gmail.com.
I imagine setting extra_hosts: in the Watchtower docker-compose.yml file would have likely also resolved it too by hardcoding the DNS entry but I didn't end up needing to try that in the end.
Describe the bug
Cannot send notifications using Google's SMTP service.
Steps to reproduce
`watchtower | time="2024-04-30T03:54:12Z" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp``
Can access smtp.gmail.com just fine:
$ ping smtp.gmail.com
PING smtp.gmail.com (142.251.10.108) 56(84) bytes of data.
64 bytes from sd-in-f108.1e100.net (142.251.10.108): icmp_seq=1 ttl=56 time=107 ms
64 bytes from sd-in-f108.1e100.net (142.251.10.108): icmp_seq=2 ttl=56 time=107 ms
64 bytes from sd-in-f108.1e100.net (142.251.10.108): icmp_seq=3 ttl=56 time=108 ms
$ telnet smtp.gmail.com 587
Trying 74.125.68.108...
Connected to smtp.gmail.com.
Escape character is '^]'.
No email notifications are ever received.
Expected behavior
Receive email notifications via Gmail's SMTP server.
Screenshots
No response
Environment
Your logs
Additional context
No response
The text was updated successfully, but these errors were encountered: