Type error with newly initialized repo #857

Closed
opened 2024-04-24 11:20:51 +00:00 by The-Judge · 4 comments

What I'm trying to do and why

I am using the official borgmatic Docker container to backup one of my hosts. It is configured to use a repo via ssh:// on a remote backup host (see docker-compose.yml and config.yaml in "Steps to reproduce").

With the destination folder on the destination-host being empty, I execute: docker compose exec -it borgmatic borgmatic init --encryption repokey, which seems to work OK:

After that, I trigger the first backup using docker compose exec -it borgmatic borgmatic create --verbosity 1 --list --stats, which also succeeds:

/etc/borgmatic.d/config.yaml: Pinging Healthchecks start
/etc/borgmatic.d/config.yaml: Running 2 commands for pre-backup hook
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
OK: 212 MiB in 84 packages
OK: 212 MiB in 84 packages
tc-m710q-home: Creating archive
ssh://borg_store01@10.110.0.151:22/mnt/backup/store01: Dumping PostgreSQL databases
ssh://borg_store01@10.110.0.151:22/mnt/backup/store01: Ignoring configured "read_special" value of false, as true is needed for database hooks.
Creating archive at "ssh://borg_store01@10.110.0.151:22/mnt/backup/store01::store01-2024-04-24T12:43:26.271553"
A /etc/borgmatic.d/config.yaml
A /root/.borgmatic/bootstrap/manifest.json
A /root/.borgmatic/postgresql_databases/nextcloud-db/nextcloud
------------------------------------------------------------------------------
Repository: ssh://borg_store01@10.110.0.151:22/mnt/backup/store01
Archive name: store01-2024-04-24T12:43:26.271553
Archive fingerprint: 1be2a90137496b67566c166c8761b9626d1da2f1747f2905ac08b2aa0fcc8986
Time (start): Wed, 2024-04-24 12:43:27
Time (end):   Wed, 2024-04-24 12:43:34
Duration: 6.94 seconds
Number of files: 3
Utilization of max. archive size: 0%
------------------------------------------------------------------------------
                       Original size      Compressed size    Deduplicated size
This archive:               27.71 MB             27.27 MB             27.27 MB
All archives:               27.71 MB             27.27 MB             27.27 MB
                       Unique chunks         Total chunks
Chunk index:                      16                   16
------------------------------------------------------------------------------
/etc/borgmatic.d/config.yaml: Pinging Healthchecks log
/etc/borgmatic.d/config.yaml: Pinging Healthchecks finish

summary:
/etc/borgmatic.d/config.yaml: Successfully ran configuration file

prune and compact also works.

But as soon as I execute check, I get a TypeError:

