python3-lxc icon indicating copy to clipboard operation
python3-lxc copied to clipboard

Insufficiently detailed error messages

Open pevogam opened this issue 4 years ago • 0 comments

Hi,

After hundreds of container startups using the python3 bindings sometimes I get a sporadic error like:

    c = lxc.Container(container_id)

  File "/usr/lib64/python3.9/site-packages/lxc/__init__.py", line 157, in __init__
    _lxc.Container.__init__(self, name)

RuntimeError: Container_init:lxc.c:542: error during init for container 'c1'.

My problem with this is that there is no detail whatsoever on the reason behind the RuntimeError. I know that these are generated bindings but is there any easy way to debug this like make it possible to output debug information via some DEBUG enabling env variable or perhaps a log file?

Thanks in advance,

pevogam avatar Aug 18 '21 16:08 pevogam