Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Building results into "Failed to restart snapd.mounts-pre.target" #83

Closed
MakisH opened this issue Apr 16, 2024 · 1 comment · Fixed by #84
Closed

Building results into "Failed to restart snapd.mounts-pre.target" #83

MakisH opened this issue Apr 16, 2024 · 1 comment · Fixed by #84
Labels
bug Something isn't working

Comments

@MakisH
Copy link
Member

MakisH commented Apr 16, 2024

Building on my laptop results very early into:

    default: Setting up snapd (2.61.3+20.04) ...
    default: Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ...
    default: snapd.failure.service is a disabled or a static unit not running, not starting it.
    default: snapd.snap-repair.service is a disabled or a static unit not running, not starting it.
    default: Failed to restart snapd.mounts-pre.target: Operation refused, unit snapd.mounts-pre.target may be requested by dependency only (it is configured to refuse manual start/stop).
    default: See system logs and 'systemctl status snapd.mounts-pre.target' for details.
    default: Setting up systemd-sysv (245.4-4ubuntu3.23) ...
    default: Setting up libnss-systemd:amd64 (245.4-4ubuntu3.23) ...
    default: Setting up libpam-systemd:amd64 (245.4-4ubuntu3.23) ...
    default: Processing triggers for install-info (6.7.0.dfsg.2-5) ...
    default: Processing triggers for mime-support (3.64ubuntu1) ...
    default: Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
    default: update-initramfs: Generating /boot/initrd.img-5.4.0-169-generic
    default: Error 24 : Write error : cannot write compressed block
    default: E: mkinitramfs failure cpio 141 lz4 -9 -l 24
    default: update-initramfs: failed for /boot/initrd.img-5.4.0-169-generic with 1.
    default: dpkg: error processing package initramfs-tools (--configure):
    default:  installed initramfs-tools package post-installation script subprocess returned error exit status 1
    default: Processing triggers for libc-bin (2.31-0ubuntu9.14) ...
    default: Processing triggers for man-db (2.9.1-1) ...
    default: Processing triggers for plymouth-theme-ubuntu-text (0.9.4git20200323-0ubuntu6.2) ...
    default: update-initramfs: deferring update (trigger activated)
    default: Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
    default: Errors were encountered while processing:
    default:  initramfs-tools
    default: E: Sub-process /usr/bin/dpkg returned an error code (1)
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

On GitHub Actions, it seems to fail also very early (earlier) with a different issue.

@MakisH MakisH added the bug Something isn't working label Apr 16, 2024
@MakisH MakisH changed the title Building results int "Failed to restart snapd.mounts-pre.target" Building results into "Failed to restart snapd.mounts-pre.target" Apr 17, 2024
MakisH added a commit that referenced this issue Apr 17, 2024
@MakisH
Copy link
Member Author

MakisH commented Apr 17, 2024

Seems to be related to the generic/ubuntu2004 base image we use since #25. Switching back to bento/ubuntu-20.04 works: #84

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant