Cockpit cannot refresh cache whilst offline

Cockpit fix to cannot refresh cache whilst offline

Cockpit cannot refresh cache whilst offline
Photo by Rob Wicks / Unsplash

If you are an VPS (virtual private server) enthusiastic and your are running Cockpit in your Ubuntu server, maybe you face it this issue, so here the solution,

Create a fake network and restart!

How to

Create /etc/NetworkManager/conf.d/10-globally-managed-devices.conf with:

[keyfile]
 unmanaged-devices=none

Set up a fake network interface πŸ€·β€β™‚οΈ

sudo nmcli con add type dummy con-name fake ifname fake0 ip4 1.2.3.4/24 gw4 1.2.3.1

And restart your server!

This is really annoying but it is as it is even you could find a explanation that says:

Ubuntu uses two different network stacks which don’t play so well together.

Resources

  • Git hub issue
  • Cockpit frequently asked questions here