healthchecks.io receiving "success" ping when borgmatic fails #1067

Closed
opened 2025-04-11 19:11:37 +00:00 by apollo13 · 3 comments
Contributor

What I'm trying to do and why

I am running borgmatic with:

lvm:

healthchecks: {ping_url: "https://hc-ping.com/my_secret_uid"}

from inside the borgmatic docker container. Since the container doesn't ship lsblk by default the backup fails:

ssh://xxx/./paas_fox.borg: Error running actions for repository
ssh://xxx/./paas_fox.borg: [Errno 2] No such file or directory: 'lsblk'
/etc/borgmatic.d/config.yaml: An error occurred

summary:
An error occurred
Error running actions for repository
[Errno 2] No such file or directory: 'lsblk'

Need some help? https://torsion.org/borgmatic/#issues

healtchecks.io is notified but the check result is "OK".

Steps to reproduce

Run borgmatic with lvm snapshots and healthchecks enabled (see config example above). Make sure that the backup fails (ie lsblk is not installed).

Actual behavior

No response

Expected behavior

No response

Other notes / implementation ideas

No response

borgmatic version

2.0.2

borgmatic installation method

container

Borg version

borg 1.4.0

Python version

Python 3.12.9

Database version (if applicable)

No response

Operating system and version

No response

### What I'm trying to do and why I am running borgmatic with: ``` lvm: healthchecks: {ping_url: "https://hc-ping.com/my_secret_uid"} ``` from inside the borgmatic docker container. Since the container doesn't ship lsblk by default the backup fails: ``` ssh://xxx/./paas_fox.borg: Error running actions for repository ssh://xxx/./paas_fox.borg: [Errno 2] No such file or directory: 'lsblk' /etc/borgmatic.d/config.yaml: An error occurred summary: An error occurred Error running actions for repository [Errno 2] No such file or directory: 'lsblk' Need some help? https://torsion.org/borgmatic/#issues ``` healtchecks.io is notified but the check result is "OK". ### Steps to reproduce Run borgmatic with lvm snapshots and healthchecks enabled (see config example above). Make sure that the backup fails (ie lsblk is not installed). ### Actual behavior _No response_ ### Expected behavior _No response_ ### Other notes / implementation ideas _No response_ ### borgmatic version 2.0.2 ### borgmatic installation method container ### Borg version borg 1.4.0 ### Python version Python 3.12.9 ### Database version (if applicable) _No response_ ### Operating system and version _No response_
Owner

Thanks for filing this, but it's actually already fixed in #1065, which will be part of the next release!

Thanks for filing this, but it's actually already fixed in #1065, which will be part of the next release!
Author
Contributor

Sigh, I really do fail in finding something in issues :D Thanks!

Sigh, I really do fail in finding something in issues :D Thanks!
Owner

No worries! It's not always easy to go spelunking and find stuff in closed tickets.

No worries! It's not always easy to go spelunking and find stuff in closed tickets.
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
borgmatic-collective/borgmatic#1067
No description provided.