Error: Cannot refresh cache whilst offline

What app is this about, and its version: cockpit, v.337~ynh2
What YunoHost version are you running: 12.1.37
What type of hardware are you using: VPS bought online

Describe your issue

some actions cannot be performed in my installation of the cockpit app, due to an error :

Error: Cannot refresh cache whilst offline

for example, the metrics history needs a package called cockpit-pcp but trying to install it by clicking the install button gives the error

the same when opening the “software updates” tab :

Loading available updates failed
Cannot refresh cache whilst offline
Please reload the page after resolving the issue.

for this panel, there is a ‘glitch’ : if i deselect the upper button “administrative access” and turn it into “limited access”, then go back to “administrative access”, the page load and i can see available updates, but then i cannot perform any action without the same error, as if i could temporarily solve the problem for one action

Share relevant logs or error messages

i don’t know where to find relevant logs for this problem ?

i’ll add another bug, it might be related : the “account” page is constantly reloaded, every seconds (it might explain why i can load the “software update” page when i’m on it and i just connect with administrative access, for one second i have the access before i loose them, maybe ?)

Maybe a solution here: Can't resolve whilst offline error · cockpit-project/cockpit · Discussion #21436 · GitHub

thank you, i’ll give it a try !

indeed, the solution proposed on github is working, creating a dummy network :

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

sudo systemctl restart cockpit

I think the reason is that yunohost uses `ifupdown`, a Debian networking system, rather than NetworkManager, which is required by cockpit. Indeed :

  1. Verifying if my interface is managed by NetworkManager :
> nmcli dev status
DEVICE  TYPE      STATE                   CONNECTION
lo      loopback  connected (externally)  lo
eth0    ethernet  unmanaged               --
  • “Unmanaged” means NetworkManager is not controlling the eth0 interface.
  1. check NetworkManager config :
~ cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false
  • `managed=false` tells NetworkManager to ignore interfaces managed by `ifupdown`

I’m not sure if i loose something by using a dummy network, or if it would be dangerous to tell NetworkManager to manage eth0 too

Hi,

According to the FAQ, it should work with no problem

it’s a known bug if you use firefox : see Reload loop in services page in Firefox v146+ · Issue #22709 · cockpit-project/cockpit · GitHub

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.