Get erros / Could not find the error #135

Closed
opened 2019-01-09 08:01:59 +00:00 by beli3ver · 3 comments

Hello,

I create a config for me. Then I modified some vars.
Now I get these errors:

validation.invalid
 --- All found errors ---
["Key 'checkpoint_interval' was not defined. Path: '/location'", "Key 'compression' was not defined. Path: '/location'", "Key 'encryption_passphrase' was not defined. Path: '/location'"]
Errors found but will not raise exception...
/etc/borgmatic/config.yaml: Error running configuration file
An error occurred while parsing a configuration file at /etc/borgmatic/config.yaml:
Key 'checkpoint_interval' was not defined. Path: '/location'
Key 'compression' was not defined. Path: '/location'
Key 'encryption_passphrase' was not defined. Path: '/location'

This is my config file

location:
    source_directories:
        - /home

    repositories:
        - /media/malte/088360be-4d5a-4ec1-ad42-2e37227b5a5d/Sicherung
    
    encryption_passphrase: "xxxxxxxxx"

    checkpoint_interval: 1800

    compression: lz4

    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

Thanks for your help

Hello, I create a config for me. Then I modified some vars. Now I get these errors: ```bash validation.invalid --- All found errors --- ["Key 'checkpoint_interval' was not defined. Path: '/location'", "Key 'compression' was not defined. Path: '/location'", "Key 'encryption_passphrase' was not defined. Path: '/location'"] Errors found but will not raise exception... /etc/borgmatic/config.yaml: Error running configuration file An error occurred while parsing a configuration file at /etc/borgmatic/config.yaml: Key 'checkpoint_interval' was not defined. Path: '/location' Key 'compression' was not defined. Path: '/location' Key 'encryption_passphrase' was not defined. Path: '/location' ``` This is my config file ```yaml location: source_directories: - /home repositories: - /media/malte/088360be-4d5a-4ec1-ad42-2e37227b5a5d/Sicherung encryption_passphrase: "xxxxxxxxx" checkpoint_interval: 1800 compression: lz4 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 ``` Thanks for your help
Owner

It looks like you're missing the storage: section header. Judging by your config file, it should probably go above encryption_passphrase. The storage: header should have the same indent level as the existing location: header.

Give that a shot and let me know if it works out for you!

It looks like you're missing the `storage:` section header. Judging by your config file, it should probably go above `encryption_passphrase`. The `storage:` header should have the same indent level as the existing `location:` header. Give that a shot and let me know if it works out for you!
witten added the
question / support
label 2019-01-09 21:56:54 +00:00
Owner

Oh, and exclude_patterns needs to go in the location: section, so that'll have to be moved. You can check out the original config file schema here for reference: https://projects.torsion.org/witten/borgmatic/src/branch/master/borgmatic/config/schema.yaml

Oh, and `exclude_patterns` needs to go in the `location:` section, so that'll have to be moved. You can check out the original config file schema here for reference: https://projects.torsion.org/witten/borgmatic/src/branch/master/borgmatic/config/schema.yaml
Owner

Hopefully that works out for you. If not, please feel free to comment or file another issue!

Hopefully that works out for you. If not, please feel free to comment or file another issue!
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#135
No description provided.