Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Installation failure for grub-efi-amd64-signed #1605

Closed
1 of 6 tasks
jamtur01 opened this issue Sep 16, 2020 · 12 comments
Closed
1 of 6 tasks

Installation failure for grub-efi-amd64-signed #1605

jamtur01 opened this issue Sep 16, 2020 · 12 comments
Assignees
Labels
bug Something isn't working external investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu

Comments

@jamtur01
Copy link

jamtur01 commented Sep 16, 2020

Description
We're seeing some intermittent failures using the ubuntu-20.04 image (Version: 20200914.1). We run a bootstrap script that does an apt update and then an apt upgrade which fails with:

Setting up grub-efi-amd64-signed (1.142.6+2.04-1ubuntu26.4) ...
Trying to migrate /boot/efi into esp config
Installing grub to /boot/efi.
Installing for x86_64-efi platform.
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.

You can see some failures here:

vectordotdev/vector#3932

Specifically:

https://github.com/timberio/vector/pull/3932/checks?check_run_id=1123684447

You can see one of the workflows here:

https://github.com/timberio/vector/blob/master/.github/workflows/tests.yml

And the bootstrap script we run here:

https://github.com/timberio/vector/blob/master/scripts/environment/bootstrap-ubuntu-20.04.sh

Area for Triage:
Packages

Question, Bug, or Feature?:

Bug

Virtual environments affected

  • macOS 10.15
  • Ubuntu 16.04 LTS
  • Ubuntu 18.04 LTS
  • Ubuntu 20.04 LTS
  • Windows Server 2016 R2
  • Windows Server 2019

Expected behavior
To be able to apt upgrade successfully.

Actual behavior
apt upgrade fails with:

Setting up initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: deferring update (trigger activated)
Setting up grub-efi-amd64-signed (1.142.6+2.04-1ubuntu26.4) ...
Trying to migrate /boot/efi into esp config
Installing grub to /boot/efi.
Installing for x86_64-efi platform.
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
Setting up cryptsetup-initramfs (2:2.2.2-3ubuntu2.2) ...
update-initramfs: deferring update (trigger activated)
update-initramfs: deferring update (trigger activated)
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for rsyslog (8.2001.0-1ubuntu1.1) ...
Processing triggers for systemd (245.4-4ubuntu3.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-1025-azure
Errors were encountered while processing:
 grub-efi-amd64-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)
##[error]Process completed with exit code 100.

Repro steps

It's intermittent - but is happening more on each run we've monitored.

vectordotdev/vector#3932
https://github.com/timberio/vector/pull/3932/checks?check_run_id=1123684447

@jamtur01 jamtur01 changed the title grub-install failed to register the EFI boot entry: Operation not permitted. Installation failure for grub-efi-amd64-signed (1.142.6+2.04-1ubuntu26.4) Sep 16, 2020
@jamtur01 jamtur01 changed the title Installation failure for grub-efi-amd64-signed (1.142.6+2.04-1ubuntu26.4) Installation failure for grub-efi-amd64-signed Sep 16, 2020
@al-cheb al-cheb added bug Something isn't working investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu and removed needs triage labels Sep 16, 2020
@al-cheb
Copy link
Contributor

al-cheb commented Sep 16, 2020

Hello, @jamtur01
Could you please add commands below before apt update --yes and rerun build?

apt-get install grub-efi
update-grub

@jamtur01
Copy link
Author

jamtur01 commented Sep 16, 2020

Looks like that fixes it. Certainly, none of our bootstraps have failed, but given the problem has been intermittent I am not 100% sure.

You can see the output of checks here:

vectordotdev/vector#3938

@jamtur01
Copy link
Author

This isn't a permanent solution. We use the same bootstrap script inside Docker containers - this solution will obviously choke in there as update-grub will fail.

@al-cheb
Copy link
Contributor

al-cheb commented Sep 17, 2020

@jamtur01 , As a temporary workaround you can test if process running in a docker container:

if ! grep 'docker' /proc/1/cgroup -q ; then  
	update-grub
fi

@al-cheb
Copy link
Contributor

al-cheb commented Sep 30, 2020

Feel free to open the thread if you have any concerns.

@al-cheb al-cheb closed this as completed Sep 30, 2020
@jamtur01
Copy link
Author

Has the issue been resolved and can we remove the workaround?

@al-cheb
Copy link
Contributor

al-cheb commented Sep 30, 2020

@jamtur01, Looks like the issue doesn't reproduce on the new image:

 - name: Azure
      run: |
        sudo apt update --yes
        sudo apt upgrade --yes

@jamtur01
Copy link
Author

This is back again.

https://github.com/timberio/vector/runs/1308881114?check_suite_focus=true

Setting up grub-efi-amd64-signed (1.142.8+2.04-1ubuntu26.6) ...
Trying to migrate /boot/efi into esp config
Installing grub to /boot/efi.
Installing for x86_64-efi platform.
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (245.4-4ubuntu3.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-1031-azure
Errors were encountered while processing:
 grub-efi-amd64-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error: Process completed with exit code 100.

@al-cheb
Copy link
Contributor

al-cheb commented Oct 27, 2020

Hello, @jamtur01
Looks like a bug - https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1871963

As a temporary workaround, please update workflow to include:

- run: sudo apt-get purge grub\*
- run: sudo bash scripts/environment/bootstrap-ubuntu-20.04.sh

@al-cheb al-cheb reopened this Oct 27, 2020
xatier added a commit to xatier/hime that referenced this issue Nov 8, 2020
- Use customized build commands
- Use Ubuntu 20.04 for  libgtk-3-dev 3.24.20
- Add workaround for grub package issue

Ref: actions/runner-images#1605
jhale added a commit to FEniCS/dolfinx that referenced this issue Nov 9, 2020
@hloeung
Copy link

hloeung commented Nov 22, 2020

garth-wells added a commit to FEniCS/dolfinx that referenced this issue Dec 5, 2020
* Change demo LU solver

* Add superlu-dist to Spack test

* Add work-around for PETSc Spack issue.

* Disable parallel Spack test

* Pin Spack CI PETSc version at 3.13

* Add micro version

* Fix micro version

* Fix petsc4py version

* Fix package name

* Another PETSc spack version attempt

* Add MUMPS

* Spack update.

* Fix test env

* Set JIT compile options.

* Try adding OpenMPI runtime options

* Add workaround for grub error

actions/runner-images#1605

* More grub workaround battles

* Set number of OpenBLAS threads for Spack test

* Add back grub workaround

* Roll back change

* Re-enable OpenMPI options

* Skip macos spack build

* Make more verbose

* Run demos rather than unit tests with spack

* Run single Python demo

* Spack test updates

Co-authored-by: Jack S. Hale <mail@jackhale.co.uk>
@al-cheb
Copy link
Contributor

al-cheb commented Dec 14, 2020

Hello, @jamtur01
Seems the bug is fixed in - https://launchpad.net/ubuntu/+source/efivar/37-2ubuntu2.2

Waiting for a new image rollout with updated libs:

libefiboot1/focal-updates,now 37-2ubuntu2.2 amd64 [installed,automatic]
libefivar1/focal-updates,now 37-2ubuntu2.2 amd64 [installed,automatic]

@al-cheb
Copy link
Contributor

al-cheb commented Dec 17, 2020

Deployment of Ubuntu 20.04 has been finished.

@al-cheb al-cheb closed this as completed Dec 17, 2020
jszwedko added a commit to vectordotdev/vector that referenced this issue Jun 15, 2021
This appears to be causing build failures now:
https://github.com/timberio/vector/runs/2830503940#step:6:1230

And the relevant Github Actions runner issue this was meant to address
(actions/runner-images#1605) has been
resolved so it doesn't seem necessary anymore.

Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
jszwedko added a commit to vectordotdev/vector that referenced this issue Jun 15, 2021
This appears to be causing build failures now:
https://github.com/timberio/vector/runs/2830503940#step:6:1230

And the relevant Github Actions runner issue this was meant to address
(actions/runner-images#1605) has been
resolved so it doesn't seem necessary anymore.

Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
Slackadays added a commit to Slackadays/Clipboard that referenced this issue Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu
Projects
None yet
Development

No branches or pull requests

4 participants