Config error #88

Closed
opened 2018-08-17 17:11:37 +00:00 by vpashka · 7 comments

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

repositories:
    - test.borg

exclude_patterns:
    - /home/*/.cache

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

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 <module> 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 repositories: - test.borg exclude_patterns: - /home/*/.cache 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
vpashka reopened this issue 2018-08-17 17:34:01 +00:00
Author

I apologize. It was accidentally closed.
The error is actual.

I apologize. It was accidentally closed. The error is actual.
Author

Found the cause of the problem.
I had an old version of pykwalify.
I apologize for the false alarm.

Found the cause of the problem. I had an old version of pykwalify. I apologize for the false alarm.
Owner

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.

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.
Author

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

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
Owner

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 is 15.01, and the next is 1.0.0!

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](https://github.com/Grokzen/pykwalify/tags?after=1.1.0) is `15.01`, and the next is `1.0.0`!
Author

It seems that so. And I was not lucky that it was she who caught me)

It seems that so. And I was not lucky that it was she who caught me)
Owner

The fix has been released as part of borgmatic 1.2.3.

The fix has been released as part of borgmatic 1.2.3.
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#88
No description provided.