I’m trying to use salt to create and install cacher proxy, following @unman’s notes at shaker/cacher at main · unman/shaker · GitHub, and I get the error at the beginning of the process running qubesctl state.apply cacher.create (I think there is typo in the note, containing extra period at the end of the command?)
[user@dom0 ~]$ sudo qubesctl state.apply cacher.create
[ERROR ] Command ‘systemd-run’ failed with return code: 1
[ERROR ] stdout: Running scope as unit: run-r23b25769022a4d7a809aec112943d1fc.scope
Using sys-whonix as UpdateVM to download updates for Dom0; this may take some time…
Running ‘/usr/lib/qubes/qubes-download-dom0-updates.sh --doit --nogui ‘–exclude=qubes-template-*’ ‘-y’ ‘–best’ ‘–allowerasing’ ‘–clean’ ‘–action=install’ ‘debian-11-minimal’’ on sys-whonix
sys-whonix: command failed with code: 1
[ERROR ] retcode: 1
[ERROR ] Error occurred installing package(s). Additional info follows:
errors:
- Running scope as unit: run-r23b25769022a4d7a809aec112943d1fc.scope
Using sys-whonix as UpdateVM to download updates for Dom0; this may take some time…
Running `/usr/lib/qubes/qubes-download-dom0-updates.sh --doit --nogui ‘–exclude=qubes-template-*’ ‘-y’ ‘–best’ ‘–allowerasing’ ‘–clean’ ‘–action=install’ 'debian-11-minimal’’ on sys-whonix
sys-whonix: command failed with code: 1
qubesctl state.apply cacher.create (I think there is typo in the note,
containing extra period at the end of the command?)
yes
[user@dom0 ~]$ sudo qubesctl state.apply cacher.create
[ERROR ] Command ‘systemd-run’ failed with return code: 1
[ERROR ] stdout: Running scope as unit:
run-r23b25769022a4d7a809aec112943d1fc.scope
Using sys-whonix as UpdateVM to download updates for Dom0; this may take some
time…
Running ‘/usr/lib/qubes/qubes-download-dom0-updates.sh --doit --nogui
‘–exclude=qubes-template-*’ ‘-y’ ‘–best’ ‘–allowerasing’ ‘–clean’
‘–action=install’ ‘debian-11-minimal’’ on sys-whonix
sys-whonix: command failed with code: 1
[ERROR ] retcode: 1
[ERROR ] Error occurred installing package(s). Additional info follows:
errors:
- Running scope as unit: run-r23b25769022a4d7a809aec112943d1fc.scope
Using sys-whonix as UpdateVM to download updates for Dom0; this may take
some time…
Running `/usr/lib/qubes/qubes-download-dom0-updates.sh --doit --nogui
‘–exclude=qubes-template-*’ ‘-y’ ‘–best’ ‘–allowerasing’ ‘–clean’
‘–action=install’ 'debian-11-minimal’’ on sys-whonix
sys-whonix: command failed with code: 1
as well as template-debian-10(or)11-minimal.sls in /srv/salt from
I tried all possible combinations as well, having/not havingdebian-10(or)11-minimalinstalled but the command just don’t want to download debian-10(or)11-minimal.
Not only that template will not be skipped or downloaded, also nothing can be cloned by clone.sls
So, the error #3 is
Summary
ID: qvm-clone-id
Function: qvm.clone
Name: template-cacher
Result: False
`Comment: One or more requisite failed: template-debian-11-minimal.template-debian-11-minima`l
Started: 13:14:46.871614
Duration: 0.009 ms
Changes:
I tried all possible combinations as well, having/not having debian-10(or)11-minimalinstalled but the command just don’t want to
download debian-10(or)11-minimal.
If the template is installed with the correct name, Salt must recognize
it with qvm.present and not try to install it since it is already.
By the way the original include from the cacher repository is :
include:
template-debian-10-minimal
So in this use case the salt recipe is a top level of the directory, if
you ask template-debian-11-minimal.template-debian-11-minimal, that is
template-debian-11-minimal.sls in the directory template-debian-11-minimal.
Thanks for your efforts dal, but I can’t follow you. It is trivial to manually download any debian template and to clone it to whatever name, and to put that name in other formulas to proper place, which I actually did, and then all other formulas work. My cacher qube was already set 10 days ago and is working flawlessly both with debian and fedora qubes.
I just wanted to discover what is wrong with first two formulas so other users having the same issue could benefit from it. Obviously they won’t, from me at least.
There are also some inconsistencies in unman’s two guides, with bind dirs, for example (they do not match here and here), and I thought something more must’ve been missing with template-debian-10-minimal.sls and clone.sls, but couldn’t seem to figure out what it was.
Hello @enmus.
Did you manage to get the cacher to work?
I’m having similar issues with qubesctl state.apply cacher.create but my error is:
local:
Data failed to compile:
------------
Specified SLS template-debian-11-minimal in saltenv base is not available on the salt master or through a configured fileserver
I did, but as I said, I had to manually download/install debian-xx-template and to create clone of it. After that, the rest of the salt formula works.
You have to be more detailed in order to get help.