https://kedro.org/ logo
#questions
Title
# questions
a

Andreas_Kokolantonakis

06/14/2023, 12:19 PM
hello everyone, I am using Kedro docker and I am running on an issue where docker cannot find the globals I am specifying for my enviroments. e,g I want to run
kedro run --env=dev
from docker and I am getting
ValueError: Failed to format pattern '${s3_root_path}': no config value found, no default provided
What’s the best way to fix it? Thank you in advance!
d

datajoely

06/14/2023, 12:24 PM
is that key in your
globals.yml
?
a

Andreas_Kokolantonakis

06/14/2023, 12:24 PM
yes it is, without docker its running as expected
not in the base directory though, in the environments
d

datajoely

06/14/2023, 12:36 PM
docker shouldn’t change that
let me look at the error
a

Andreas_Kokolantonakis

06/14/2023, 12:37 PM
it recognizes only the globals from the base/ directory
although all the files are part of the image
d

datajoely

06/14/2023, 12:38 PM
is your
CONF_SOURCE
in
settings.py
at all different?
a

Andreas_Kokolantonakis

06/14/2023, 12:40 PM
different how? inside the docker?
d

datajoely

06/14/2023, 12:41 PM
this shouldn’t really behave differently because it’s running in docker, files are files. Are you able to jump into a debugger and confirm the files are there at runtime?
n

Nok Lam Chan

06/14/2023, 12:43 PM
it recognizes only the globals from the base/ directory
Is your global defined a file or directly in
settings.py
a

Andreas_Kokolantonakis

06/14/2023, 12:46 PM
my globals are files in different directories (“environments”). Inside the settings.py I have this
CONF_SOURCE = “conf” CONFIG_LOADER_CLASS = TemplatedConfigLoader CONFIG_LOADER_ARGS = { “globals_pattern”: “*globals.yml”, }
but as I said, it works fine outside of docker
n

Nok Lam Chan

06/14/2023, 12:47 PM
Can you check if these files are added to the docker? Are you able to inspect it with something like the VSCode docker extension?
a

Andreas_Kokolantonakis

06/14/2023, 12:48 PM
settings_py_—_HEDNO_AA_Losses-hedno_aa_losses__SSH__d90a856e-4abc-4c7e-b747-c423e33c33ac-jupyter_.png
yes all the files are inside the image
n

Nok Lam Chan

06/14/2023, 12:52 PM
Docker shouldn’t make any difference, as it is just an isolated environment. If all the files are inside the docker, it’s quite weird it’s cannot find the config.
One possible cause is permission.
a

Andreas_Kokolantonakis

06/14/2023, 12:54 PM
yeah could be, I will try to change the permissions, its strange because base/ folder works fine
👍🏼 1