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

[bug]: docker/run.sh fails to parse the GPU_DRIVER parameter into the profile variable unless you delete commented lines above #6725

Open
1 task done
complover116 opened this issue Aug 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@complover116
Copy link

Is there an existing issue for this problem?

  • I have searched the existing issues

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 use run.sh. You will get an error no such service: invokeai- due to profile being set to an empty string

Additional context

No response

Discord username

No response

@complover116 complover116 added the bug Something isn't working label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant