Engine/sensor/datanote are not able to connect to the repos on the manager
search cancel

Engine/sensor/datanote are not able to connect to the repos on the manager

book

Article ID: 333648

calendar_today

Updated On:

Products

VMware vDefend Network Detection and Response

Issue/Introduction

Symptoms:
Appliances (Engine, Datanode, Sensor) are showing several errors when retriggering configurations or running apt-get update.

  Get:1 https://<manager-fqdn>/apt/ubuntu bionic InRelease [242 kB]
  Get:2 https://<manager-fqdn>/apt/appliance/engine config-bionic InRelease [4,140 B]
  Err:2 https://update.<manager-fqdn>/apt/appliance/engine config-bionic InRelease
  Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_appliance_engine_dists_config-bionic_InRelease into data and signature failed
  Get:3 https://update.<manager-fqdn>/apt/appliance/engine 1140.3-bionic InRelease [4,140 B]
  Get:4 https://update.<manager-fqdn>/apt/appliance/engine 1140.3-bionic-security-release InRelease [4,208 B]
  Get:5 https://update.<manager-fqdn>/apt/appliance/security engine-1140.3-updates-bionic InRelease [4,204 B]
  Get:6 https://update.<manager-fqdn>/apt/appliance/security engine-1140.3-bionic InRelease [4,172 B]
  Get:7 https://update.<manager-fqdn>/apt/appliance/engine/ubuntu-esm bionic-infra-security InRelease [7,569 B]
  Err:7 https://update.<manager-fqdn>/apt/appliance/engine/ubuntu-esm bionic-infra-security InRelease
  Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_appliance_engine_ubuntu-esm_dists_bionic-infra-security_InRelease into data and signature failed
  Get:8 https://update.<manager-fqdn>/apt/appliance/engine/ubuntu-esm bionic-infra-updates InRelease [7,526 B]
  Get:9 https://update.<manager-fqdn>/apt/ubuntu bionic-security InRelease [88.7 kB]
  Err:9 https://update.<manager-fqdn>/apt/ubuntu bionic-security InRelease
  Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_ubuntu_dists_bionic-security_InRelease into data and signature failed
  Get:10 https://update.<manager-fqdn>/apt/ubuntu bionic-updates InRelease [88.7 kB]
  Err:10 https://update.<manager-fqdn>/apt/ubuntu bionic-updates InRelease
  Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_ubuntu_dists_bionic-updates_InRelease into data and signature failed
  Get:11 https://update.<manager-fqdn>/apt/appliance/engine/ubuntu-esm bionic-infra-updates/main amd64 Packages [13.2 kB]
  Err:11 https://update.<manager-fqdn>/apt/appliance/engine/ubuntu-esm bionic-infra-updates/main amd64 Packages
  File has unexpected size (13280 != 13223). Mirror sync in progress? [IP: <manager-ip> 443]
  Hashes of expected file:
  - Filesize:13223 [weak]
  - SHA256:9d6fbde5c62ede3495fb1376cf660303b68cc437675147189ecb700b55e1baef
  - SHA1:e38db2792a223aaf33fccce5ff68fd692ea7cf0a [weak]
  - MD5Sum:1bc0e5f0a6a2cec31659f8c216582816 [weak]
  Release file created at: Tue, 03 Oct 2023 12:10:23 +0000
  Fetched 455 kB in 18s (25.0 kB/s)
  Reading package lists...
  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://update.<manager-fqdn>/apt/appliance/engine config-bionic InRelease: Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_appliance_engine_dists_config-bionic_InRelease into data and signature failed
  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://update.<manager-fqdn>/apt/appliance/engine/ubuntu-esm bionic-infra-security InRelease: Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_appliance_engine_ubuntu-esm_dists_bionic-infra-security_InRelease into data and signature failed
  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://update.<manager-fqdn>/apt/ubuntu bionic-security InRelease: Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_ubuntu_dists_bionic-security_InRelease into data and signature failed
  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://update.<manager-fqdn>/apt/ubuntu bionic-updates InRelease: Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_ubuntu_dists_bionic-updates_InRelease into data and signature failed
  W: Failed to fetch https://update.<manager-fqdn>/apt/appliance/engine/dists/config-bionic/InRelease Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_appliance_engine_dists_config-bionic_InRelease into data and signature failed
  W: Failed to fetch https://update.<manager-fqdn>/apt/appliance/engine/ubuntu-esm/dists/bionic-infra-security/InRelease Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_appliance_engine_ubuntu-esm_dists_bionic-infra-security_InRelease into data and signature failed
  W: Failed to fetch https://update.<manager-fqdn>/apt/ubuntu/dists/bionic-security/InRelease Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_ubuntu_dists_bionic-security_InRelease into data and signature failed
  W: Failed to fetch https://update.<manager-fqdn>/apt/ubuntu/dists/bionic-updates/InRelease Splitting up /var/lib/apt/lists/partial/update.<manager-fqdn>_apt_ubuntu_dists_bionic-updates_InRelease into data and signature failed
  E: Failed to fetch https://update.<manager-fqdn>/apt/appliance/engine/ubuntu-esm/dists/bionic-infra-updates/main/binary-amd64/Packages.gz File has unexpected size (13280 != 13223). Mirror sync in progress? [IP: 10.0.0.10 443]
  Hashes of expected file:
  - Filesize:13223 [weak]
  - SHA256:9d6fbde5c62ede3495fb1376cf660303b68cc437675147189ecb700b55e1baef
  - SHA1:e38db2792a223aaf33fccce5ff68fd692ea7cf0a [weak]
  - MD5Sum:1bc0e5f0a6a2cec31659f8c216582816 [weak]
  Release file created at: Tue, 03 Oct 2023 12:10:23 +0000
  W: Some index files failed to download. They have been ignored, or old ones used instead.
  apt-get update && apt-get -y upgrade: return code: 100


Cause

The issue is caused when the service apt-cacher-ng have corrupt or partial package downloads.

Resolution

To fix the issue, we need to clean the cache of the service apt-cacher-ng on the Manager with the following commands:
# systemctl stop apt-cacher-ng
# rm -rf /var/cache/apt-cacher-ng/*
# systemctl start apt-cacher-ng

After that, retrigger the configuration from the UI on the every child appliance(s) which were failing.
Admin > Appliances > Overview > Select an appliance > Quick Links > Retrigger Configuration