-
Notifications
You must be signed in to change notification settings - Fork 107
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 serve cannot be ctrl-c #618
Comments
Seems like it's this issue: |
Doesn't occur without containers |
I am not using podman (at the moment):)
|
podman or docker (I said containers, just referenced the podman issue as an example), doesn't happen with no containers |
What does |
Looks like you are running in a docker container, which should forward the SIGTERM to the PID 1 of the container, llama-server. If this is not exiting, then I would guess llama-serve is ignoring SIGTERM. |
Doing some testing it looks like llama-serve is ignoreing SIGINT and SIGTERM |
It's supposed to call this in llama.cpp
|
@rhatdan tested sending signals to llama-server with no containers with:
and
manually. Seemed to work fine. |
I can confirm it's reproducible with podman on macOS, could be a podman remote thing though. |
I reproduced locally and entered the container and the llama-run would not exit with kill TERM or kill INT. Do not know what the difference is. |
Well, not much:D
|
It looks like it's both an issue for podman and docker. Probably the best way to fix is in llama.cpp upstream, we should log this there. |
The interesting thing is what could cause it to work correctly outside of a container but blow up inside of a container. this means it must be examining something about it's environment and blocking the receiving of these signals. |
ramalama serve without
-d
will attach to the TTY, but will not react to CTRL+CThe text was updated successfully, but these errors were encountered: