---
# System prepended metadata

title: Tilang inc 2024 04 26

---

# Tilang inc 2024 04 26

Kondisi
1. docker tidak bisa distart karena error kernel overlay

## logs

`/var/log/messages`

```
[root@epiutang docker-base]# cat /var/log/messages | grep -in "apr 26" > /home/jefri/drop/2024-04-26-msg
cd /var/log/
[root@epiutang docker-base]# cat messages | grep "overlay not found"
[root@epiutang docker-base]# cat messages | grep -A 3 -B 5 "overlay not found"
```
```
Apr 26 08:38:30 etilang-app-1 systemd[1]: Starting Docker Socket for the API...                                                                                                                             
Apr 26 08:38:30 etilang-app-1 systemd[1]: Starting containerd container runtime...                                                                                                                          
Apr 26 08:38:30 etilang-app-1 modprobe[2962]: modprobe: FATAL: Module overlay not found in directory /lib/modules/5.14.0-362.18.1.el9_3.0.1.x86_64
Apr 26 08:38:30 etilang-app-1 systemd[1]: Listening on Docker Socket for the API.                     
```

Membandingkan dengan instance epiutang, dari log di atas, ditunjukkan bahwa module overlay di `/lib` tidak ditemukan. Setelah dicek dengan ls, symlink di `/lib` tilang ternyata memang tidak ada.

```
[root@epiutang docker-base]# find /lib/ | grep over | head
/lib/modules/5.14.0-284.11.1.el9_2.x86_64/kernel/drivers/net/net_failover.ko.xz
/lib/modules/5.14.0-284.11.1.el9_2.x86_64/kernel/fs/overlayfs
/lib/modules/5.14.0-284.11.1.el9_2.x86_64/kernel/fs/overlayfs/overlay.ko.xz
/lib/modules/5.14.0-284.11.1.el9_2.x86_64/kernel/net/core/failover.ko.xz
/lib/modules/5.14.0-362.13.1.el9_3.x86_64/kernel/drivers/net/net_failover.ko.xz
/lib/modules/5.14.0-362.13.1.el9_3.x86_64/kernel/fs/overlayfs
/lib/modules/5.14.0-362.13.1.el9_3.x86_64/kernel/fs/overlayfs/overlay.ko.xz
/lib/modules/5.14.0-362.13.1.el9_3.x86_64/kernel/net/core/failover.ko.xz
/lib/firewalld/services/dns-over-tls.xml
/lib/firewalld/services/ws-discovery-client.xml
[root@epiutang docker-base]# 
```

symlink `/lib`

```
[root@etilang-app-1 drop]# ls /lib
ls: cannot access '/lib': No such file or directory
```

Solusi: buat symbolic link `/lib` yg mengarah ke `/usr/lib`

```
[root@etilang-app-1 drop]# ln -s /usr/lib /lib
```

## fixed
```
[root@etilang-app-1 log]#                   
[root@etilang-app-1 log]# ls /usr/lib/
binfmt.d/       dracut/         firmware/       grub/           kernel/         modules/        motd.d/         pam.d/          realmd/         sysimage/       tmpfiles.d/                                 
.build-id/      environment.d/  fontconfig/     kbd/            locale/         modules-load.d/ NetworkManager/ polkit-1/       rpm/            systemd/        tuned/                                      
debug/          firewalld/      games/          kdump/          modprobe.d/     motd            os-release      python3.9/      sysctl.d/       sysusers.d/     udev/                                       
[root@etilang-app-1 log]# ls /usr/lib/modules                                                                                                                                                               
5.14.0-284.11.1.el9_2.x86_64  5.14.0-284.18.1.el9_2.x86_64  5.14.0-362.18.1.el9_3.0.1.x86_64  5.14.0-362.el9.x86_64                                                                                         
[root@etilang-app-1 log]# ls /usr/lib/modules/5.14.0-362.18.1.el9_3.0.1.x86_64                                                                                                                              
build   modules.alias      modules.builtin            modules.builtin.modinfo  modules.devname      modules.networking  modules.symbols      symvers.gz  updates  weak-updates                              
config  modules.alias.bin  modules.builtin.alias.bin  modules.dep              modules.drm          modules.order       modules.symbols.bin  System.map  vdso                                               
kernel  modules.block      modules.builtin.bin        modules.dep.bin          modules.modesetting  modules.softdep     source               systemtap   vmlinuz                                            
[root@etilang-app-1 log]# find /usr/lib/modules/5.14.0-362.18.1.el9_3.0.1.x86_64 | grep over | head                                                                                                         
/usr/lib/modules/5.14.0-362.18.1.el9_3.0.1.x86_64/kernel/drivers/net/net_failover.ko.xz                                                                                                                     
/usr/lib/modules/5.14.0-362.18.1.el9_3.0.1.x86_64/kernel/fs/overlayfs                                                                                                                                       
/usr/lib/modules/5.14.0-362.18.1.el9_3.0.1.x86_64/kernel/fs/overlayfs/overlay.ko.xz                                                                                                                         
/usr/lib/modules/5.14.0-362.18.1.el9_3.0.1.x86_64/kernel/net/core/failover.ko.xz                                                                                                                            
[root@etilang-app-1 log]# file /lib                                                                                                                                                                         
/lib: symbolic link to /usr/lib
```
