Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Creating config failed (sysconfig-file not found). #801

Closed
gbonnema opened this issue Apr 9, 2023 · 3 comments · Fixed by #802
Closed

Error: Creating config failed (sysconfig-file not found). #801

gbonnema opened this issue Apr 9, 2023 · 3 comments · Fixed by #802
Labels

Comments

@gbonnema
Copy link

gbonnema commented Apr 9, 2023

When starting on my snapper adventure, I could successfully create the config for root, but subsequently creating one for the subvolume home does not work (see copy of statements) :

 gbonnema  ~  sudo snapper create-config /  gbonnema  ~  sudo snapper create-config /home Creating config failed (sysconfig-file not found).  gbonnema  ~  sudo vim /etc/sysconfig/snapper  gbonnema  ~  sudo snapper list-configs Config | Subvolume -------+---------- root | /  gbonnema  ~  sudo snapper create-config /home Creating config failed (sysconfig-file not found).

Below other statements that do work and show the current structure:

` gbonnema  ~  sudo ls -l /etc/snapper/configs
total 4
-rw-r--r--+ 1 root root 1203 Apr 9 07:51 root
 gbonnema  ~  sudo ls -l /etc/sysconfig/snapper
-rw-r--r--+ 1 root root 125 Apr 9 07:51 /etc/sysconfig/snapper
 gbonnema  ~  sudo cat /etc/sysconfig/snapper

Path: System/Snapper

Type: string

Default: ""

List of snapper configurations.

SNAPPER_CONFIGS="root"

 gbonnema  ~  sudo btrfs subvol list /home
ID 256 gen 2438008 top level 5 path home
ID 257 gen 2438008 top level 5 path root
ID 262 gen 2437862 top level 257 path root/var/lib/machines
ID 887 gen 2437890 top level 256 path gbonnema/.local/share/Steam
ID 890 gen 2437948 top level 257 path root/.snapshots
 gbonnema  ~  sudo snapper list-configs
Config | Subvolume
-------+----------
root | /
 gbonnema  ~  
`

I checked out an issue that appears solved, but to no avail (#733). Maybe I missed something in there? I am a new user for this utility, so the solution may be facedroppingly simple.

Guus.

@gbonnema
Copy link
Author

gbonnema commented Apr 9, 2023

I want to add, that as I could create the root config, so I was very surprised that the home config gave such a basic error. How could snapper create a root config, but not a home config?

@aschnell
Copy link
Member

The error handling looks incorrect and the command used. Try snapper --config home create-config /home.

@aschnell aschnell added the bug label Apr 12, 2023
aschnell added a commit to aschnell/snapper that referenced this issue Apr 12, 2023
@aschnell aschnell linked a pull request Apr 12, 2023 that will close this issue
@gbonnema
Copy link
Author

@aschnell Thank you very much. I guess my brain was on idle while I read the first few lines of the man page (and I did read them ... several times). I guess the words just did not land (from the man page):
"For each filesystem or subvolume that should be snapshotted by snapper, a configuration file is required,
see snapper-configs(5). The setup can be done with the create-config command."

So, I got the create-config, but not the --config part of the command. My bad. Thanks for the pointer: it works.

Now to find out how snapper will make snapshots on a regular basis! Next phase!!

aschnell added a commit that referenced this issue Apr 12, 2023
- fixed error message (gh##801)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants