Problems with ansible - linux

in the work I have a task to install Zabbix Agent on a list of machines using Ansible.
My problem is that the machines have some cache problems and I tried to solve it using Ansible but with no succed, I've tried using
- command: apt-get install -f
become: true
and also
- name: Update and upgrade apt packages
become: true
apt:
upgrade: yes
update_cache: yes
But always I have an pretty big error message.
fatal: [MACHINE IP]: FAILED! => {"changed": true, "cmd": ["apt-get", "install", "-f"], "delta": "0:01:13.499864", "end": "2018-11-21 17:55:11.172264", "msg": "non-zero return code",
"rc": 100, "start": "2018-11-21 17:53:57.672400", "stderr": "No apport report written because the error message indicates its a followup error from a previous failure.\nNo apport report
written because MaxReports is reached already\nNo apport report written because MaxReports is reached already\nNo apport report written because MaxReports is reached already\nNo apport
report written because MaxReports is reached already\nNo apport report written because MaxReports is reached already\nNo apport report written because MaxReports is reached already\nNo
apport report written because MaxReports is reached already\nNo apport report written because MaxReports is reached already\nNo apport report written because MaxReports is reached already\nNo
apport report written because MaxReports is reached already\nNo apport report written because MaxReports is reached already\nNo apport report written because MaxReports is reached already\nE:
Sub-process /usr/bin/dpkg returned an error code (1)", "stderr_lines": ["No apport report written because the error message indicates its a followup error from a previous failure.",
"No apport report written because MaxReports is reached already", "No apport report written because MaxReports is reached already", "No apport report written because MaxReports is reached
already", "No apport report written because MaxReports is reached already", "No apport report written because MaxReports is reached already", "No apport report written because MaxReports
is reached already", "No apport report written because MaxReports is reached already", "No apport report written because MaxReports is reached already", "No apport report written because
MaxReports is reached already", "No apport report written because MaxReports is reached already", "No apport report written because MaxReports is reached already", "No apport report written
because MaxReports is reached already", "E: Sub-process /usr/bin/dpkg returned an error code (1)"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state
information...\nThe following packages were automatically installed and are no longer required:\n libcurl3 linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic\n
linux-headers-4.4.0-103 linux-headers-4.4.0-103-generic\n linux-headers-4.4.0-104 linux-headers-4.4.0-104-generic\n linux-headers-4.4.0-109 linux-headers-4.4.0-109-generic\n
linux-headers-4.4.0-112 linux-headers-4.4.0-112-generic\n linux-headers-4.4.0-116 linux-headers-4.4.0-116-generic\n linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic
linux-headers-4.4.0-87\n linux-headers-4.4.0-87-generic linux-headers-4.4.0-96\n linux-headers-4.4.0-96-generic linux-headers-4.4.0-97\n linux-headers-4.4.0-97-generic
linux-headers-4.4.0-98\n linux-headers-4.4.0-98-generic linux-image-4.4.0-101-generic\n linux-image-4.4.0-103-generic linux-image-4.4.0-104-generic\n
linux-image-4.4.0-109-generic linux-image-4.4.0-112-generic\n linux-image-4.4.0-116-generic linux-image-4.4.0-31-generic\n linux-image-4.4.0-87-generic
linux-image-4.4.0-96-generic\n linux-image-4.4.0-97-generic linux-image-4.4.0-98-generic\n linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-103-generic\n
linux-image-extra-4.4.0-104-generic linux-image-extra-4.4.0-109-generic\n linux-image-extra-4.4.0-112-generic linux-image-extra-4.4.0-116-generic\n
linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-87-generic\n linux-image-extra-4.4.0-96-generic linux-image-extra-4.4.0-97-generic\n
linux-image-extra-4.4.0-98-generic\nUse 'sudo apt autoremove' to remove them.\n0 upgraded, 0 newly installed, 0 to remove and 143 not upgraded.\n15 not fully installed or removed.\nAfter
this operation, 0 B of additional disk space will be used.\nSetting up initramfs-tools (0.122ubuntu8.1) ...\r\nupdate-initramfs: deferring update (trigger activated)\r\nSetting up
linux-firmware (1.157.20) ...\r\nupdate-initramfs: Generating /boot/initrd.img-4.4.0-108-generic\r\nW: mdadm: /etc/mdadm/mdadm.conf defines no arrays.\r\n\r\ngzip: stdout: No space left on
device\r\nE: mkinitramfs failure cpio 141 gzip 1\r\nupdate-initramfs: failed for /boot/initrd.img-4.4.0-108-generic with 1.\r\ndpkg: error processing package linux-firmware
(--configure):\r\n subprocess installed post-installation script returned error exit status 1\r\nSetting up linux-image-4.4.0-139-generic (4.4.0-139.165)
...\r\nRunning depmod.\r\nupdate-initramfs: deferring update (hook will be called later)\r\nThe link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-138-generic\r\nExamining
/etc/kernel/postinst.d.\r\nrun-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-139-generic /boot/vmlinuz-4.4.0-139-generic\r\nrun-parts:
executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-139-generic /boot/vmlinuz-4.4.0-139-generic\r\nupdate-initramfs: Generating /boot/initrd.img-4.4.0-139-generic\r\nW: mdadm:
/etc/mdadm/mdadm.conf defines no arrays.\r\n\r\ngzip: stdout: No space left on device\r\nE: mkinitramfs failure cpio 141 gzip 1\r\nupdate-initramfs: failed for
/boot/initrd.img-4.4.0-139-generic with 1.\r\nrun-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1\r\nFailed to process /etc/kernel/postinst.d at
/var/lib/dpkg/info/linux-image-4.4.0-139-generic.postinst line 1052.\r\ndpkg: error processing package linux-image-4.4.0-139-generic (--configure):\r\n subprocess installed post-installation
script returned error exit status 2\r\ndpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-139-generic:\r\n linux-image-extra-4.4.0-139-generic
depends on linux-image-4.4.0-139-generic; however:\r\n Package linux-image-4.4.0-139-generic is not configured yet.\r\n\r\ndpkg: error processing package linux-image-extra-4.4.0-139-generic
(--configure):\r\n dependency problems - leaving unconfigured\r\ndpkg: dependency problems prevent configuration of linux-image-generic:\r\n linux-image-generic
depends on linux-image-4.4.0-139-generic; however:\r\n Package linux-image-4.4.0-139-generic is not configured yet.\r\n linux-image-generic depends on linux-image-extra-4.4.0-139-generic;
however:\r\n Package linux-image-extra-4.4.0-139-generic is not configured yet.\r\n linux-image-generic depends on linux-firmware; however:\r\n Package linux-firmware is not
configured yet.\r\n\r\ndpkg: error processing package linux-image-generic (--configure):\r\n dependency problems - leaving unconfigured\r\ndpkg: dependency problems prevent configuration of
linux-generic:\r\n linux-generic depends on linux-image-generic (= 4.4.0.139.145); however:\r\n Package linux-image-generic is not configured yet.\r\n\r\ndpkg: error processing package
linux-generic (--configure):\r\n dependency problems - leaving unconfigured\r\nSetting up linux-image-4.4.0-109-generic (4.4.0-109.132) ...\r\nInternal Error: Could not find image
(/boot/vmlinuz-4.4.0-109-generic)\r\ndpkg: error processing package linux-image-4.4.0-109-generic (--configure):\r\n subprocess installed post-installation script returned error exit
status 2\r\nSetting up linux-image-4.4.0-112-generic (4.4.0-112.135) ...\r\nInternal Error: Could not find image (/boot/vmlinuz-4.4.0-112-generic)\r\ndpkg: error processing package
linux-image-4.4.0-112-generic (--configure):\r\n subprocess installed post-installation script returned error exit status 2\r\nSetting up linux-image-4.4.0-116-generic (4.4.0-116.140)
...\r\nRunning depmod.\r\nupdate-initramfs: deferring update (hook will be called later)\r\nThe link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-139-generic\r\nExamining
/etc/kernel/postinst.d.\r\nrun-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic\r\nrun-parts: executing
/etc/kernel/postinst.d/initramfs-tools 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic\r\nupdate-initramfs: Generating /boot/initrd.img-4.4.0-116-generic\r\nW: mdadm:
/etc/mdadm/mdadm.conf defines no arrays.\r\n\r\ngzip: stdout: No space left on device\r\nE: mkinitramfs failure cpio 141 gzip 1\r\nupdate-initramfs: failed for
/boot/initrd.img-4.4.0-116-generic with 1.\r\nrun-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1\r\nFailed to process /etc/kernel/postinst.d at
/var/lib/dpkg/info/linux-image-4.4.0-116-generic.postinst line 1052.\r\ndpkg: error processing package linux-image-4.4.0-116-generic (--configure):\r\n subprocess installed
post-installation script returned error exit status 2\r\nSetting up linux-image-4.4.0-138-generic (4.4.0-138.164) ...\r\nRunning depmod.\r\nupdate-initramfs: deferring update
(hook will be called later)\r\nThe link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-116-generic\r\nExamining /etc/kernel/postinst.d.\r\nrun-parts:
executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-138-generic /boot/vmlinuz-4.4.0-138-generic\r\nrun-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-138-generic
/boot/vmlinuz-4.4.0-138-generic\r\nupdate-initramfs: Generating /boot/initrd.img-4.4.0-138-generic\r\nW: mdadm: /etc/mdadm/mdadm.conf defines no arrays.\r\n\r\ngzip: stdout:
No space left on device\r\nE: mkinitramfs failure cpio 141 gzip 1\r\nupdate-initramfs: failed for /boot/initrd.img-4.4.0-138-generic with 1.\r\nrun-parts:
/etc/kernel/postinst.d/initramfs-tools exited with return code 1\r\nFailed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-138-generic.postinst line
1052.\r\ndpkg: error processing package linux-image-4.4.0-138-generic (--configure):\r\n subprocess installed post-installation script returned error exit status 2\r\nSetting up
linux-image-extra-4.4.0-108-generic (4.4.0-108.131) ...\r\ndepmod: FATAL: could not load /boot/System.map-4.4.0-108-generic: No such file or directory\r\nrun-parts: executing
/etc/kernel/postinst.d/apt-auto-removal 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic\r\nrun-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-108-generic
/boot/vmlinuz-4.4.0-108-generic\r\nupdate-initramfs: Generating /boot/initrd.img-4.4.0-108-generic\r\nW: mdadm: /etc/mdadm/mdadm.conf defines no arrays.\r\n\r\ngzip:
stdout: No space left on device\r\nE: mkinitramfs failure cpio 141 gzip 1\r\nupdate-initramfs: failed for /boot/initrd.img-4.4.0-108-generic with 1.\r\nrun-parts:
/etc/kernel/postinst.d/initramfs-tools exited with return code 1\r\ndpkg: error processing package linux-image-extra-4.4.0-108-generic (--configure):\r\n subprocess
installed post-installation script returned error exit status 1\r\ndpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-109-generic:\r\n
linux-image-extra-4.4.0-109-generic depends on linux-image-4.4.0-109-generic; however:\r\n Package linux-image-4.4.0-109-generic is not configured yet.\r\n\r\ndpkg:
error processing package linux-image-extra-4.4.0-109-generic (--configure):\r\n dependency problems - leaving unconfigured\r\ndpkg: dependency problems prevent configuration of
linux-image-extra-4.4.0-112-generic:\r\n linux-image-extra-4.4.0-112-generic depends on linux-image-4.4.0-112-generic; however:\r\n Package linux-image-4.4.0-112-generic is
not configured yet.\r\n\r\ndpkg: error processing package linux-image-extra-4.4.0-112-generic (--configure):\r\n dependency problems - leaving unconfigured\r\ndpkg: dependency
problems prevent configuration of linux-image-extra-4.4.0-116-generic:\r\n linux-image-extra-4.4.0-116-generic depends on linux-image-4.4.0-116-generic; however:\r\n
Package linux-image-4.4.0-116-generic is not configured yet.\r\n\r\ndpkg: error processing package linux-image-extra-4.4.0-116-generic (--configure):\r\n dependency problems -
leaving unconfigured\r\ndpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-138-generic:\r\n linux-image-extra-4.4.0-138-generic depends on
linux-image-4.4.0-138-generic; however:\r\n Package linux-image-4.4.0-138-generic is not configured yet.\r\n\r\ndpkg: error processing package linux-image-extra-4.4.0-138-generic
(--configure):\r\n dependency problems - leaving unconfigured\r\nProcessing triggers for initramfs-tools (0.122ubuntu8.1) ...\r\nupdate-initramfs: Generating
/boot/initrd.img-4.4.0-108-generic\r\nW: mdadm: /etc/mdadm/mdadm.conf defines no arrays.\r\n\r\ngzip: stdout: No space left on device\r\nE: mkinitramfs failure cpio 141 gzip
1\r\nupdate-initramfs: failed for /boot/initrd.img-4.4.0-108-generic with 1.\r\ndpkg: error processing package initramfs-tools (--configure):\r\n subprocess installed post-installation
script returned error exit status 1\r\nErrors were encountered while processing:\r\n linux-firmware\r\n linux-image-4.4.0-139-generic\r\n linux-image-extra-4.4.0-139-generic\r\n
linux-image-generic\r\n linux-generic\r\n linux-image-4.4.0-109-generic\r\n linux-image-4.4.0-112-generic\r\n linux-image-4.4.0-116-generic\r\n linux-image-4.4.0-138-generic\r\n
linux-image-extra-4.4.0-108-generic\r\n linux-image-extra-4.4.0-109-generic\r\n linux-image-extra-4.4.0-112-generic\r\n linux-image-extra-4.4.0-116-generic\r\n
linux-image-extra-4.4.0-138-generic\r\n initramfs-tools", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...",
"The following packages were automatically installed and are no longer required:", " libcurl3 linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic", " linux-headers-4.4.0-103
linux-headers-4.4.0-103-generic", " linux-headers-4.4.0-104 linux-headers-4.4.0-104-generic", " linux-headers-4.4.0-109 linux-headers-4.4.0-109-generic", "
linux-headers-4.4.0-112 linux-headers-4.4.0-112-generic", " linux-headers-4.4.0-116 linux-headers-4.4.0-116-generic", " linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic
linux-headers-4.4.0-87", " linux-headers-4.4.0-87-generic linux-headers-4.4.0-96", " linux-headers-4.4.0-96-generic linux-headers-4.4.0-97", " linux-headers-4.4.0-97-generic
linux-headers-4.4.0-98", " linux-headers-4.4.0-98-generic linux-image-4.4.0-101-generic", " linux-image-4.4.0-103-generic linux-image-4.4.0-104-generic", "
linux-image-4.4.0-109-generic linux-image-4.4.0-112-generic", " linux-image-4.4.0-116-generic linux-image-4.4.0-31-generic", " linux-image-4.4.0-87-generic linux-image-4.4.0-96-generic", "
linux-image-4.4.0-97-generic linux-image-4.4.0-98-generic", " linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-103-generic", " linux-image-extra-4.4.0-104-generic
linux-image-extra-4.4.0-109-generic", " linux-image-extra-4.4.0-112-generic linux-image-extra-4.4.0-116-generic", " linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-87-generic", "
linux-image-extra-4.4.0-96-generic linux-image-extra-4.4.0-97-generic", " linux-image-extra-4.4.0-98-generic", "Use 'sudo apt autoremove' to remove them.", "0 upgraded, 0 newly
installed, 0 to remove and 143 not upgraded.", "15 not fully installed or removed.", "After this operation, 0 B of additional disk space will be used.", "Setting up initramfs-tools
(0.122ubuntu8.1) ...", "update-initramfs: deferring update (trigger activated)", "Setting up linux-firmware (1.157.20) ...", "update-initramfs: Generating /boot/initrd.img-4.4.0-108-generic",
"W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.", "", "gzip: stdout: No space left on device", "E: mkinitramfs failure cpio 141 gzip 1", "update-initramfs: failed for
/boot/initrd.img-4.4.0-108-generic with 1.", "dpkg: error processing package linux-firmware (--configure):", " subprocess installed post-installation script returned error exit status 1",
"Setting up linux-image-4.4.0-139-generic (4.4.0-139.165) ...", "Running depmod.", "update-initramfs: deferring update (hook will be called later)", "The link /initrd.img is a dangling linkto
/boot/initrd.img-4.4.0-138-generic", "Examining /etc/kernel/postinst.d.", "run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-139-generic /boot/vmlinuz-4.4.0-139-generic",
"run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-139-generic /boot/vmlinuz-4.4.0-139-generic", "update-initramfs: Generating /boot/initrd.img-4.4.0-139-generic", "W: mdadm:
/etc/mdadm/mdadm.conf defines no arrays.", "", "gzip: stdout: No space left on device", "E: mkinitramfs failure cpio 141 gzip 1", "update-initramfs: failed for
/boot/initrd.img-4.4.0-139-generic with 1.", "run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1", "Failed to process /etc/kernel/postinst.d at
/var/lib/dpkg/info/linux-image-4.4.0-139-generic.postinst line 1052.", "dpkg: error processing package linux-image-4.4.0-139-generic (--configure):", "
subprocess installed post-installation script returned error exit status 2", "dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-139-generic:",
" linux-image-extra-4.4.0-139-generic depends on linux-image-4.4.0-139-generic; however:", " Package linux-image-4.4.0-139-generic is not configured yet.", "",
"dpkg: error processing package linux-image-extra-4.4.0-139-generic (--configure):", " dependency problems - leaving unconfigured", "dpkg: dependency problems prevent configuration of
linux-image-generic:", " linux-image-generic depends on linux-image-4.4.0-139-generic; however:", " Package linux-image-4.4.0-139-generic is not configured yet.", " linux-image-generic
depends on linux-image-extra-4.4.0-139-generic; however:", " Package linux-image-extra-4.4.0-139-generic is not configured yet.", " linux-image-generic depends on linux-firmware;
however:", " Package linux-firmware is not configured yet.", "", "dpkg: error processing package linux-image-generic (--configure):", " dependency problems - leaving unconfigured",
"dpkg: dependency problems prevent configuration of linux-generic:", " linux-generic depends on linux-image-generic (= 4.4.0.139.145); however:", " Package linux-image-generic is not
configured yet.", "", "dpkg: error processing package linux-generic (--configure):", " dependency problems - leaving unconfigured", "Setting up linux-image-4.4.0-109-generic
(4.4.0-109.132) ...", "Internal Error: Could not find image (/boot/vmlinuz-4.4.0-109-generic)", "dpkg: error processing package linux-image-4.4.0-109-generic (--configure):", "
subprocess installed post-installation script returned error exit status 2", "Setting up linux-image-4.4.0-112-generic (4.4.0-112.135) ...", "Internal Error: Could not find image
(/boot/vmlinuz-4.4.0-112-generic)", "dpkg: error processing package linux-image-4.4.0-112-generic (--configure):", " subprocess installed post-installation script returned error exit
status 2", "Setting up linux-image-4.4.0-116-generic (4.4.0-116.140) ...", "Running depmod.", "update-initramfs: deferring update (hook will be called later)", "The link /initrd.img is
a dangling linkto /boot/initrd.img-4.4.0-139-generic", "Examining /etc/kernel/postinst.d.", "run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-116-generic
/boot/vmlinuz-4.4.0-116-generic", "run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic", "update-initramfs: Generating
/boot/initrd.img-4.4.0-116-generic", "W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.", "", "gzip: stdout: No space left on device", "E: mkinitramfs failure cpio 141 gzip 1",
"update-initramfs: failed for /boot/initrd.img-4.4.0-116-generic with 1.", "run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1", "Failed to process
/etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-116-generic.postinst line 1052.", "dpkg: error processing package linux-image-4.4.0-116-generic (--configure):",
" subprocess installed post-installation script returned error exit status 2", "Setting up linux-image-4.4.0-138-generic (4.4.0-138.164) ...", "Running depmod.",
"update-initramfs: deferring update (hook will be called later)", "The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-116-generic", "Examining /etc/kernel/postinst.d.",
"run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-138-generic /boot/vmlinuz-4.4.0-138-generic", "run-parts: executing /etc/kernel/postinst.d/initramfs-tools
4.4.0-138-generic /boot/vmlinuz-4.4.0-138-generic", "update-initramfs: Generating /boot/initrd.img-4.4.0-138-generic", "W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.", "",
"gzip: stdout: No space left on device", "E: mkinitramfs failure cpio 141 gzip 1", "update-initramfs: failed for /boot/initrd.img-4.4.0-138-generic with 1.",
"run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1", "Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-138-generic.postinst line
1052.", "dpkg: error processing package linux-image-4.4.0-138-generic (--configure):", " subprocess installed post-installation script returned error exit status 2",
"Setting up linux-image-extra-4.4.0-108-generic (4.4.0-108.131) ...", "depmod: FATAL: could not load /boot/System.map-4.4.0-108-generic: No such file or directory",
"run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic", "run-parts: executing /etc/kernel/postinst.d/initramfs-tools
4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic", "update-initramfs: Generating /boot/initrd.img-4.4.0-108-generic", "W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.", "",
"gzip: stdout: No space left on device", "E: mkinitramfs failure cpio 141 gzip 1", "update-initramfs: failed for /boot/initrd.img-4.4.0-108-generic with 1.",
"run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1", "dpkg: error processing package linux-image-extra-4.4.0-108-generic (--configure):",
" subprocess installed post-installation script returned error exit status 1", "dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-109-generic:",
" linux-image-extra-4.4.0-109-generic depends on linux-image-4.4.0-109-generic; however:", " Package linux-image-4.4.0-109-generic is not configured yet.", "",
"dpkg: error processing package linux-image-extra-4.4.0-109-generic (--configure):", " dependency problems - leaving unconfigured", "dpkg: dependency problems
prevent configuration of linux-image-extra-4.4.0-112-generic:", " linux-image-extra-4.4.0-112-generic depends on linux-image-4.4.0-112-generic; however:", " Package
linux-image-4.4.0-112-generic is not configured yet.", "", "dpkg: error processing package linux-image-extra-4.4.0-112-generic (--configure):", " dependency problems
- leaving unconfigured", "dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-116-generic:", " linux-image-extra-4.4.0-116-generic depends on
linux-image-4.4.0-116-generic; however:", " Package linux-image-4.4.0-116-generic is not configured yet.", "", "dpkg: error processing package linux-image-extra-4.4.0-116-generic
(--configure):", " dependency problems - leaving unconfigured", "dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-138-generic:", "
linux-image-extra-4.4.0-138-generic depends on linux-image-4.4.0-138-generic; however:", " Package linux-image-4.4.0-138-generic is not configured yet.", "",
"dpkg: error processing package linux-image-extra-4.4.0-138-generic (--configure):", " dependency problems - leaving unconfigured", "Processing triggers for initramfs-tools
(0.122ubuntu8.1) ...", "update-initramfs: Generating /boot/initrd.img-4.4.0-108-generic", "W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.", "", "gzip: stdout: No space left on device",
"E: mkinitramfs failure cpio 141 gzip 1", "update-initramfs: failed for /boot/initrd.img-4.4.0-108-generic with 1.", "dpkg: error processing package initramfs-tools (--configure):",
" subprocess installed post-installation script returned error exit status 1", "Errors were encountered while processing:", " linux-firmware", " linux-image-4.4.0-139-generic",
" linux-image-extra-4.4.0-139-generic", " linux-image-generic", " linux-generic", " linux-image-4.4.0-109-generic", " linux-image-4.4.0-112-generic", " linux-image-4.4.0-116-generic",
" linux-image-4.4.0-138-generic", " linux-image-extra-4.4.0-108-generic", " linux-image-extra-4.4.0-109-generic", " linux-image-extra-4.4.0-112-generic",
" linux-image-extra-4.4.0-116-generic", " linux-image-extra-4.4.0-138-generic", " initramfs-tools"]}
When I try to install it without Ansible everything works fine until I tried to start the service
-- Unit zabbix-agent.service has begun starting up.
Nov 22 16:03:00 FRPARUDASTOH02 zabbix_agentd[2748]: zabbix_agentd [2748]: /etc/zabbix/zabbix_agentd.conf.d: [2] No such file or directory
Nov 22 16:03:00 FRPARUDASTOH02 systemd[1]: zabbix-agent.service: Control process exited, code=exited status=1
Nov 22 16:03:00 FRPARUDASTOH02 systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed
-- Defined-By: systemd
The Linux that I'm sing are Ubuntu 16

There are lots of stdout: No space left on device messages in that log.
Your /var may be full and causing numerous issues.

Related

Unable to take cluster backups using medusa

I have a simple 3 node cluster with some sample data. I want to take backup (To S3) of the cluster and restore it in different cluster.
I can take node backup and restore however cluster level backup never seems to be working. It is throwing the following error.
Cassandra version - 3.10, OS - Amazon linux 2 - centos
[2022-05-20 06:37:20,534] INFO: Creating snapshots on all nodes
[2022-05-20 06:37:20,534] INFO: Executing "nodetool -Dcom.sun.jndi.rmiURLParsing=legacy snapshot -t medusa-samp" on following nodes ['nodecassandra-2.localdomain', 'nodecassandra-3.localdomain', 'nodecassandra-1.localdomain'] with a parallelism/pool size of 500
[2022-05-20 06:37:21,129] ERROR: Job executing "nodetool -Dcom.sun.jndi.rmiURLParsing=legacy snapshot -t medusa-samp" ran and finished with errors on following nodes: ['nodecassandra-1.localdomain', 'nodecassandra-2.localdomain', 'nodecassandra-3.localdomain']
[2022-05-20 06:37:21,130] INFO: [nodecassandra-2.localdomain] [err] /bin/bash: nodetool: command not found
[2022-05-20 06:37:21,130] INFO: nodecassandra-2.localdomain-stderr: /bin/bash: nodetool: command not found
[2022-05-20 06:37:21,130] INFO: [nodecassandra-3.localdomain] [err] /bin/bash: nodetool: command not found
[2022-05-20 06:37:21,130] INFO: nodecassandra-3.localdomain-stderr: /bin/bash: nodetool: command not found
[2022-05-20 06:37:21,130] INFO: [nodecassandra-1.localdomain] [err] /bin/bash: nodetool: command not found
[2022-05-20 06:37:21,130] INFO: nodecassandra-1.localdomain-stderr: /bin/bash: nodetool: command not found
[2022-05-20 06:37:21,130] ERROR: Some nodes failed to create the snapshot.
[2022-05-20 06:37:21,130] ERROR: This error happened during the cluster backup: Some nodes failed to create the snapshot.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/medusa/backup_cluster.py", line 64, in orchestrate
backup.execute(cql_session_provider)
File "/usr/local/lib/python3.7/site-packages/medusa/backup_cluster.py", line 146, in execute
self._create_snapshots()
File "/usr/local/lib/python3.7/site-packages/medusa/backup_cluster.py", line 163, in _create_snapshots
raise Exception(err_msg)
Exception: Some nodes failed to create the snapshot.
[2022-05-20 06:37:21,131] ERROR: Something went wrong! Attempting to clean snapshots and exit.
[2022-05-20 06:37:21,131] INFO: Executing "nodetool -Dcom.sun.jndi.rmiURLParsing=legacy clearsnapshot -t medusa-samp" on following nodes ['nodecassandra-2.localdomain', 'nodecassandra-3.localdomain', 'nodecassandra-1.localdomain'] with a parallelism/pool size of 1
[2022-05-20 06:37:22,290] ERROR: Job executing "nodetool -Dcom.sun.jndi.rmiURLParsing=legacy clearsnapshot -t medusa-samp" ran and finished with errors on following nodes: ['nodecassandra-1.localdomain', 'nodecassandra-2.localdomain', 'nodecassandra-3.localdomain']
[2022-05-20 06:37:22,290] INFO: [nodecassandra-2.localdomain] [err] /bin/bash: nodetool: command not found
[2022-05-20 06:37:22,290] INFO: nodecassandra-2.localdomain-stderr: /bin/bash: nodetool: command not found
[2022-05-20 06:37:22,290] INFO: [nodecassandra-3.localdomain] [err] /bin/bash: nodetool: command not found
[2022-05-20 06:37:22,290] INFO: nodecassandra-3.localdomain-stderr: /bin/bash: nodetool: command not found
[2022-05-20 06:37:22,290] INFO: [nodecassandra-1.localdomain] [err] /bin/bash: nodetool: command not found
[2022-05-20 06:37:22,290] INFO: nodecassandra-1.localdomain-stderr: /bin/bash: nodetool: command not found
[2022-05-20 06:37:22,291] ERROR: Some nodes failed to clear the snapshot. Cleaning snapshots manually is recommended
I have added path variables for cassandra bin, nodetool.
Added CASSANDRA_HOME, CASSANDRA_CONF in /etc/profile.d/cassandra.sh.
Added ssh details in medusa.ini. Provided cassandra_conf file path,
storage (s3) details and ssh details in medusa.ini.
Am i missing anything else ?

Cannot build YugabyteDB with clang12 in Alma Linux 8.5

[Question posted by a user on YugabyteDB Community Slack]
Debug build does not seem to be working in the clang12 based build:
./yb_build.sh debug --sj
[100%] Linking CXX executable ../../../tests-integration-tests/cdc_service-int-test
[100%] Built target cdc_service-int-test
make: *** [Makefile:101: all] Error 2
real 0m28.279s
user 4m4.235s
sys 0m25.477s
[2022-02-26T15:52:32 yb_build.sh:466 run_cxx_build] C++ build finished with exit code 2 (build type: debug, compiler: clang12). Timing information is available above.
==========================================================================================
YUGABYTE BUILD SUMMARY
==========================================================================================
Build type : debug
C/C++ compiler : clang12
Build architecture : x86_64
Build directory : /yb-source/build/debug-clang12-dynamic
Third-party dir : /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20211222064150-dd4872fe56-almalinux8-x86_64-clang12
C++ compilation time : 28 seconds
Exit code : 2
------------------------------------------------------------------------------------------
doing
./yb_build.sh debug --clang12 --sj
also results in an error
...
[m-1] In YugabyteDB, setting LC_COLLATE to C and all other locale settings to en_US.UTF-8 by default. Locale support will be enhanced as part of addressing https://github.com/yugabyte/yugabyte-db/issues/1557
[m-1] initdb: invalid locale name "en_US.UTF-8"
[m-1] I0226 15:54:20.630203 15811 pg_wrapper.cc:521] initdb took 124 ms
[m-1] E0226 15:54:20.630272 15811 pg_wrapper.cc:525] initdb failed: Runtime error (yb/yql/pgwrapper/pg_wrapper.cc:467): /yb-source/build/debug-clang12-dynamic/postgres/bin/initdb failed with exit code 1
[m-1] E0226 15:54:20.630429 15811 catalog_manager.cc:7776] initdb failed: Runtime error (yb/yql/pgwrapper/pg_wrapper.cc:467): /yb-source/build/debug-clang12-dynamic/postgres/bin/initdb failed with exit code 1
E0226 15:54:21.075644 15749 external_mini_cluster.cc:1247] master reported an initdb error: Runtime error (yb/yql/pgwrapper/pg_wrapper.cc:467): /yb-source/build/debug-clang12-dynamic/postgres/bin/initdb failed with exit code 1
/yb-source/src/yb/yql/pgwrapper/pg_wrapper_test_base.cc:58: Failure
Failed
Bad status: Runtime error (yb/integration-tests/external_mini_cluster.cc:1248): Failed to start masters.: initdb failed: Runtime error (yb/yql/pgwrapper/pg_wrapper.cc:467): /yb-source/build/debug-clang12-dynamic/postgres/bin/initdb failed with exit code 1
[m-1] W0226 15:54:21.096375 15815 catalog_manager.cc:2084] Tablespace refresh task failed with error Internal error (yb/master/catalog_manager.cc:1929): pg_tablespace table info not found
Test failure stack trace:
/yb-source/src/yb/yql/pgwrapper/pg_wrapper_test_base.cc:58: # 0x7f2962b044e9 yb::pgwrapper::PgWrapperTestBase::SetUp()
/yb-source/src/yb/yql/pgwrapper/create_initial_sys_catalog_snapshot.cc:29: # 0x404d94 yb::pgwrapper::CreateInitialSysCatalogSnapshotTest::SetUp()
I0226 15:54:21.706461 15749 external_mini_cluster.cc:2206] { daemon_id: m-1 bound_rpc: :0 } Starting Shutdown()
I0226 15:54:21.706606 15749 external_mini_cluster.cc:2249] Killing /yb-source/build/debug-clang12-dynamic/tests-pgwrapper/../bin/yb-master with pid 15756 with SIGKILL
I0226 15:54:21.719123 15749 test_util.cc:94] -----------------------------------------------
I0226 15:54:21.719149 15749 test_util.cc:95] Had fatal failures, leaving test files at /tmp/yb_test.tmp.32433.7631.5669.pid15685/create_initial_sys_catalog_snapshot.CreateInitialSysCatalogSnapshotTest.CreateInitialSysCatalogSnapshot.1645890856672495-15749
[ FAILED ] CreateInitialSysCatalogSnapshotTest.CreateInitialSysCatalogSnapshot (5016 ms)
[----------] 1 test from CreateInitialSysCatalogSnapshotTest (5016 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (5016 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] CreateInitialSysCatalogSnapshotTest.CreateInitialSysCatalogSnapshot
1 FAILED TEST
I0226 15:54:21.751582 15748 run-with-timeout.cc:198] subprocess.Wait finished, waitpid() returned 256
...
[postprocess_test_result.py:246] 2022-02-26 15:54:22,577 INFO: Wrote JSON test report file: /yb-source/build/debug-clang12-dynamic/yb-test-logs/tests-pgwrapper__create_initial_sys_catalog_snapshot/CreateInitialSysCatalogSnapshotTest_CreateInitialSysCatalogSnapshot_test_report.json
(end of standard error)
Traceback (most recent call last):
File "/yb-source/python/yb/gen_initial_sys_catalog_snapshot.py", line 83, in <module>
main()
File "/yb-source/python/yb/gen_initial_sys_catalog_snapshot.py", line 74, in main
raise RuntimeError("initdb failed in %.1f sec" % elapsed_time_sec)
RuntimeError: initdb failed in 6.4 sec
make[2]: *** [src/yb/yql/pgwrapper/CMakeFiles/initial_sys_catalog_snapshot.dir/build.make:70: src/yb/yql/pgwrapper/CMakeFiles/initial_sys_catalog_snapshot] Error 1
make[1]: *** [CMakeFiles/Makefile2:51929: src/yb/yql/pgwrapper/CMakeFiles/initial_sys_catalog_snapshot.dir/all] Error 2
make: *** [Makefile:101: all] Error 2
This happens in Alma Linux 8.5. Any hints?
You need some additional packages and it should work:
dnf install langpacks-en glibc-all-langpacks -y

