Borgmatic backup fails #1261

Closed
opened 2026-02-02 19:15:33 +00:00 by zjean · 2 comments

What I'm trying to do and why

I run my borgmatic backup, to test and check why it does not work, as follows:

docker compose exec borgmatic borgmatic create --verbosity 2 --list --stats

Steps to reproduce

Just regular borgmatic config file with apprise notifications.
Post backup command just echoes a bit.

Actual behavior

external-disk: Dumping SQLite database at /mnt/source/apps/zigbee2mqtt/data/database.db to /tmp/borgmatic-npsyc7s4/./borgmatic/sqlite_databases/localhost/zigbee2mqtt
external-disk: sqlite3 -bail /mnt/source/apps/zigbee2mqtt/data/database.db .dump > /tmp/borgmatic-npsyc7s4/./borgmatic/sqlite_databases/localhost/zigbee2mqtt
external-disk: Writing patterns to /tmp/borgmatic-npsyc7s4/borgmatic/tmp2l_3d_a5:
R /tmp/borgmatic-npsyc7s4/./borgmatic/sqlite_databases
+ /tmp/borgmatic-npsyc7s4/./borgmatic/sqlite_databases
R /tmp/borgmatic-npsyc7s4/./borgmatic/postgresql_databases
+ /tmp/borgmatic-npsyc7s4/./borgmatic/postgresql_databases
R /tmp/borgmatic-npsyc7s4/./borgmatic/mariadb_databases
+ /tmp/borgmatic-npsyc7s4/./borgmatic/mariadb_databases
R /etc/borgmatic.d/config.yaml
+ /etc/borgmatic.d/config.yaml
R /tmp/borgmatic-npsyc7s4/./borgmatic/bootstrap
+ /tmp/borgmatic-npsyc7s4/./borgmatic/bootstrap
R /mnt/source
! fm:*nextcloud/data/*/files_trashbin/*
! fm:*nextcloud/data/updater-*/backups/*
! fm:*esphome/config/.esphome/*
! fm:*ocis/*
! fm:*apps/test/*
! fm:*.vscode-server/*
! fm:*shared/media/youtube/*
external-disk: Checking file paths Borg plans to include
external-disk: BORG_PASSPHRASE=*** BORG_RSH=*** BORG_DEBUG_PASSPHRASE=*** BORG_DISPLAY_PASSPHRASE=*** BORG_RELOCATED_REPO_ACCESS_IS_OK=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_USE_CHUNKS_ARCHIVE=*** BORG_EXIT_CODES=*** borg create --patterns-from /tmp/borgmatic-npsyc7s4/borgmatic/tmp2l_3d_a5 --compression lz4 --read-special --remote-path /usr/local/bin/borg --list /mnt/borg-repository::borgmatic-backup-{now}.checkpoint --dry-run --list
external-disk: Calling bootstrap hook function remove_data_source_dumps
external-disk: Looking for bootstrap manifest files to remove in /tmp/borgmatic-*/borgmatic/bootstrap
external-disk: Removing bootstrap manifest at /tmp/borgmatic-npsyc7s4/borgmatic/bootstrap/manifest.json
external-disk: Calling btrfs hook function remove_data_source_dumps
external-disk: Calling lvm hook function remove_data_source_dumps
external-disk: Calling mariadb hook function remove_data_source_dumps
external-disk: Removing MariaDB data source dumps
external-disk: Calling mongodb hook function remove_data_source_dumps
external-disk: Removing MongoDB data source dumps
external-disk: Calling mysql hook function remove_data_source_dumps
external-disk: Removing MySQL data source dumps
external-disk: Calling postgresql hook function remove_data_source_dumps
external-disk: Removing PostgreSQL data source dumps
external-disk: Calling sqlite hook function remove_data_source_dumps
external-disk: Removing SQLite data source dumps
external-disk: Calling zfs hook function remove_data_source_dumps
external-disk: Running 2 commands for after create action hook
external-disk: BORG_PASSPHRASE=*** echo "Backup created."
Backup created.
external-disk: BORG_PASSPHRASE=*** echo "Calling Uptime Kuma after backup"
Calling Uptime Kuma after backup
external-disk: Error running actions for repository
external-disk: 'utf-8' codec can't decode byte 0xc3 in position 4095: unexpected end of data
/etc/borgmatic.d/config.yaml: Calling apprise hook function ping_monitor
/etc/borgmatic.d/config.yaml: Calling apprise hook function ping_monitor
/etc/borgmatic.d/config.yaml: Pinging Apprise services: ntfy
/etc/borgmatic.d/config.yaml: Language set to en
/etc/borgmatic.d/config.yaml: Loaded ntfy URL: ntfys://janwiebe-borgmatic-1d264961-4148-4f42-8fb8-9be925cf206a?priority=default&mode=cloud&image=yes&auth=basic&format=text&overflow=upstream
/etc/borgmatic.d/config.yaml: ntfy POST URL: https://ntfy.sh (cert_verify=True)
/etc/borgmatic.d/config.yaml: ntfy Payload: {'topic': 'janwiebe-borgmatic-1d264961-4148-4f42-8fb8-9be925cf206a', 'title': 'Ping!', 'message': 'Your backups have failed.'}
/etc/borgmatic.d/config.yaml: ntfy Headers: {'User-Agent': 'Apprise', 'Content-Type': 'application/json', 'X-Icon': 'https://github.com/caronc/apprise/raw/master/apprise/assets/themes/default/apprise-failure-256x256.png'}
/etc/borgmatic.d/config.yaml: Starting new HTTPS connection (1): ntfy.sh:443
/etc/borgmatic.d/config.yaml: https://ntfy.sh:443 "POST / HTTP/1.1" 200 311
/etc/borgmatic.d/config.yaml: Sent ntfy notification to 'https://ntfy.sh'.
/etc/borgmatic.d/config.yaml: Calling apprise hook function destroy_monitor
/etc/borgmatic.d/config.yaml: Error running configuration
/etc/borgmatic.d/config.yaml: Running after create/prune/compact/check error command hook
/etc/borgmatic.d/config.yaml: BORG_PASSPHRASE=*** echo "Error while creating a backup."
Error while creating a backup.
/etc/borgmatic.d/config.yaml: An error occurred

