Config error #88
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#88
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello.
I builed the latest release of version 1.2.2, but it does not work.
$ borgmatic -c test.yaml
Traceback (most recent call last):
File "/usr/bin/borgmatic", line 9, in
load_entry_point('borgmatic==1.2.2', 'console_scripts', 'borgmatic')()
File "/usr/lib/python3/site-packages/borgmatic/commands/borgmatic.py", line 241, in main
run_configuration(config_filename, args)
File "/usr/lib/python3/site-packages/borgmatic/commands/borgmatic.py", line 125, in run_configuration
config = validate.parse_configuration(config_filename, validate.schema_filename())
File "/usr/lib/python3/site-packages/borgmatic/config/validate.py", line 89, in parse_configuration
parsed_result = validator.validate(raise_exception=False)
File "/usr/lib/python3/site-packages/pykwalify/core.py", line 108, in validate
errors = self._start_validate(self.source)
File "/usr/lib/python3/site-packages/pykwalify/core.py", line 146, in _start_validate
root_rule = Rule(schema=self.schema)
File "/usr/lib/python3/site-packages/pykwalify/rule.py", line 60, in init
self.init(schema, "")
File "/usr/lib/python3/site-packages/pykwalify/rule.py", line 130, in init
raise RuleError("Unknown key: {} found : {}".format(k, path))
pykwalify.errors.RuleError: <RuleError: error code 4: Unknown key: version found : >
$ cat test.yaml
location:
# List of source directories to backup. Globs are expanded.
source_directories:
- /home/pv/borg-test/data
retention:
# Retention policy for how many backups to keep in each category.
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
consistency:
# List of consistency checks to run: "repository", "archives", or both.
checks:
- repository
- archives
I apologize. It was accidentally closed.
The error is actual.
Found the cause of the problem.
I had an old version of pykwalify.
I apologize for the false alarm.
No worries. If you let me know what old version of pykwalify you had, I might be able to add a compatibility version range in
setup.py
so that this won't happen again.I'm afraid it will be difficult to do. It turned out to be very old.
https://github.com/Grokzen/pykwalify/releases/tag/15.01
borgmatic has a declared dependency on
pykwalify>=1.6.0
, but it looks like pykwalify switched their versioning scheme to go backwards at one point. One release is15.01
, and the next is1.0.0
!It seems that so. And I was not lucky that it was she who caught me)
The fix has been released as part of borgmatic 1.2.3.