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

ramalama fails to start in container mode #509

Open
vpavlin opened this issue Dec 11, 2024 · 5 comments
Open

ramalama fails to start in container mode #509

vpavlin opened this issue Dec 11, 2024 · 5 comments

Comments

@vpavlin
Copy link

vpavlin commented Dec 11, 2024

When I try to run ramalama on Ubuntu (ramalama version 0.2.0), I get this error:

$ ramalama  run ollama://qwen:0.5b
Error: crun: executable file `-v/home/vpavlin/.local/share/ramalama:/var/lib/ramalama` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found

Debug reveals it is due to misplaced image name - being before -v args

$ ramalama --debug  run ollama://qwen:0.5b
run_cmd:  podman run --rm -i --label RAMALAMA --security-opt=label=disable --name ramalama_RmAC9HYY4N -t --device /dev/dri quay.io/ramalama/ramalama:latest -v/home/vpavlin/.local/share/ramalama:/var/lib/ramalama -v/usr/local/bin/ramalama:/usr/bin/ramalama:ro -v/home/vpavlin/.local/pipx/venvs/ramalama/lib/python3.11/site-packages/ramalama:/usr/share/ramalama/ramalama:ro -v/tmp/RamaLama_shortname_5uz9odyo:/usr/share/ramalama/shortnames.conf:ro,Z -e RAMALAMA_TRANSPORT -v/home/vpavlin/.local/pipx/venvs/ramalama/lib/python3.11/site-packages/ramalama-0.2.0.dist-info:/usr/share/ramalama/ramalama-0.2.0.dist-info:ro python3 /usr/bin/ramalama --debug run ollama://qwen:0.5b
Error: crun: executable file `-v/home/vpavlin/.local/share/ramalama:/var/lib/ramalama` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found
@ericcurtin
Copy link
Collaborator

Does this fix your issue @vpavlin ? #511

@rhatdan
Copy link
Member

rhatdan commented Dec 12, 2024

What version of RamaLama are you running?

@vpavlin
Copy link
Author

vpavlin commented Dec 12, 2024

As mentioned in the issue desc - ramalama version 0.2.0

Does this fix your issue @vpavlin ? #511

I am not sure how to test this - it seems main behaves significantly differently than my installed version (0.2.0) and main seems to work ok, but it is also executing different command(s) :D

@ericcurtin
Copy link
Collaborator

ericcurtin commented Dec 12, 2024

find /usr -name "model.py"

Open the file with a text editor, make the change in this PR, test.

@rhatdan
Copy link
Member

rhatdan commented Dec 13, 2024

which ramalama

You are execing ramalama inside of the podman container, which I did not think happened any longer.

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

No branches or pull requests

3 participants