1 min read

[FIX] - Cockpit "Cannot Refresh Cache Whilst Offline" Error

Linux

The Issue: "Cannot refresh cache whilst offline" error appears when navigating to the updates tab. This guide assumes a Debian based distribution, but it can be similarly fixed for other OS versions by following their respective guides.

The Solution: Cockpit requires "NetworkManager" as the default renderer. If your configuration is set to use other managers, such as "networkd", the updates feature of cockpit will not work. To fix this, take the following steps:

STEP 1) Open a terminal window

STEP 2) Navigate to your netplan configuration by typing cd /etc/netplan/

STEP 3) Create/Edit 01-netcfg.yaml by typing sudo nano 01.netcfg.yaml

  • This step assumes you are using nano for text editing purposes. Alternative text editors also work.
  • If you want to use nano, you can install it by typing sudo apt-get install nano.

STEP 4) Once in the file, add the following text:

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: true
      dhcp6: true
      optional: true

STEP 5) Save the file, then type sudo netplan apply

STEP 6) Reload your cockpit dashboard, and see update section. Note that you will have to enabled Administrator privileges on the dashboard to view this section, by clicking on the "Administrative Acess" button in the top bar.

STEP 7) That should be everything settled!

NOTE: This guide was based off of an article that can be found here.