Long running container.execute() fails with "NotFound"
See original GitHub issueI try to run a script that installs a lot of packages through container.execute() but it fails with a pylxd.exceptions.NotFound Exception.
After digging around i found that getting the result from the operation fails, see L299.
Running the same script through lxc exec bootstraptest /root/bootstrap.sh
works fine.
Issue Analytics
- State:
- Created 6 years ago
- Comments:20 (9 by maintainers)
Top Results From Across the Web
docker: executable file not found in $PATH - Stack Overflow
The container name has to be after all of the arguments. Bad: docker run <container_name> -v $(pwd):/src -it. Good: docker run -v $( ......
Read more >How to Fix and Debug Docker Containers Like a Superhero
Take the container's default command and attempt to run it again. A “command not found” error message will appear.
Read more >Error when running Docker with entrypoint script in Linux VM
It is weird that this is working locally (I'm on Windows 10) all the entry points I'm trying build and run successfully with...
Read more >Troubleshoot common errors with API calls in Amazon ECS
This error is logged when the specified cluster isn't found. Example: $ aws ecs run-task --task-definition CentOS --cluster example-cluster -- ...
Read more >Troubleshoot common issues - Azure Container Instances
Learn how to troubleshoot common issues when your deploy, run, ... rpc error: code 2 desc Error: image t/aci-hellowrld:latest not found", ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I spent a few hours trying to break the lxc client in the same way and it appears to be rock solid. Tried all sorts of short and long running scripts, with no output and lots of output from the commands, but the lxc client appeared to behave itself. Just sorting out the tests on this change and then I’ll PR it.
@mkorcha thanks for the example code. I’ve reproduced the problem using it (there’s a slight bug in the first command
['apt-get update']
which needs to be['apt-get', 'update']
).The good news, is that I’ve also found and fixed the problem. I’ll get a patch set up as soon as I can, once I’ve done some more rigorous testing with it. It’s not a bug in lxd; very much in when the sockets are being closed before fetching the result code from lxd.