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

LXC error PGP server validation #41

Open
oriolpiera opened this issue Jul 20, 2021 · 2 comments
Open

LXC error PGP server validation #41

oriolpiera opened this issue Jul 20, 2021 · 2 comments

Comments

@oriolpiera
Copy link

Seems that server https://sks-keyservers.net/ used to check PGP keys is down. So, when you create a LXC container, we get this error:

Loading project configuration from "/home/oriol/somenergia/src/odoo/odoo-somenergia-inventory/.devenv"
Loading system configuration from "/etc/devenv"
* CONFIGURATION:
  - Name: hr_employee_multidepartment
  - Distribution: ubuntu
  - Release: bionic
  - LXC Configuration: /tmp/ubuntu.hr_employee_multidepartment.conf
  - Hosts: hr_employee_multidepartment.local
  - Project Name: hr_employee_multidepartment
  - Project Directory: /home/oriol/somenergia/src/odoo/hr/hr_employee_multidepartment
  - Will mount on: /opt/odoo_modules/hr_employee_multidepartment
  - User: odoo
  - Group: odoo

Creating container hr_employee_multidepartment...
The cached copy has expired, re-downloading...
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver
lxc-create: hr_employee_multidepartment: lxccontainer.c: create_run_template: 1617 Failed to create container from template
lxc-create: hr_employee_multidepartment: tools/lxc_create.c: main: 327 Failed to create container hr_employee_multidepartment

So, as a work arround, we add --no-verify param in lxc creation in devenv script line 160:

sudo lxc-create --name "$NAME" -f "$LXC_CONFIG" -t download -l INFO -- --dist "$DISTRIBUTION" --release "$RELEASE" --arch "$ARCH"
for
sudo lxc-create --name "$NAME" -f "$LXC_CONFIG" -t download -l INFO -- --dist "$DISTRIBUTION" --release "$RELEASE" --arch "$ARCH" --no-validate

@rtertiaer
Copy link

rtertiaer commented Nov 13, 2021

This is fixed in version 4.0.10 of lxc (ref: lxc/lxc#3882.) In Debian, this is available in the "bookworm" (currently testing) release.

@enricostano
Copy link
Contributor

I'm still seeing this issue with lxc version 4.0.11 on Arch Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants