Troubleshooting
See molecule for specific molecule troubleshooting.
Driver podman does not provide a schema
Podman driver does have a schema and will always generate a warning.
WARNING Driver podman does not provide a schema.
Podman requires 'tmpfs' as dict not list
Molecule documentation refers to using tmpfs as a list. Podman only accepts dictionaries.
molecule.yml
platforms:
- name: 'tmpfs as a dict'
image: ghcr.io/hifis-net/debian-systemd:13
tmpfs:
/tmp: 'rw,size=787448k,mode=1777'
platforms:
- name: 'tmpfs not needed with systemd always'
image: 'ghcr.io/hifis-net/debian-systemd:13'
systemd: 'always' # tmpfs not need if 'always'.
Podman database static dir mis-match
Podman will not migrate things out of /home to prevent existing pod breakage.
Error: database static dir ".../graph/libpod" does not match our static dir ".../graph/libpod": database configuration mismatch
# Reset podman and migrate.
podman system reset
podman system migrate
Cannot use ping from container
Some containers services require ping.
/etc/sysctl.d/net_ipv4_ping_group_range
0755 root:root
net.ipv4.ping_group_range=0 $MAX_UID
/etc/containers/containers.conf
0644 root:root
default_sysctls = [
"net.ipv4.ping_group_range=0 2147483647",
]
Containers ignore graphroot and runroot
Graphroot and runroot are ignored in rootless containers and use following defaults if not defined:
XDG_CONFIG_HOME=${HOME}/.config
XDG_DATA_DIR=${HOME}/.local/share
XDG_RUNTIME_DIR=/run/user/${UID}