cockpit-project / cockpit

Cockpit is a web-based graphical interface for servers.
http://www.cockpit-project.org/
GNU Lesser General Public License v2.1
10.92k stars 1.09k forks source link

Networking tab doesn't show any network speeds anymore #19627

Open chokonmainatsu opened 9 months ago

chokonmainatsu commented 9 months ago

Explain what happens

  1. Open browser Inspect tool/console
  2. Open Networking tab
  3. Speed graph shows 0 Kbps
  4. Notice some errors in the console

The network speed were always shown up until a few weeks ago, I didn't really change anything major. The only things I'm regularly doing are updates.

There are also a few Network related errors in the browser console, not sure if they are relevant.

Just let me know if I can provide any further information.

image

image

Here in the Overview tab, the transfer speed is visible, not exactly accurate but good enough image

Version of Cockpit

303-1~bpo22.04.1

Where is the problem in Cockpit?

Networking

Server operating system

Ubuntu

Server operating system version

Ubuntu Server 22.04

What browsers are you using?

Chrome

System log

No response

jelly commented 9 months ago

Interesting, I can reproduce this issue. These metrics come from the Python bridge to which we recently switched but it seems either our automated or manual testing didn't notice this issue.

jelly commented 9 months ago

Debugging locally shows that we do get metric changes when I enable cockpit.debugging = 'channel'. So this seems to have to do with the JavaScript code.

jelly commented 9 months ago

Interesting, a test VM works. But my laptop connected to WiFi does not, interestingly also has bridges configured.

VM has:

cockpit-ws-305.dev0+gf482c1c87-1.fc39.x86_64
cockpit-305.dev0+gf482c1c87-1.fc39.x86_64

Laptop has main.

purpleboar commented 8 months ago

I have only recently installed cockpit on an Ubuntu server but had not had any network or storage graphs. I installed diagnostic reports (cockpit-sosreport) and created the report. One the report had run I now had both graphs displaying correctly, with historic data going back to when cockpit was installed on the server.

chokonmainatsu commented 8 months ago

I've just tried the same, installing cockpit-sosreport and then running it.

This didn't have effect on the graphs on my machine.

champtar commented 7 months ago

Also happening on Alma 9.3 / cockpit-300.3-1.el9_3.x86_64

vizaie commented 7 months ago

Similar issue on arch Cockpit version - 308-1

Network speed is not working for wireless Interface but ethernet Interface is working. Interestingly after connecting ethernet and removing it wireless interface speed started working.

Screenshot_20240116_101016 Screenshot_20240116_101311

Is it because I installed the below packages ? cockpit-storaged cockpit-packagekit cockpit-podman cockpit-machines cockpit-pcp

vizaie commented 7 months ago

After removing cockpit-pcp, it stopped working Screenshot_20240116_103330

After reinstalling it, it started working. I guess you need cockpit-pcp, I didn't install it because it was in Optional deps.

jciesla commented 5 months ago

Same issue for me too. I don't have PCP installed because I am using an embedded system, so I'm currently stuck to the cockpit 300.x version.