Checks Fail, but were previously working #854

Closed
opened 2024-04-21 21:05:05 +00:00 by tehNiemer · 5 comments

What I'm trying to do and why

Run a check

Steps to reproduce

initialize the check with borgmatic check

Actual behavior

Check fails with the below error

Starting checks. 16:01:29 CDT
Traceback (most recent call last):
  File "/root/.local/bin/borgmatic", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic                                                     /commands/borgmatic.py", line 899, in main
    or list(collect_configuration_run_summary_logs(configs, config_paths, argume                                                     nts))
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                     ^^^^^
  File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic                                                     /commands/borgmatic.py", line 781, in collect_configuration_run_summary_logs
    results = list(run_configuration(config_filename, config, config_paths, argu                                                     ments))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                     ^^^^^^^
  File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic                                                     /commands/borgmatic.py", line 143, in run_configuration
    yield from run_actions(
  File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic                                                     /commands/borgmatic.py", line 368, in run_actions
    borgmatic.actions.check.run_check(
  File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic                                                     /actions/check.py", line 622, in run_check
    borgmatic.borg.check.check_archives(
  File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic                                                     /borg/check.py", line 140, in check_archives
    + make_check_flags(checks, archive_filter_flags)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/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

Check does not fail.

Other notes / implementation ideas

No response

borgmatic version

1.8.10

borgmatic installation method

pip install

Borg version

1.2.4

Python version

3.11.2

Database version (if applicable)

No response

Operating system and version

Debian GNU/Linux 12 (bookworm)

### What I'm trying to do and why Run a check ### Steps to reproduce initialize the check with `borgmatic check` ### Actual behavior Check fails with the below error ``` Starting checks. 16:01:29 CDT Traceback (most recent call last): File "/root/.local/bin/borgmatic", line 8, in <module> sys.exit(main()) ^^^^^^ File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic /commands/borgmatic.py", line 899, in main or list(collect_configuration_run_summary_logs(configs, config_paths, argume nts)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic /commands/borgmatic.py", line 781, in collect_configuration_run_summary_logs results = list(run_configuration(config_filename, config, config_paths, argu ments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic /commands/borgmatic.py", line 143, in run_configuration yield from run_actions( File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic /commands/borgmatic.py", line 368, in run_actions borgmatic.actions.check.run_check( File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic /actions/check.py", line 622, in run_check borgmatic.borg.check.check_archives( File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/site-packages/borgmatic /borg/check.py", line 140, in check_archives + make_check_flags(checks, archive_filter_flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/.local/pipx/venvs/borgmatic/lib/python3.11/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 Check does not fail. ### Other notes / implementation ideas _No response_ ### borgmatic version 1.8.10 ### borgmatic installation method pip install ### Borg version 1.2.4 ### Python version 3.11.2 ### Database version (if applicable) _No response_ ### Operating system and version Debian GNU/Linux 12 (bookworm)
Owner

Ugh, this definitely sounds like a bug.. Thanks for filing it! Can I get a look at the checks: section of your configuration?

Ugh, this definitely sounds like a bug.. Thanks for filing it! Can I get a look at the `checks:` section of your configuration?
witten added the
bug
label 2024-04-21 21:12:39 +00:00
Author

Sure thing, here it is.

checks:
    - name: archives
      frequency: 2 weeks
    - name: data
      frequency: 1 month

Sure thing, here it is. ``` checks: - name: archives frequency: 2 weeks - name: data frequency: 1 month ```
Owner

Got it, thanks! It repros here. The problem seems to be the data check in particular. So if you'd like to omit that one until this issue is fixed, that would at least unblock you to continue running borgmatic check.

Got it, thanks! It repros here. The problem seems to be the `data` check in particular. So if you'd like to omit that one until this issue is fixed, that would at least unblock you to continue running `borgmatic check`.
Owner

This has been fixed in main and will be part of the next release. Thanks again for reporting this!

This has been fixed in main and will be part of the next release. Thanks again for reporting this!
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#854
No description provided.