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

Fix "ray: command not found Error" with Kuberay v0.3.0+ #1002

Merged
merged 1 commit into from
Jun 17, 2023

Conversation

Yicheng-Lu-llll
Copy link
Member

@Yicheng-Lu-llll Yicheng-Lu-llll commented Jun 16, 2023

Recent updates to Kuberay (versions beyond 0.3.0) have been causing a /bin/bash: ray: command not found error when users attempt to create rayjobs through Flyte.

Why does this result in a /bin/bash: ray: command not found error?

  1. The Dockerfile adds /opt/venv to PATH using ENV PATH="${VENV}/bin:$PATH", rather than writing it into files like .bashrc. Thus, if a new shell is initiated and reads files like .bashrc first, $PATH may get overridden. The recent modifications to Kuberay initiate such a shell and thus override the PATH (see this PR for more details), causing the /opt/venv directory not to be included in the PATH.

How to resolve this?

This issue can be addressed by eliminating the redundant Python3 virtual environment. Given that the base image is python:3.8-slim-buster, there's no need to establish an additional Python virtual environment in the /opt/venv directory, nor is there a need to add /opt/venv to PATH.

Signed-off-by: Yicheng-Lu-llll <[email protected]>
@pingsutw pingsutw merged commit 3d29c2d into flyteorg:master Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants