question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Long running container.execute() fails with "NotFound"

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
ajkavanaghcommented, Mar 17, 2018

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.

1reaction
ajkavanaghcommented, Mar 16, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found