# LXC Containers Stats Are Not Shown

**URL:** <https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616>\
**Category:** Help\
**Created:** [December 8, 2022, 9:58am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616 "2022-12-08T09:58:24Z")\
**Posts on this page:** 13\
**Page:** 4

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [February 21, 2023, 8:52am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/62 "2023-02-21T08:52:18Z")

</div>

@Christopher_Akritid1

Netdata started now. Error log showed that it’s couldn’t bind to the default netdata port, seemed like some processes are still running. Killed the already running processes. Now netdata is running.

The metrics are SHOWN.

However, I added the same search pattern on another host that’s also affected (and running v1.37.1), but there the metrics are still missing.

---

<div class="post-metadata">

**Author:** ![Christopher\_Akritid1](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/christopher_akritid1/32/419_2.png) [@Christopher\_Akritid1](https://community.netdata.cloud/u/Christopher_Akritid1)\
**Post date:** [February 21, 2023, 3:32pm UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/63 "2023-02-21T15:32:59Z")

</div>

I suspect that Netdata wasn’t properly restarted, which another possible bug we have on your specific OS/Kernel.

The same pattern working on one machine and not the other screams permission issues, but let’s not go further here, this is complicated enough to require a real time discussion. See Ilya’s message above and get on a Discord conversation with him. We’ll probably have to replicate the set up in our lab.

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [April 3, 2023, 7:17am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/64 "2023-04-03T07:17:04Z")

</div>

@ilyam8 Could you please check your Discord. I’ve created a post and tagged you and my colleague.

Thanks for your time.

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [April 14, 2023, 11:04am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/65 "2023-04-14T11:04:40Z")

</div>

@ilyam8

The issue is back Ilya. The host (Kes) that we made the changes on during the end of the call, doesn’t seem to work for some reason. We’ve not made any changes from then on but it suddenly stopped working.

So we just uninstalled and followed the procedure to install static only version from the stable channel again, still no. There’s no croup find worker process running. Tried installing the nightly version as well with the static again, same results.

Here I attached the error log. Please have a look.

> **[error.log](https://drive.google.com/file/d/1YzaNVzP-32qPYTLcThbMX1_hslEppsf-/view?usp=sharing)**
>
> Google Drive file.

Thank you.

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [April 17, 2023, 8:10am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/66 "2023-04-17T08:10:38Z")

</div>

@ilyam8

Some more information.

On a host with static version installed, on one host, the home dir was not set to /opt/netdata instead it was still /var/lib/netdata

```auto
netdata:x:115:118::/var/lib/netdata:/usr/sbin/nologin

```

So maybe changing the home dir after installing the static version wasn’t the fix - maybe this is why on another host even static version didn’t show the LXC container metrics.

Just wanted to update you with this.

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [April 18, 2023, 10:36am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/67 "2023-04-18T10:36:01Z")

</div>

Netdata fails to start if the home dir is wrong. What’s the current status? Do you have problems with LXC containers or not?

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [April 18, 2023, 10:38am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/68 "2023-04-18T10:38:51Z")

</div>

It still runs even if the home dir is incorrect. No, container metrics are not shown.

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [April 18, 2023, 10:50am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/69 "2023-04-18T10:50:09Z")

</div>

Not possible, if

- the home dir is `/var/lib/netdata` and
- static install

Netdata fails to start and `systemctl status netdata` shows that the main PID `(code=exited, status=1/FAILURE)`.

* * *

> The issue is back Ilya. The host (Kes) that we made the changes on during the end of the call, doesn’t seem to work for some reason. We’ve not made any changes from then on but it suddenly stopped working.

Can you please elaborate a bit, do I understand correctly:

- you switched from native packages (deb) to static install on N servers (stable version).
- it worked (we switched 2 servers during our call).
- after some time all container metrics just disappear? On all servers? And Netdata restart doesn’t help?

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [April 18, 2023, 10:59am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/70 "2023-04-18T10:59:08Z")

</div>

Well, I’m not sure then. The one that’s working with the static install has the var lib home dir. I’m not gonna touch that as it’s working, haha.

Yes, on host Kes it worked - the one on which we made the change before we quit the call, that one stopped working now. Reinstall too didn’t work.

Yes, static and stable version.

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [April 25, 2023, 9:17am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/71 "2023-04-25T09:17:37Z")

</div>

@ilyam8 Any update on this?

Let me know if you need any logs or something that may help you with debugging.

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [September 20, 2023, 10:26am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/72 "2023-09-20T10:26:26Z")

</div>

@ilyam8 Any update on this issue?

I see this issue even on the latest stable version of Netdata. The container metrics suddenly disappear. Had to reinstall Netdata. Even then, after some time or after a few days, the metrics disappear suddenly. This recently happened on two of our hosts.

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [September 28, 2023, 8:36am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/73 "2023-09-28T08:36:57Z")

</div>

Hey, @philip. I am not sure how to find the problem:

- you are the only user who reports it (and cgroups collector is running almost on every ND instance out there!).
- we have never been able to reproduce it.

If you can give us access to a vm/host where “the metrics disappear suddenly” (after the fact it happened) - it will help. Otherwise, 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [September 28, 2023, 8:50am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/74 "2023-09-28T08:50:26Z")

</div>

@ilyam8

Sure, will remember this and will get back to you when it happens again.

[Previous page](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616.md?page=3)