How to fix Terra Rust Smart Contract OpenSSL Error

I am on windows 11. When i run "cargo install cargo-generate --features vendored-openssl" in cmd or powershell i receive:
error: failed to run custom build command for `openssl-sys v0.9.72`
Caused by:
process didn't exit successfully: `C:\Users\tjblu\AppData\Local\Temp\cargo-installsZBq7g\release\build\openssl-sys-dce3228ef73e702e\build-script-main` (exit code: 101)
\--- stdout
cargo:rustc-cfg=const_fn
cargo:rerun-if-env-changed=X86_64_PC_WINDOWS_MSVC_OPENSSL_NO_VENDOR
X86_64_PC_WINDOWS_MSVC_OPENSSL_NO_VENDOR unset
cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
OPENSSL_NO_VENDOR unset
running "perl" "./Configure" "--prefix=C:\\Users\\tjblu\\AppData\\Local\\Temp\\cargo-installsZBq7g\\release\\build\\openssl-sys-5dd3ef493eeba8e5\\out\\openssl-build\\install" "no-dso" "no-shared" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-engine" "no-asm" "VC-WIN64A"
\--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: NotFound, message: "program not found" }', C:\\Users\\tjblu.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\openssl-src-111.18.0+1.1.1n\\src\\lib.rs:477:39
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-generate v0.13.0`, intermediate artifacts can be found at `C:\Users\tjblu\AppData\Local\Temp\cargo-installsZBq7g`
Caused by:
build failed
I've tried so many remedies, please help!
Tried installing perl, choco install openssl. Anything i could find online.
I have found a temporary workaround for this.
These are the steps I took:
Manually downloaded the 'cargo-generate' package from the following link: https://github.com/cargo-generate/cargo-generate/releases
Downloaded 'cargo-generate-v0.13.0-x86_64-pc-windows-msvc.tar.gz'
Extracted the content, and copied 'cargo-generate.exe' to the following Windows local directory path 'C:\Users\[username]\.cargo\bin\'.
Hope this helps for now, also waiting for a better solution.

"stack build" failed randomly

When I used stack build to build a package, it failed randomly during the process of installing dependent packages. Here is an example error message:
While building package statistics-0.13.3.0 using:
/home/work/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.24.0.0-ghc-8.0.1 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.0.0 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure (-11)
Logs have been written to: /home/work/server/dev/taiji/.stack-work/logs/statistics-0.13.3.0.log
I said "failed randomly" because this can be fixed by restart stack build. But it will fail on building another package later.
I looked at the dmesg | tail, it says:
[1029507.778048] ghc[16868]: segfault at 7d538d610628 ip 00007f5384094ed0 sp 00007ffceed0bda0 error 4 in libHSrts_thr-ghc8.0.1.so[7f538407a000+63000]
[1029524.911751] ghc[17599]: segfault at 100206005838 ip 00007f1c727de754 sp 00007ffdc160fd58 error 4 in libHSghc-8.0.1-ghc8.0.1.so[7f1c6e4de000+49c9000]
[1029533.035216] ghc[16789]: segfault at 7da273b664f0 ip 00007fa273b35a8e sp 00007ffe2f55d540 error 4 in libHSrts_thr-ghc8.0.1.so[7fa273b1c000+63000]
Any idea?
This turns out to be a memory defect issue.

Unable to run vlc-android on simulator/device

I am following the below url link to compile and run vlc-android
https://wiki.videolan.org/AndroidCompile/
I can create the apk via "Generate Signed APK" from Android Studio.
But when I want to run it on the simulator or a connected device I get the following error.
Error log:
Information:Gradle tasks [:vlc-android:assembleChromeARMv5Debug]
:libvlc:buildDebugARMv5
For an ARMv6 device without FPU:
use "-a armeabi-nofpu"
For an ARMv5 device:
use "-a armeabi-v5"
ABI: armeabi
API: android-9
SYSROOT: /Users/ashishkumarpatel/android-ndk-r10e/platforms/android-9/arch-arm
FPU: NO
ARMv5: YES
PATH: /Users/ashishkumarpatel/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin:/usr/bin:/bin:/usr/sbin:/sbin
CFLAGS: -g -O2 -fstrict-aliasing -funsafe-math-optimizations -mlong-calls
EXTRA_CFLAGS: -march=armv5te -mtune=arm9tdmi -msoft-float -I/Users/ashishkumarpatel/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.8/include -I/Users/ashishkumarpatel/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi/include
./compile-libvlc.sh: line 413: cd: vlc: No such file or directory
Building tools
./compile-libvlc.sh: line 421: cd: extras/tools: No such file or directory
./compile-libvlc.sh: line 422: ./bootstrap: No such file or directory
buildsystem tools: bootstrap failed
:libvlc:buildDebugARMv5 FAILED
Error:Execution failed for task ':libvlc:buildDebugARMv5'.
Error message:
Process 'command './compile-libvlc.sh'' finished with non-zero exit value 1
Information:BUILD FAILED
Information:Total time: 1.162 secs
Information:1 error
Information:0 warnings
Information:See complete output in console

Resources