[bug]: docker/run.sh fails to parse the GPU_DRIVER parameter into the profile
variable unless you delete commented lines above
#6725
Labels
bug
Something isn't working
Is there an existing issue for this problem?
Operating system
Linux
GPU vendor
AMD (ROCm)
GPU model
No response
GPU VRAM
No response
Version number
4.2.7post1
Browser
Irrelevant
Python dependencies
No response
What happened
The script at docker/run.sh contains the following line:
profile="$(awk -F '=' '/GPU_DRIVER/ {print $2}' .env)"
This does not work and ends up reading the comment above the actual GPU_DRIVER line, resulting in
profile
being set to an empty string. Removing the comment manually fixes it.What you expected to happen
The run.sh script should have correctly handled the commented line (ignored it), or the guide should be explicitly telling users to delete all commented lines from
.env.sample
after copying it to.env
.How to reproduce the problem
Following the guide at https://github.com/invoke-ai/InvokeAI/blob/main/docker/README.md, uncomment the
GPU_DRIVER
line in.env
and set it to any value. Then try to userun.sh
. You will get an errorno such service: invokeai-
due toprofile
being set to an empty stringAdditional context
No response
Discord username
No response
The text was updated successfully, but these errors were encountered: