这是indexloc提供的服务,不要输入任何密码
Skip to content

SMTP Notification "i/o timeout" #663

@Riscue

Description

@Riscue

Describe the bug

Fails when sending email notification

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade the image to v2.44.1
  2. Take a backup when using the SMTP notification URL
  3. The backup completes successfully but fails when sending email notification

Expected behavior

Send notification successfully

Version (please complete the following information):

  • Image Version: v2.44.1, v2.45.0
  • Docker Version:
  • Docker Compose Version (if applicable):

Additional context

I think this PR broke sendNotification method. #643

Success in v2.43.4
Success in v2.44.0
Fails in v2.44.1
Fails in v2.45.0

Problem must be in v2.44.0...v2.44.1

Notification Url:

NOTIFICATION_URLS=smtp://SMTP_DOMAIN:25?fromAddress=EMAIL_ADDRESS&toAddresses=EMAIL_ADDRESS

Locally accessible and not password protected, works before v2.44.1

Log Output:

level=ERROR msg="Fatal error running command: main.(*script).runHooks: error running hook: main.(*script).notify: error sending notification: main.(*script).sendNotification: error sending message: error getting SMTP client: error connecting to server: dial tcp: lookup SMTP_DOMAIN: i/o timeout" error="main.(*command).runAsCommand: error running script: main.runScript.func4: the script ran successfully, but an error occurred calling the registered hooks: main.(*script).runHooks: error running hook: main.(*script).notify: error sending notification: main.(*script).sendNotification: error sending message: error getting SMTP client: error connecting to server: dial tcp: lookup SMTP_DOMAIN: i/o timeout"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions