bcicen / ctop

Top-like interface for container metrics
https://ctop.sh
MIT License
15.44k stars 526 forks source link

CTOP crash when accessing gitlab container widget #321

Open Chaoschaot232 opened 1 year ago

Chaoschaot232 commented 1 year ago

Hey,

when I want to access the widget for the gitlab container ctop crashes with this message: image

But when I e. g. access the widget from traefik, all works fine, incl. all other containers: image

So what's going wrong here? And is here already an issue up which I haven't found or maybe already a PR?

Would be nice to get this fixed :)

zapp2me commented 1 year ago

I'm running ctop 0.7.7 and I think I'm having the same issue. In my case it's a samba container.

grafik

SergeyPodgornyy commented 1 year ago

Same for me :cry: image

Problem refers to https://github.com/bcicen/ctop/blob/59f00dd6aaebf48f3bc501e174f75f815c2619f0/cwidgets/single/env.go#L32

abakhru commented 1 year ago

https://github.com/bcicen/ctop/issues/263#issuecomment-859611475 this is the solution