After upgrading from 1.7.14-1.fc37 to 1.7.15-1.fc37 --override storage.upload_rate_limit=5000 gives a configuration error #731

Closed
opened 2023-07-23 16:51:15 +00:00 by AnthonyCaetano · 3 comments

What I'm trying to do and why

after upgrading borgmatic-1.7.14-1.fc37.noarch
to borgmatic-1.7.15-1.fc37.noarch

I run my nightly backup command:
borgmatic --override storage.upload_rate_limit=5000 create --verbosity 0 --stats

and I get an error:

/etc/borgmatic/config.yaml /etc/borgmatic.d /root/.config/borgmatic/config.yaml /root/.config/borgmatic.d: No valid configuration files found

> summary:
> /etc/borgmatic/config.yaml: Loading configuration file
> /etc/borgmatic/config.yaml: Error parsing configuration file
> Invalid override 'create'. Make sure you use the form: SECTION.OPTION=VALUE
> /etc/borgmatic/config.yaml /etc/borgmatic.d /root/.config/borgmatic/config.yaml /root/.config/borgmatic.d: No valid configuration files found

Need some help? https://torsion.org/borgmatic/#issues

Steps to reproduce

# borgmatic --override storage.upload_rate_limit=5000 create --verbosity 2 --stats

Actual behavior

summary:
/etc/borgmatic/config.yaml: Loading configuration file
/etc/borgmatic/config.yaml: Error parsing configuration file
Invalid override 'create'. Make sure you use the form: SECTION.OPTION=VALUE
/etc/borgmatic/config.yaml /etc/borgmatic.d /root/.config/borgmatic/config.yaml /root/.config/borgmatic.d: No valid configuration files found

Expected behavior

backup to run as per previous versions...

Other notes / implementation ideas

my config has this override in the storage section, see blow:

# grep -B6 upload_rate_limit /etc/borgmatic/config.yaml
storage:
    encryption_passphrase: "***REDACTED***"


    # Remote network upload rate limit in kiBytes/second. Defaults
    # to unlimited.
    upload_rate_limit: 3000

borgmatic version

1.7.15

borgmatic installation method

dnf

Borg version

1.2.4

Python version

3.11.4

Database version (if applicable)

No response

Operating system and version

NAME="Fedora Linux" VERSION="37 (Workstation Edition)"

### What I'm trying to do and why after upgrading borgmatic-1.7.14-1.fc37.noarch to borgmatic-1.7.15-1.fc37.noarch I run my nightly backup command: `borgmatic --override storage.upload_rate_limit=5000 create --verbosity 0 --stats` and I get an error: ``` /etc/borgmatic/config.yaml /etc/borgmatic.d /root/.config/borgmatic/config.yaml /root/.config/borgmatic.d: No valid configuration files found > summary: > /etc/borgmatic/config.yaml: Loading configuration file > /etc/borgmatic/config.yaml: Error parsing configuration file > Invalid override 'create'. Make sure you use the form: SECTION.OPTION=VALUE > /etc/borgmatic/config.yaml /etc/borgmatic.d /root/.config/borgmatic/config.yaml /root/.config/borgmatic.d: No valid configuration files found ``` Need some help? https://torsion.org/borgmatic/#issues ### Steps to reproduce `# borgmatic --override storage.upload_rate_limit=5000 create --verbosity 2 --stats` ### Actual behavior ``` summary: /etc/borgmatic/config.yaml: Loading configuration file /etc/borgmatic/config.yaml: Error parsing configuration file Invalid override 'create'. Make sure you use the form: SECTION.OPTION=VALUE /etc/borgmatic/config.yaml /etc/borgmatic.d /root/.config/borgmatic/config.yaml /root/.config/borgmatic.d: No valid configuration files found ``` ### Expected behavior backup to run as per previous versions... ### Other notes / implementation ideas my config has this override in the storage section, see blow: ``` # grep -B6 upload_rate_limit /etc/borgmatic/config.yaml storage: encryption_passphrase: "***REDACTED***" # Remote network upload rate limit in kiBytes/second. Defaults # to unlimited. upload_rate_limit: 3000 ``` ### borgmatic version 1.7.15 ### borgmatic installation method dnf ### Borg version 1.2.4 ### Python version 3.11.4 ### Database version (if applicable) _No response_ ### Operating system and version NAME="Fedora Linux" VERSION="37 (Workstation Edition)"
Owner

Thanks for filing this! What you're experiencing here is an issue that I believe is fixed in borgmatic 1.8.0. So you can either upgrade or you can move the create argument of your command to really anywhere else in your command-line. The problem is that create is being incorrectly interpreted as a second --override value, so if you put create either before the --override flag or after --verbosity 2 or --stats, then it should work.

Thanks for filing this! What you're experiencing here is an issue that I believe is fixed in borgmatic 1.8.0. So you can either upgrade or you can move the `create` argument of your command to really anywhere else in your command-line. The problem is that `create` is being incorrectly interpreted as a second `--override` value, so if you put `create` either before the `--override` flag or after `--verbosity 2` or `--stats`, then it should work.
witten added the
bug
label 2023-07-23 17:03:54 +00:00
Author

Perfect the re-ordering of the command options works perfectly.
I will upgrade later, for now this fixes my backups.
Thanks for this!

Perfect the re-ordering of the command options works perfectly. I will upgrade later, for now this fixes my backups. Thanks for this!
Owner

Sure thing!

Sure thing!
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#731
No description provided.