<div dir="ltr">strace command is your friend.<div><br></div><div>b.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 January 2016 at 12:12, Viktor Trojanovic <span dir="ltr"><<a href="mailto:viktor@troja.ch" target="_blank">viktor@troja.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
    <br>
    <br>
    <div>On 20.01.2016 23:50, Fajar A. Nugraha
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Thu, Jan 21, 2016 at 5:49 AM,
            Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank"></a><a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">
                <div class="gmail_extra">
                  <div class="gmail_quote"><span>On Thu, Jan
                      21, 2016 at 5:23 AM, Viktor Trojanovic <span dir="ltr"><<a href="mailto:viktor@troja.ch" target="_blank">viktor@troja.ch</a>></span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I
                        just did a system upgrade on my Arch System
                        which included updating the kernel, systemd and
                        lxc to the newest versions. After having done
                        so, I cannot interact with my Linux container
                        any longer. The system within the container
                        still seems to work fine and can be contacted
                        from outside (Samba server) but if I try to use
                        one of the lxc commands to query or otherwise
                        interact with the container (e.g. lxc-ls -f,
                        lxc-stop, lxc-console, lxc-attach), the command
                        hangs until I cancel it with CTRL+C.<br>
                        <br>
                        I get the following message when cancelling
                        lxc-ls -f (as root):<br>
                        <br>
                        ^CTraceback (most recent call list):<br>
                          File "/usr/bin/lxc-ls", line 432, in
                        <module><br>
                            containers = get_containers(root=True)<br>
                          File "user/bin/lxc-ls", line 261, in
                        get_containers<br>
                            if container.controllable:<br>
                        KeyboardInterrupt<br>
                        <br>
                        Regular lxc-ls works normal, by the way.<br>
                        <br>
                        I can probably just reboot the server but I
                        still wanted to ask around if anyone has an idea
                        why this is happening and what I could do except
                        rebooting to regain control of LXC? I tried
                        already systemctl restart lxc but that doesn't
                        help.<br>
                        <br>
                      </blockquote>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                    </span>
                    <div>Do you have lxcfs installed? If yes, this
                      should be a know issue. When you restart lxcfs,
                      all existing running containers that use it will
                      be unable to access lxcfs-provided resources.
                      AFAIK restarting lxc service does restart running
                      containers.</div>
                    <div><br>
                    </div>
                  </div>
                </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>That should be: AFAIK restarting lxc service does <b>NOT
              </b>restart running containers.<br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">
                <div class="gmail_extra">
                  <div class="gmail_quote">
                    <div>Try killing one of those containers (lxc-stop
                      -k -n ...), start it, and then test again. If it
                      works, do the same for other containers.</div>
                    <span><font color="#888888">
                        <div><br>
                        </div>
                        <div>-- </div>
                        <div>Fajar</div>
                      </font></span></div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote></div></div>
    Hi Fajar, <br>
    <br>
    I'm not using lxcfs, just regular directory based containers. <br>
    <br>
    I cannot do anything with the containers. <br>
    <br>
    lxc-stop -k<br>
    lxc-ls -f<br>
    lxc-attach<br>
    lxc-console<br>
    systemctl stop lxc (or restart lxc)<br>
    <br>
    All these commands hang forever, I have to interrupt with CTRL+C and
    no output is written to the logs. But the container system keeps
    working fine, so does the host system. <br><span class="HOEnZb"><font color="#888888">
    <br>
    Viktor<br>
    <br>
  </font></span></div>

<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>