Trouble running custom config #687

Closed
opened 2023-04-30 21:53:01 +00:00 by Soumik_Dutta · 4 comments
Contributor

What I'm trying to do and why

I am trying to run borgmatic via borgmatic --config=test.yaml

Steps to reproduce (if a bug)

  • Clone borgmatic locally by git clone https://projects.torsion.org/borgmatic-collective/borgmatic
  • Create and activate a virtualenv by
    • virtualenv .venv
    • source .venv/bin/activate
  • Run pip3 install --editable .
  • Create a test config at the root borgmatic folder
  • Run borgmatic --config=test.yaml

Actual behavior (if a bug)

Produces errors:

test.yaml: No valid configuration files found

summary:
test.yaml: Error parsing configuration file
Configuration file schema could not be found
test.yaml: No valid configuration files found

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

Expected behavior (if a bug)

Runs the config file without errors

Other notes / implementation ideas

NA

Environment

borgmatic version: 1.7.13.dev0

borgmatic installation method: Cloned the repo and created a locally editable installation via pip3

Borg version: borg 1.2.3

Python version: 3.10.6

operating system and version: Pop!_OS 22.04 with kernel 6.2.6-76060206-generic x86_64 x86_64 GNU/Linux with all the latest updates as of May 1

#### What I'm trying to do and why I am trying to run borgmatic via `borgmatic --config=test.yaml` #### Steps to reproduce (if a bug) - Clone borgmatic locally by `git clone https://projects.torsion.org/borgmatic-collective/borgmatic` - Create and activate a virtualenv by - `virtualenv .venv` - `source .venv/bin/activate` - Run `pip3 install --editable .` - Create a test config at the root borgmatic folder - Run `borgmatic --config=test.yaml` #### Actual behavior (if a bug) Produces errors: ``` test.yaml: No valid configuration files found summary: test.yaml: Error parsing configuration file Configuration file schema could not be found test.yaml: No valid configuration files found Need some help? https://torsion.org/borgmatic/#issues ``` #### Expected behavior (if a bug) Runs the config file without errors #### Other notes / implementation ideas NA #### Environment **borgmatic version:** 1.7.13.dev0 **borgmatic installation method:** Cloned the repo and created a locally editable installation via `pip3` **Borg version:** borg 1.2.3 **Python version:** 3.10.6 **operating system and version:** `Pop!_OS 22.04` with kernel `6.2.6-76060206-generic x86_64 x86_64 GNU/Linux` with all the latest updates as of May 1
Owner

Thanks for filing this, including all the reproduction steps. I did manage to repro the issue when using --editable both in a virtualenv and without one. It does not repro however when installing without --editable.

I'm guessing this issue was introduced by 8cb5a42a9e, which touched the schema-loading code.

Thanks for filing this, including all the reproduction steps. I did manage to repro the issue when using `--editable` both in a virtualenv and without one. It does not repro however when installing *without* `--editable`. I'm guessing this issue was introduced by 8cb5a42a9e156f126faf3797fff55a8bf95f4b61, which touched the schema-loading code.
witten added the
bug
label 2023-04-30 23:01:50 +00:00
Owner

I believe I have a fix checked in now (in main). Please give it a shot when you get a chance and let me know if your copy of borgmatic is able to find the schema. Thanks!

I believe I have a fix checked in now (in main). Please give it a shot when you get a chance and let me know if your copy of borgmatic is able to find the schema. Thanks!
Author
Contributor

Thanks! Now everything is working fine again.

Thanks! Now everything is working fine again.
Owner

This was just released in borgmatic 1.7.13!

This was just released in borgmatic 1.7.13!
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#687
No description provided.