Closed Grenite closed 10 months ago
Hey @Grenite!
We believe this was due to a delay on lean engine shutting down, we've increased the command timeout because it was tight and improve the error log. If it happens again please run docker logs {container name}
so we can look closer at what is lean doing, which is causing the delay. To get the docker container name you can run docker ps
. Release in lean cli version 1.0.171
Thank you, closing the issue for now 👍
In my local algorithm deployments I frequently experienced an issue where the command "docker live stop" did not stop my live deployments and resulting in errors like this:
I have determined that in the file lean/commands/live/stop.py the issue lies upon the following variable "data":
where the "$" character in the json member "$type" is not being escaped when it is passed to the docker exec command in function write_to_file() in lean-cli/lean/components/docker/docker_manager.py and thus fails the write the stop command to the docker container. I found a workaround by adding a line after line 450 in the write_to_file() function of docker_manager.py to the following:
And after adding that line the error no longer occurs