Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email notification errors with "fromAddress missing from config URL" #2059

Open
0x4E4448 opened this issue Dec 1, 2024 · 1 comment
Open

Comments

@0x4E4448
Copy link

0x4E4448 commented Dec 1, 2024

Describe the bug

When configuring email notification through environment variables the container experiences a fatal error. The exact error being:

Failed to initialize Shoutrrr notifications: error initializing router services: fromAddress missing from config URL\n

The environment variables configured were:

- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATIONS_LEVEL=debug
- WATCHTOWER_NOTIFICATIONS_EMAIL_FROM=watchtower@mydomaincom
- WATCHTOWER_NOTIFICATIONS_EMAIL_TO=watchtower@mydomain.com
- WATCHTOWER_NOTIFICATIONS_EMAIL_SERVER=mx.mydomain.com
- WATCHTOWER_NOTIFICATIONS_EMAIL_SERVER_PORT=25
- WATCHTOWER_NOTIFICATIONS_EMAIL_DELAY=2

If I configure using the notification URL, everything works as desired.

Version: 1.7.1
Deployed with Docker Compose.

Steps to reproduce

  1. Configure environment variables detailed above in compose.yaml
  2. docker compose up (or docker compose up -d

Expected behavior

Container should start and begin monitoring

Screenshots

No response

Environment

  • Platform: Ubuntu 24.04
  • Architecture: x86_64
  • Docker version: 27.3.1

Your logs

[+] Running 1/0
 ✔ Container watchtower-watchtower-1  Created                                                                                                                                            0.0s 
Attaching to watchtower-1
watchtower-1  | time="2024-12-01T04:07:31Z" level=fatal msg="Failed to initialize Shoutrrr notifications: error initializing router services: fromAddress missing from config URL\n"
watchtower-1 exited with code 1
watchtower-1  | time="2024-12-01T04:07:32Z" level=fatal msg="Failed to initialize Shoutrrr notifications: error initializing router services: fromAddress missing from config URL\n"
watchtower-1  | time="2024-12-01T04:07:32Z" level=fatal msg="Failed to initialize Shoutrrr notifications: error initializing router services: fromAddress missing from config URL\n"
watchtower-1  | time="2024-12-01T04:07:33Z" level=fatal msg="Failed to initialize Shoutrrr notifications: error initializing router services: fromAddress missing from config URL\n"
watchtower-1  | time="2024-12-01T04:07:34Z" level=fatal msg="Failed to initialize Shoutrrr notifications: error initializing router services: fromAddress missing from config URL\n"
watchtower-1  | time="2024-12-01T04:07:36Z" level=fatal msg="Failed to initialize Shoutrrr notifications: error initializing router services: fromAddress missing from config URL\n"
watchtower-1  | time="2024-12-01T04:07:39Z" level=fatal msg="Failed to initialize Shoutrrr notifications: error initializing router services: fromAddress missing from config URL\n"
watchtower-1  | time="2024-12-01T04:07:46Z" level=fatal msg="Failed to initialize Shoutrrr notifications: error initializing router services: fromAddress missing from config URL\n"

Additional context

No response

Copy link

github-actions bot commented Dec 1, 2024

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! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant