• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Jaranguda

Belajar Mengajar

  • Home
  • Sponsor/Jasa
  • Tentang

Solusi Docker LIMITS spawning Operation not permitted

Last Updated on 10 April 2020 By tommy Leave a Comment

Di beberapa docker node yang saya gunakan, docker tidak bisa dijalankan. Error yang paling jelas di service docker adalah LIMITS spawning Operation not permitted

Apr 09 17:08:52 docker-server systemd[1]: Starting Docker Socket for the API.
Apr 09 17:08:52 docker-server systemd[1630]: containerd.service: Failed at step LIMITS spawning /sbin/modprobe: Operation not permitted
Apr 09 17:08:52 docker-server systemd[1]: Started containerd container runtime.
Apr 09 17:08:52 docker-server systemd[1]: Listening on Docker Socket for the API.
Apr 09 17:08:52 docker-server systemd[1]: Starting Docker Application Container Engine...
Apr 09 17:08:52 docker-server systemd[1634]: containerd.service: Failed at step LIMITS spawning /usr/bin/containerd: Operation not permitted
Apr 09 17:08:52 docker-server systemd[1636]: docker.service: Failed at step LIMITS spawning /usr/bin/dockerd: Operation not permitted
Apr 09 17:08:52 docker-server systemd[1]: containerd.service: Main process exited, code=exited, status=205/LIMITS
 
> systemctl status containerd.service
● containerd.service - containerd container runtime
   Loaded: loaded (/lib/systemd/system/containerd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2020-04-09 17:08:54 WIB; 2min 47s ago
     Docs: https://containerd.io
  Process: 1656 ExecStart=/usr/bin/containerd (code=exited, status=205/LIMITS)
  Process: 1653 ExecStartPre=/sbin/modprobe overlay (code=exited, status=205/LIMITS)
 Main PID: 1656 (code=exited, status=205/LIMITS)
      CPU: 857us
 
Apr 09 17:08:54 docker-server systemd[1]: Starting containerd container runtime...
Apr 09 17:08:54 docker-server systemd[1]: Started containerd container runtime.
Apr 09 17:08:54 docker-server systemd[1]: containerd.service: Main process exited, code=exited, status=
Apr 09 17:08:54 docker-server systemd[1]: containerd.service: Unit entered failed state.
Apr 09 17:08:54 docker-server systemd[1]: containerd.service: Failed with result 'exit-code'.
 
> systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: inactive (dead) (Result: exit-code) since Thu 2020-04-09 15:13:47 WIB; 9s ago
     Docs: https://docs.docker.com
  Process: 1279 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=205/LIMITS)
 Main PID: 1279 (code=exited, status=205/LIMITS)
      CPU: 444us
 
Apr 09 15:13:47 docker-server systemd[1]: Failed to start Docker Application Container Engine.
Apr 09 15:13:47 docker-server systemd[1]: docker.service: Unit entered failed state.
Apr 09 15:13:47 docker-server systemd[1]: docker.service: Failed with result 'exit-code'.
Apr 09 15:13:47 docker-server systemd[1]: Stopped Docker Application Container Engine.
 
 
Apr 09 17:13:25 docker-server systemd[1]: docker.service: Start request repeated too quickly.
Apr 09 17:13:25 docker-server systemd[1]: Failed to start Docker Application Container Engine.
Apr 09 17:13:25 docker-server systemd[1]: docker.service: Unit entered failed state.
Apr 09 17:13:25 docker-server systemd[1]: docker.service: Failed with result 'exit-code'.

Beberapa hal yang perlu di cek, bila terjadi masalah seperti ini:
– Check Limit open files dkk dengan perintah ulimit -a
– Check LimitNOFILE di services aplikasi yang gagal.
– Check /etc/security/limits.conf
– Check /etc/sysctl.conf

Dari log diatas, ada dua services yang gagal jalan, yaitu containerd.service dan docker.service. Output dari ulimit -a

> ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 3892
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 550000
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 3892
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

sementara bila dilihat di /lib/systemd/system/containerd.service ada LimitNOFILE=1048576 dan /lib/systemd/system/docker.service, LimitNOFILE=infinityangka tersebut diatas maksimum limit yang diijikan oleh sistem sebesar 550000.

Solusi 1

Ganti nilai LimitNOFILE di containerd.service dan docker.service menjadi 550000 atau lebih kecil, sesuai dengan batas maksimum open files.
Setelah merubah file .service diatas, reload daemon systemctl

systemctl daemon-reload

lalu jalankan satu persatu servicenya

systemctl start containerd
systemctl start docker

Solusi 2

Hapus limit tersebut dari file /etc/security/limits.conf dan/atau /etc/sysctl.conf. Lalu reboot system anda

Tulisan menarik lainnya

  • Solusi MariaDB Failed at step NAMESPACE spawning

    Log dari journal -f -- Logs begin at Fri 2017-04-28 09:50:50 WIB. -- Apr 28…

  • Solusi avidemux cannot load glade

    Sebenarnya bukan solusi sih, tapi berpindah ke Qt ;), ntah kenapa GTK-nya rusak. Install Avidemux…

  • Solusi Disk Windows 10 Selalu 100%

    Apakah belakangan Windows 10 anda terasa lambat, tiba-tiba loading disana sini walaupun sudah pake SSD,…

  • Java/Android Solusi ID selalu Bernilai 0

    Bila setiap anda memanggil model.getId (contoh kode.getId), tetapi nilai yang dihasilkan selalu 0 sewaktu menambahkan…

Filed Under: Linux

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Pencarian

Tanya Jawab tentang DevOps SRE CPE, gabung di https://t.me/devopsindonesia

Terbaru

  • Cara Mengganti Port Screen Sharing macOS
  • Cara Menonaktifkan Pager di macOS
  • Cara Mengupdate Nama Apple silicon-as-a-Service Scaleway
  • Cara Force Delete Namespace di Kubernetes
  • Install PHP MariaDB di Mac Monterey

Komentar

  • adi on Menggunakan Mikrotik Sebagai SSH Client
  • aris u on Solusi Simple Queue Mikrotik Tidak Berjalan
  • Bowo on Cara Mematikan SSID Molecool Balifiber
  • aris on Solusi Simple Queue Mikrotik Tidak Berjalan
  • Alief on Password Router Huawei HG8245H5 Indihome

Tulisan Populer

  • Password Router Huawei HG8245H5 Indihome 1.1m views
  • Password Terbaru ZTE F609 Indihome 784.5k views
  • Password Superadmin Huawei HG8245A 318k views
  • Cara Setting Manual Modem GPON ZTE F609 Indihome 273k views
  • Cara Setting Wireless ZTE F609 Indihome 257.1k views
  • Mengaktifkan Port LAN di Huawei HG8245 Indihome 169.8k views
  • Akses UseeTV Indihome via Wireless ZTE F609 156.8k views
  • Kemana Menghilangnya Saldo BCA 50 ribu 153k views
  • Cara Reset Password ZTE F609 Indihome 147.5k views
  • Cara Setting DHCP Server Modem/Router ZTE F609 113.5k views

Kategori

  • Delphi
  • dll
  • Gambas
  • Internet
  • Java
  • Lazarus
  • Linux
  • PHP
  • Review
  • Teknologi

Sponsor

kadal.id
carakami.com
kuotabisa.com
Untuk jadi sponsor, hubungi kita lewat halaman sponsor
© 2021. Jaranguda
  • Linux
  • PHP
  • Internet
  • Teknologi
  • Delphi
  • Gambas
  • Java