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

Failed to decode the keys ["machine"] from "/usr/share/containers/containers.conf" #789

Closed
nixx-geek opened this issue Sep 26, 2021 · 4 comments

Comments

@nixx-geek
Copy link

After upgrading to 0.46.0, whenever I use podman commands I receive the following WARN messages:

WARN[0000] Failed to decode the keys ["machine"] from "/usr/share/containers/containers.conf".
WARN[0000] Failed to decode the keys ["machine"] from "/etc/containers/containers.conf".
WARN[0000] Failed to decode the keys ["machine"] from "/usr/share/containers/containers.conf".
WARN[0000] Failed to decode the keys ["machine"] from "/etc/containers/containers.conf".
WARN[0000] Failed to decode the keys ["machine"] from "/usr/share/containers/containers.conf".
WARN[0000] Failed to decode the keys ["machine"] from "/etc/containers/containers.conf".
@rhatdan
Copy link
Member

rhatdan commented Sep 26, 2021

Did you update your containers.conf?

@nixx-geek
Copy link
Author

I'm not sure what you mean.
I upgraded the packages:
pacman -Syu

[2021-09-26T11:06:47+0300] [ALPM] running '30-systemd-update.hook'...
[2021-09-26T11:06:47+0300] [ALPM] running 'dbus-reload.hook'...
[2021-09-26T12:02:27+0300] [PACMAN] Running 'pacman -Syu'
[2021-09-26T12:02:27+0300] [PACMAN] synchronizing package lists
[2021-09-26T12:02:27+0300] [PACMAN] starting full system upgrade
[2021-09-26T12:02:34+0300] [ALPM] transaction started
[2021-09-26T12:02:34+0300] [ALPM] upgraded containers-common (0.45.0-1 -> 0.46.0-1)
[2021-09-26T12:02:34+0300] [ALPM] upgraded iana-etc (20210728-1 -> 20210903-1)
[2021-09-26T12:02:34+0300] [ALPM] transaction completed
[2021-09-26T12:02:34+0300] [ALPM] running '30-systemd-update.hook'...

@pschyma
Copy link

pschyma commented Sep 27, 2021

Same issue here. A [machine] section is present in "/etc/containers/containers.conf" and "/usr/share/containers/containers.conf" (created by Arch).

[machine]
# Number of CPU's a machine is created with.
#
#cpus=1

# The size of the disk in GB created when init-ing a podman-machine VM.
#
#disk_size=10

# The image used when creating a podman-machine VM.
#
#image = "testing"

# Memory in MB a machine is created with.
#
#memory=2048

# The [machine] table MUST be the last entry in this file.
# (Unless another table is added)
# TOML does not provide a way to end a table other than a further table being
# defined, so every key hereafter will be part of [machine] and not the
# main config.

Is this enough of configuration?

/edit: right now I "resolved" it by commenting the table header #[machine].

@rhatdan
Copy link
Member

rhatdan commented Sep 27, 2021

Yes, this means that they are shipping a newer version because we have released a newer version of containers-common, but podman 3.4 has not been released, which should understand the new format. For now you can safely ignore the error. or edit the containers.conf file to remove the stanza. Or wait for podman 3.4 to get released.
Either way this is not an upstream podman on common issue.

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