NS8 Core doesn't update, shows "latest"

NethServer Version: 8
Module: Core

I run 11 NS 8 instances. One of them in software center shows the Core module as “latest” whereas the rest just updated to 3.1.3. Whenever the others have a core update this particular system doesn’t update. I don’t know what version I’m really on, but how do I force it to update and then show the version?

Here is the solution to update to the right core version, please backup before running the commands.

Thank you, when I run:

api-cli run update-core --data ‘{“force”:true,“core_url”:“ghcr.io/nethserver/core:3.1.3","nodes”:[1]}’

I get the following errors:

Warning: using user “cluster” credentials from the environment
_acontrol_task request attempt failed (Connection closed by server.). Retrying…
_acontrol_task request recovered successfully at attempt 2
_acontrol_task request attempt failed (Connection closed by server.). Retrying…
_acontrol_task request recovered successfully at attempt 2
<7>run-scriptdir /var/lib/nethserver/cluster/update-core-pre-modules.d/
Running /var/lib/nethserver/cluster/update-core-pre-modules.d/50update_grants…
<3>Cannot fetch prometheus1 attributes: ‘IMAGE_URL’
<3>Cannot fetch prometheus1 attributes: ‘IMAGE_URL’
<6>_fetch_metadata_json/open: [Errno 2] No such file or directory: ‘/var/lib/nethserver/cluster/ui/apps/promtail1/metadata.json’
<6>_fetch_metadata_json/glob: list index out of range
<7>run-scriptdir /var/lib/nethserver/cluster/update-core-post-modules.d/
Running /var/lib/nethserver/cluster/update-core-post-modules.d/90disable_testing…
“”

We don’t know to which version the latest tag pointed to when the core was installed. If the version was too old there may be issues.

Maybe it helps to remove and reinstall prometheus?

To install the current 1.0.2 version of prometheus:

add-module ghcr.io/nethserver/prometheus:1.0.2

Then you can try to update the core again…

I didn’t test this so please backup/snapshot before.