From 8d0bbae800db31b6f90bc284e0061a64f6e5d159 Mon Sep 17 00:00:00 2001 From: Jacob Emmert-Aronson Date: Sat, 23 Oct 2021 14:39:15 -0700 Subject: [PATCH 1/2] Add a hint for misconfigured helper_binaries_dir Signed-off-by: Jacob Emmert-Aronson --- common/pkg/config/config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/pkg/config/config.go b/common/pkg/config/config.go index 45230703d8..d43dfa88f7 100644 --- a/common/pkg/config/config.go +++ b/common/pkg/config/config.go @@ -1151,10 +1151,11 @@ func (c *Config) FindHelperBinary(name string, searchPATH bool) (string, error) if searchPATH { return exec.LookPath(name) } + configHint := "To resolve this error, set the helper_binaries_dir key in the `[engine]` section of containers.conf to directory containing your helper binaries." if len(c.Engine.HelperBinariesDir) == 0 { - return "", errors.Errorf("could not find %q because there are no helper binary directories configured", name) + return "", errors.Errorf("could not find %q because there are no helper binary directories configured. %s", name, configHint) } - return "", errors.Errorf("could not find %q in one of %v", name, c.Engine.HelperBinariesDir) + return "", errors.Errorf("could not find %q in one of %v. %s", name, c.Engine.HelperBinariesDir, configHint) } // ImageCopyTmpDir default directory to store tempory image files during copy From 9680fe7bf6d3fc75eebcf4432b3e2338a4274a68 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 25 Oct 2021 12:36:34 -0400 Subject: [PATCH 2/2] Update pkg/config/config.go Co-authored-by: Valentin Rothberg --- common/pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/pkg/config/config.go b/common/pkg/config/config.go index d43dfa88f7..3d7101399d 100644 --- a/common/pkg/config/config.go +++ b/common/pkg/config/config.go @@ -1151,7 +1151,7 @@ func (c *Config) FindHelperBinary(name string, searchPATH bool) (string, error) if searchPATH { return exec.LookPath(name) } - configHint := "To resolve this error, set the helper_binaries_dir key in the `[engine]` section of containers.conf to directory containing your helper binaries." + configHint := "To resolve this error, set the helper_binaries_dir key in the `[engine]` section of containers.conf to the directory containing your helper binaries." if len(c.Engine.HelperBinariesDir) == 0 { return "", errors.Errorf("could not find %q because there are no helper binary directories configured. %s", name, configHint) }