Traceback (most recent call last):
  File "/usr/local/bin/borgmatic", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 899, in main
    or list(collect_configuration_run_summary_logs(configs, config_paths, arguments))
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 781, in collect_configuration_run_summary_logs
    results = list(run_configuration(config_filename, config, config_paths, arguments))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 143, in run_configuration
    yield from run_actions(
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 368, in run_actions
    borgmatic.actions.check.run_check(
  File "/usr/local/lib/python3.12/site-packages/borgmatic/actions/check.py", line 622, in run_check
    borgmatic.borg.check.check_archives(
  File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 140, in check_archives
    + make_check_flags(checks, archive_filter_flags)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 71, in make_check_flags
    checks += ('archives',)
TypeError: unsupported operand type(s) for +=: 'set' and 'tuple'

Steps to reproduce

config.yaml

source_directories:
    - /mnt/source
repositories:
    - path: ssh://borg_store01@10.110.0.151:22/mnt/backup/store01
      label: tc-m710q-home
exclude_patterns:
    - '*.pyc'
    - '/etc/ssl'
    - '*/.pyenv'
    - '*/lost+found'
    - '*/db'
    - '*/.rustup'
    - '*/.git'
    - '*/piwigo-db'
exclude_if_present:
    - .nobackup
keep_exclude_tags: true

keep_daily: 7
keep_weekly: 4
keep_monthly: 6
prefix: ""

archive_name_format: store01-{now:%Y-%m-%dT%H:%M:%S.%f}
match_archives: sh:*-20??-??-??T??:??:??.*

# Notify when backups do not run for configured amount of grace time
healthchecks:
    ping_url: '***REMOVED***'

compression: auto,zlib
retries: 10
retry_wait: 30
lock_wait: 300

checks:
    - name: extract
      frequency: 1 month
    - name: data
      frequency: 1 week
    - name: repository
      frequency: 1 day

# Make sure latest pg_dump version is available
before_backup:
    - apk add postgresql16-client --repository=https://dl-cdn.alpinelinux.org/alpine/edge/main
    - apk add mariadb-connector-c

postgresql_databases:
    - name: nextcloud
      username: '***REMOVED***'
      password: '***REMOVED***'
      format: custom
      hostname: nextcloud-db

docker-compose.yml

services:
  borgmatic:
    image: ghcr.io/borgmatic-collective/borgmatic
    restart: unless-stopped
    volumes:
      - ./etc:/etc/borgmatic.d:Z
      - ./ssh:/root/.ssh:Z
      - borg-fs-cache-vol-1:/root/.cache/borg
      - /mnt/borg_restore_destination:/mnt/dest
      - /etc:/mnt/source/etc:ro
      - /root:/mnt/source/root:ro
      - /home:/mnt/source/home:ro
      - /srv:/mnt/source/srv:ro
      - /opt:/mnt/source/opt:ro
    environment:
      - TZ=${TZ}
      - BORG_PASSPHRASE=${BORG_PASSPHRASE}
    networks:
      docker_compose_default:
        aliases:
          - borgmatic
    labels:
      com.centurylinklabs.watchtower.enable: true

networks:
  docker_compose_default:
    external: true
  docker_base_default:
    external: true

volumes:
  borg-fs-cache-vol-1:

Actual behavior

Traceback (most recent call last):
  File "/usr/local/bin/borgmatic", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 899, in main
    or list(collect_configuration_run_summary_logs(configs, config_paths, arguments))
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 781, in collect_configuration_run_summary_logs
    results = list(run_configuration(config_filename, config, config_paths, arguments))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 143, in run_configuration
    yield from run_actions(
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 368, in run_actions
    borgmatic.actions.check.run_check(
  File "/usr/local/lib/python3.12/site-packages/borgmatic/actions/check.py", line 622, in run_check
    borgmatic.borg.check.check_archives(
  File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 140, in check_archives
    + make_check_flags(checks, archive_filter_flags)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 71, in make_check_flags
    checks += ('archives',)
TypeError: unsupported operand type(s) for +=: 'set' and 'tuple'

Expected behavior

Not receiving a Python Exception

Other notes / implementation ideas

No response

borgmatic version

1.8.10

borgmatic installation method

Container - https://github.com/borgmatic-collective/docker-borgmatic

Borg version

1.2.8 in container, 1.2.4 on repo server

Python version

3.12.3 in container, 3.11.2 on repo server

Database version (if applicable)

No response

Operating system and version

Container Host: Debian 11, Container Image: Alpine Linux v3.19, Repo-Server: Debian 12

### What I'm trying to do and why I am using the [official borgmatic Docker container](https://github.com/borgmatic-collective/docker-borgmatic) to backup one of my hosts. It is configured to use a repo via ssh:// on a remote backup host (see docker-compose.yml and config.yaml in "Steps to reproduce"). With the destination folder on the destination-host being empty, I execute: `docker compose exec -it borgmatic borgmatic init --encryption repokey`, which seems to work OK: After that, I trigger the first backup using `docker compose exec -it borgmatic borgmatic create --verbosity 1 --list --stats`, which also succeeds: ``` /etc/borgmatic.d/config.yaml: Pinging Healthchecks start /etc/borgmatic.d/config.yaml: Running 2 commands for pre-backup hook fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz OK: 212 MiB in 84 packages OK: 212 MiB in 84 packages tc-m710q-home: Creating archive ssh://borg_store01@10.110.0.151:22/mnt/backup/store01: Dumping PostgreSQL databases ssh://borg_store01@10.110.0.151:22/mnt/backup/store01: Ignoring configured "read_special" value of false, as true is needed for database hooks. Creating archive at "ssh://borg_store01@10.110.0.151:22/mnt/backup/store01::store01-2024-04-24T12:43:26.271553" A /etc/borgmatic.d/config.yaml A /root/.borgmatic/bootstrap/manifest.json A /root/.borgmatic/postgresql_databases/nextcloud-db/nextcloud ------------------------------------------------------------------------------ Repository: ssh://borg_store01@10.110.0.151:22/mnt/backup/store01 Archive name: store01-2024-04-24T12:43:26.271553 Archive fingerprint: 1be2a90137496b67566c166c8761b9626d1da2f1747f2905ac08b2aa0fcc8986 Time (start): Wed, 2024-04-24 12:43:27 Time (end): Wed, 2024-04-24 12:43:34 Duration: 6.94 seconds Number of files: 3 Utilization of max. archive size: 0% ------------------------------------------------------------------------------ Original size Compressed size Deduplicated size This archive: 27.71 MB 27.27 MB 27.27 MB All archives: 27.71 MB 27.27 MB 27.27 MB Unique chunks Total chunks Chunk index: 16 16 ------------------------------------------------------------------------------ /etc/borgmatic.d/config.yaml: Pinging Healthchecks log /etc/borgmatic.d/config.yaml: Pinging Healthchecks finish summary: /etc/borgmatic.d/config.yaml: Successfully ran configuration file ``` `prune` and `compact` also works. But as soon as I execute `check`, I get a TypeError: ``` Traceback (most recent call last): File "/usr/local/bin/borgmatic", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 899, in main or list(collect_configuration_run_summary_logs(configs, config_paths, arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 781, in collect_configuration_run_summary_logs results = list(run_configuration(config_filename, config, config_paths, arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 143, in run_configuration yield from run_actions( File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 368, in run_actions borgmatic.actions.check.run_check( File "/usr/local/lib/python3.12/site-packages/borgmatic/actions/check.py", line 622, in run_check borgmatic.borg.check.check_archives( File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 140, in check_archives + make_check_flags(checks, archive_filter_flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 71, in make_check_flags checks += ('archives',) TypeError: unsupported operand type(s) for +=: 'set' and 'tuple' ``` ### Steps to reproduce ### config.yaml ```yaml source_directories: - /mnt/source repositories: - path: ssh://borg_store01@10.110.0.151:22/mnt/backup/store01 label: tc-m710q-home exclude_patterns: - '*.pyc' - '/etc/ssl' - '*/.pyenv' - '*/lost+found' - '*/db' - '*/.rustup' - '*/.git' - '*/piwigo-db' exclude_if_present: - .nobackup keep_exclude_tags: true keep_daily: 7 keep_weekly: 4 keep_monthly: 6 prefix: "" archive_name_format: store01-{now:%Y-%m-%dT%H:%M:%S.%f} match_archives: sh:*-20??-??-??T??:??:??.* # Notify when backups do not run for configured amount of grace time healthchecks: ping_url: '***REMOVED***' compression: auto,zlib retries: 10 retry_wait: 30 lock_wait: 300 checks: - name: extract frequency: 1 month - name: data frequency: 1 week - name: repository frequency: 1 day # Make sure latest pg_dump version is available before_backup: - apk add postgresql16-client --repository=https://dl-cdn.alpinelinux.org/alpine/edge/main - apk add mariadb-connector-c postgresql_databases: - name: nextcloud username: '***REMOVED***' password: '***REMOVED***' format: custom hostname: nextcloud-db ``` ### docker-compose.yml ```yaml services: borgmatic: image: ghcr.io/borgmatic-collective/borgmatic restart: unless-stopped volumes: - ./etc:/etc/borgmatic.d:Z - ./ssh:/root/.ssh:Z - borg-fs-cache-vol-1:/root/.cache/borg - /mnt/borg_restore_destination:/mnt/dest - /etc:/mnt/source/etc:ro - /root:/mnt/source/root:ro - /home:/mnt/source/home:ro - /srv:/mnt/source/srv:ro - /opt:/mnt/source/opt:ro environment: - TZ=${TZ} - BORG_PASSPHRASE=${BORG_PASSPHRASE} networks: docker_compose_default: aliases: - borgmatic labels: com.centurylinklabs.watchtower.enable: true networks: docker_compose_default: external: true docker_base_default: external: true volumes: borg-fs-cache-vol-1: ``` ### Actual behavior ``` Traceback (most recent call last): File "/usr/local/bin/borgmatic", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 899, in main or list(collect_configuration_run_summary_logs(configs, config_paths, arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 781, in collect_configuration_run_summary_logs results = list(run_configuration(config_filename, config, config_paths, arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 143, in run_configuration yield from run_actions( File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 368, in run_actions borgmatic.actions.check.run_check( File "/usr/local/lib/python3.12/site-packages/borgmatic/actions/check.py", line 622, in run_check borgmatic.borg.check.check_archives( File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 140, in check_archives + make_check_flags(checks, archive_filter_flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 71, in make_check_flags checks += ('archives',) TypeError: unsupported operand type(s) for +=: 'set' and 'tuple' ``` ### Expected behavior Not receiving a Python Exception ### Other notes / implementation ideas _No response_ ### borgmatic version 1.8.10 ### borgmatic installation method Container - https://github.com/borgmatic-collective/docker-borgmatic ### Borg version 1.2.8 in container, 1.2.4 on repo server ### Python version 3.12.3 in container, 3.11.2 on repo server ### Database version (if applicable) _No response_ ### Operating system and version Container Host: Debian 11, Container Image: Alpine Linux v3.19, Repo-Server: Debian 12
Author

PS: I tried to run the individual checks using --only, one by one.

extract, repository and archives works fine.

data yields:

Traceback (most recent call last):
  File "/usr/local/bin/borgmatic", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 899, in main
    or list(collect_configuration_run_summary_logs(configs, config_paths, arguments))
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 781, in collect_configuration_run_summary_logs
    results = list(run_configuration(config_filename, config, config_paths, arguments))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 143, in run_configuration
    yield from run_actions(
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 368, in run_actions
    borgmatic.actions.check.run_check(
  File "/usr/local/lib/python3.12/site-packages/borgmatic/actions/check.py", line 622, in run_check
    borgmatic.borg.check.check_archives(
  File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 140, in check_archives
    + make_check_flags(checks, archive_filter_flags)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 71, in make_check_flags
    checks += ('archives',)
TypeError: unsupported operand type(s) for +=: 'set' and 'tuple'

spot yields:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 368, in run_actions
    borgmatic.actions.check.run_check(
  File "/usr/local/lib/python3.12/site-packages/borgmatic/actions/check.py", line 649, in run_check
    spot_check(
  File "/usr/local/lib/python3.12/site-packages/borgmatic/actions/check.py", line 483, in spot_check
    spot_check_config = next(check for check in config['checks'] if check['name'] == 'spot')
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/borgmatic", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 899, in main
    or list(collect_configuration_run_summary_logs(configs, config_paths, arguments))
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 781, in collect_configuration_run_summary_logs
    results = list(run_configuration(config_filename, config, config_paths, arguments))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 143, in run_configuration
    yield from run_actions(
RuntimeError: generator raised StopIteration
PS: I tried to run the individual checks using `--only`, one by one. `extract`, `repository` and `archives` works fine. `data` yields: ``` Traceback (most recent call last): File "/usr/local/bin/borgmatic", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 899, in main or list(collect_configuration_run_summary_logs(configs, config_paths, arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 781, in collect_configuration_run_summary_logs results = list(run_configuration(config_filename, config, config_paths, arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 143, in run_configuration yield from run_actions( File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 368, in run_actions borgmatic.actions.check.run_check( File "/usr/local/lib/python3.12/site-packages/borgmatic/actions/check.py", line 622, in run_check borgmatic.borg.check.check_archives( File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 140, in check_archives + make_check_flags(checks, archive_filter_flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/borg/check.py", line 71, in make_check_flags checks += ('archives',) TypeError: unsupported operand type(s) for +=: 'set' and 'tuple' ``` `spot` yields: ``` Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 368, in run_actions borgmatic.actions.check.run_check( File "/usr/local/lib/python3.12/site-packages/borgmatic/actions/check.py", line 649, in run_check spot_check( File "/usr/local/lib/python3.12/site-packages/borgmatic/actions/check.py", line 483, in spot_check spot_check_config = next(check for check in config['checks'] if check['name'] == 'spot') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ StopIteration The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/bin/borgmatic", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 899, in main or list(collect_configuration_run_summary_logs(configs, config_paths, arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 781, in collect_configuration_run_summary_logs results = list(run_configuration(config_filename, config, config_paths, arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/borgmatic/commands/borgmatic.py", line 143, in run_configuration yield from run_actions( RuntimeError: generator raised StopIteration ```
Owner

The traceback with data is a known issue that has been fixed in main and will be part of the next release. You can omit data from your checks in the meantime.

However I have not seen that error with the spot check and I will leave this ticket open to investigate that! Thank you for filing this.

The traceback with `data` is [a known issue](https://projects.torsion.org/borgmatic-collective/borgmatic/issues/854) that has been fixed in main and will be part of the next release. You can omit `data` from your checks in the meantime. However I have not seen that error with the `spot` check and I will leave this ticket open to investigate that! Thank you for filing this.
witten added the
bug
label 2024-04-24 15:43:35 +00:00
Owner

Okay, the traceback you reported with the spot check has been fixed in main and will be part of the next release. It turns out that it should have been an error, as running the spot check without corresponding configuration isn't supported. However I've changed it from an ugly traceback to a more friendly error message when this occurs. Thanks again for reporting it!

Okay, the traceback you reported with the [spot check](https://torsion.org/borgmatic/docs/how-to/deal-with-very-large-backups/#spot-check) has been fixed in main and will be part of the next release. It turns out that it _should_ have been an error, as running the spot check without corresponding configuration isn't supported. However I've changed it from an ugly traceback to a more friendly error message when this occurs. Thanks again for reporting it!
Owner

Released in borgmatic 1.8.11!

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