Masalah yang muncul di beberapa docker images yang saya pake buat pipeline Jenkins

Reading package lists... Done
W: GPG error: http://security.debian.org/debian-security buster/updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://deb.debian.org/debian buster InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

dari pesan kesalahan diatas, solusi yang paling masuk akal adalah GPG key repository sudah expired atau belum di download sama sekali. Untuk meyakinkan bahwa masalah tersebut ada dimana, saya jalankan docker di laptop docker run -it debian:latest /bin/bash

> docker run -it debian:latest /bin/bash
# output
Unable to find image 'debian:latest' locally
latest: Pulling from library/debian
f15005b0235f: Pull complete 
Digest: sha256:125ab9ab9718f4dba6c3342407bb1923afce4f6b2a12b3a502d818274db9faf9
Status: Downloaded newer image for debian:latest

jalankan apt update -yq tidak ada masalah, tetapi waktu saya menjalankan images debian:latest di server untuk pipeline, masalah yang sama muncul. Tetapi bila dikey key nya masih lama expired dan sudah ada di sistem

apt-key list
# output
/etc/apt/trusted.gpg.d/debian-archive-buster-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2019-04-14 [SC] [expires: 2027-04-12]
      80D1 5823 B7FD 1561 F9F7  BCDD DC30 D7C2 3CBB ABEE
uid           [ unknown] Debian Archive Automatic Signing Key (10/buster) <ftpmaster@debian.org>
sub   rsa4096 2019-04-14 [S] [expires: 2027-04-12]
 
/etc/apt/trusted.gpg.d/debian-archive-buster-security-automatic.gpg
-------------------------------------------------------------------
pub   rsa4096 2019-04-14 [SC] [expires: 2027-04-12]
      5E61 B217 265D A980 7A23  C5FF 4DFA B270 CAA9 6DFA
uid           [ unknown] Debian Security Archive Automatic Signing Key (10/buster) <ftpmaster@debian.org>
sub   rsa4096 2019-04-14 [S] [expires: 2027-04-12]

Saya coba cek hardisk atau inodes mungkin penuh, ternyata benar hardisknya penuh

df -h
# output
Filesystem       Size  Used Avail Use% Mounted on
udev             968M     0  968M   0% /dev
tmpfs            197M   20M  177M  11% /run
/dev/nvme0n1p1   700.7G  700.4G     0 100% /
tmpfs            982M     0  982M   0% /dev/shm
tmpfs            5.0M     0  5.0M   0% /run/lock
tmpfs            982M     0  982M   0% /sys/fs/cgroup
/dev/nvme0n1p15  124M  262K  124M   1% /boot/efi
tmpfs            197M     0  197M   0% /run/user/1000

akar masalah sudah ditemukan, solusinya hapus file yang tidak digunakan atau berukuran besar atau upgrade hardisk. Kalo di AWS EC2, shutdown server, tambah ukuran Volume, reboot.

Leave a comment

Your email address will not be published. Required fields are marked *