summary:
/etc/borgmatic.d/config.yaml: Loading configuration file
An error occurred
Error running actions for repository
'utf-8' codec can't decode byte 0xc3 in position 4095: unexpected end of data
Error running configuration

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

Expected behavior

Finish correctly

Other notes / implementation ideas

No idea what I can do to fix this.

borgmatic version

No response

borgmatic installation method

docker, borgmatic container modem7/borgmatic-docker:latest

Borg version

No response

Python version

No response

Database version (if applicable)

No response

Operating system and version

No response

### What I'm trying to do and why I run my borgmatic backup, to test and check why it does not work, as follows: `docker compose exec borgmatic borgmatic create --verbosity 2 --list --stats` ### Steps to reproduce Just regular borgmatic config file with apprise notifications. Post backup command just echoes a bit. ### Actual behavior ``` external-disk: Dumping SQLite database at /mnt/source/apps/zigbee2mqtt/data/database.db to /tmp/borgmatic-npsyc7s4/./borgmatic/sqlite_databases/localhost/zigbee2mqtt external-disk: sqlite3 -bail /mnt/source/apps/zigbee2mqtt/data/database.db .dump > /tmp/borgmatic-npsyc7s4/./borgmatic/sqlite_databases/localhost/zigbee2mqtt external-disk: Writing patterns to /tmp/borgmatic-npsyc7s4/borgmatic/tmp2l_3d_a5: R /tmp/borgmatic-npsyc7s4/./borgmatic/sqlite_databases + /tmp/borgmatic-npsyc7s4/./borgmatic/sqlite_databases R /tmp/borgmatic-npsyc7s4/./borgmatic/postgresql_databases + /tmp/borgmatic-npsyc7s4/./borgmatic/postgresql_databases R /tmp/borgmatic-npsyc7s4/./borgmatic/mariadb_databases + /tmp/borgmatic-npsyc7s4/./borgmatic/mariadb_databases R /etc/borgmatic.d/config.yaml + /etc/borgmatic.d/config.yaml R /tmp/borgmatic-npsyc7s4/./borgmatic/bootstrap + /tmp/borgmatic-npsyc7s4/./borgmatic/bootstrap R /mnt/source ! fm:*nextcloud/data/*/files_trashbin/* ! fm:*nextcloud/data/updater-*/backups/* ! fm:*esphome/config/.esphome/* ! fm:*ocis/* ! fm:*apps/test/* ! fm:*.vscode-server/* ! fm:*shared/media/youtube/* external-disk: Checking file paths Borg plans to include external-disk: BORG_PASSPHRASE=*** BORG_RSH=*** BORG_DEBUG_PASSPHRASE=*** BORG_DISPLAY_PASSPHRASE=*** BORG_RELOCATED_REPO_ACCESS_IS_OK=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_USE_CHUNKS_ARCHIVE=*** BORG_EXIT_CODES=*** borg create --patterns-from /tmp/borgmatic-npsyc7s4/borgmatic/tmp2l_3d_a5 --compression lz4 --read-special --remote-path /usr/local/bin/borg --list /mnt/borg-repository::borgmatic-backup-{now}.checkpoint --dry-run --list external-disk: Calling bootstrap hook function remove_data_source_dumps external-disk: Looking for bootstrap manifest files to remove in /tmp/borgmatic-*/borgmatic/bootstrap external-disk: Removing bootstrap manifest at /tmp/borgmatic-npsyc7s4/borgmatic/bootstrap/manifest.json external-disk: Calling btrfs hook function remove_data_source_dumps external-disk: Calling lvm hook function remove_data_source_dumps external-disk: Calling mariadb hook function remove_data_source_dumps external-disk: Removing MariaDB data source dumps external-disk: Calling mongodb hook function remove_data_source_dumps external-disk: Removing MongoDB data source dumps external-disk: Calling mysql hook function remove_data_source_dumps external-disk: Removing MySQL data source dumps external-disk: Calling postgresql hook function remove_data_source_dumps external-disk: Removing PostgreSQL data source dumps external-disk: Calling sqlite hook function remove_data_source_dumps external-disk: Removing SQLite data source dumps external-disk: Calling zfs hook function remove_data_source_dumps external-disk: Running 2 commands for after create action hook external-disk: BORG_PASSPHRASE=*** echo "Backup created." Backup created. external-disk: BORG_PASSPHRASE=*** echo "Calling Uptime Kuma after backup" Calling Uptime Kuma after backup external-disk: Error running actions for repository external-disk: 'utf-8' codec can't decode byte 0xc3 in position 4095: unexpected end of data /etc/borgmatic.d/config.yaml: Calling apprise hook function ping_monitor /etc/borgmatic.d/config.yaml: Calling apprise hook function ping_monitor /etc/borgmatic.d/config.yaml: Pinging Apprise services: ntfy /etc/borgmatic.d/config.yaml: Language set to en /etc/borgmatic.d/config.yaml: Loaded ntfy URL: ntfys://janwiebe-borgmatic-1d264961-4148-4f42-8fb8-9be925cf206a?priority=default&mode=cloud&image=yes&auth=basic&format=text&overflow=upstream /etc/borgmatic.d/config.yaml: ntfy POST URL: https://ntfy.sh (cert_verify=True) /etc/borgmatic.d/config.yaml: ntfy Payload: {'topic': 'janwiebe-borgmatic-1d264961-4148-4f42-8fb8-9be925cf206a', 'title': 'Ping!', 'message': 'Your backups have failed.'} /etc/borgmatic.d/config.yaml: ntfy Headers: {'User-Agent': 'Apprise', 'Content-Type': 'application/json', 'X-Icon': 'https://github.com/caronc/apprise/raw/master/apprise/assets/themes/default/apprise-failure-256x256.png'} /etc/borgmatic.d/config.yaml: Starting new HTTPS connection (1): ntfy.sh:443 /etc/borgmatic.d/config.yaml: https://ntfy.sh:443 "POST / HTTP/1.1" 200 311 /etc/borgmatic.d/config.yaml: Sent ntfy notification to 'https://ntfy.sh'. /etc/borgmatic.d/config.yaml: Calling apprise hook function destroy_monitor /etc/borgmatic.d/config.yaml: Error running configuration /etc/borgmatic.d/config.yaml: Running after create/prune/compact/check error command hook /etc/borgmatic.d/config.yaml: BORG_PASSPHRASE=*** echo "Error while creating a backup." Error while creating a backup. /etc/borgmatic.d/config.yaml: An error occurred summary: /etc/borgmatic.d/config.yaml: Loading configuration file An error occurred Error running actions for repository 'utf-8' codec can't decode byte 0xc3 in position 4095: unexpected end of data Error running configuration Need some help? https://torsion.org/borgmatic/#issues ``` ### Expected behavior Finish correctly ### Other notes / implementation ideas No idea what I can do to fix this. ### borgmatic version _No response_ ### borgmatic installation method docker, borgmatic container modem7/borgmatic-docker:latest ### Borg version _No response_ ### Python version _No response_ ### Database version (if applicable) _No response_ ### Operating system and version _No response_
Owner

Thanks for filing this. Good news.. The bug was just fixed in #1258 and will be part of the next release!

Thanks for filing this. Good news.. The bug was just fixed in #1258 and will be part of the next release!
witten 2026-02-02 19:32:24 +00:00
Owner

Released in borgmatic 2.1.2!

Released in borgmatic 2.1.2!
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#1261
No description provided.