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

Error: database volume path does not match our volume path: database configuration mismatch #23515

Closed
shi2wei3 opened this issue Aug 6, 2024 · 5 comments · Fixed by #23524
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@shi2wei3
Copy link

shi2wei3 commented Aug 6, 2024

Issue Description

Starting with podman-5.2.0-1.el10, I get the following error in centos-bootc(rpm-ostree) rootless mode
home -> var/home
$HOME=/home/admin

Error: database volume path "/home/admin/.local/share/containers/storage/volumes" does not match our volume path "/var/home/admin/.local/share/containers/storage/volumes": database configurat
ion mismatch

This bug starts with CentOS-Stream-10-20240805.0 with podman-5.2.0-1.el10
No exists on CentOS-Stream-10-20240802.0 with podman-5.1.2-2.el10

Steps to reproduce the issue

Steps to reproduce the issue

  1. boot centos-bootc:stream10 with podman-5.2.0-1.el10
  2. run podman system info in rootless

Describe the results you received

Error: database volume path "/home/admin/.local/share/containers/storage/volumes" does not match our volume path "/var/home/admin/.local/share/containers/storage/volumes": database configurat
ion mismatch

Describe the results you expected

podman system info

podman info output

Error: database volume path "/home/admin/.local/share/containers/storage/volumes" does not match our volume path "/var/home/admin/.local/share/containers/storage/volumes": database configurat
ion mismatch


### Podman in a container

No

### Privileged Or Rootless

Rootless

### Upstream Latest Release

Yes

### Additional environment details

centos-bootc:stream10 with podman-5.2.0-1.el10 deployed on a KVM guest

### Additional information

_No response_
@shi2wei3 shi2wei3 added the kind/bug Categorizes issue or PR as related to a bug. label Aug 6, 2024
@Luap99
Copy link
Member

Luap99 commented Aug 6, 2024

@mheon PTAL

@mheon
Copy link
Member

mheon commented Aug 6, 2024

Ah, I see now. Volume path doesn't exist, so evalSymlinksIfExists doesn't have a symlink to evaluate and so just cleans the path, leading to a /var/home vs /home mismatch on OSTree.

Best solution probably just to create the path as part of Podman init.

As a workaround, you can mkdir /home/admin/.local/share/containers/storage/volumes and, now that the directory exists, the symlink we be evaluated correctly and things should go back to working.

@j-dominguez9
Copy link

Also having this issue on fedora silverblue after rpm-ostree update

@mheon
Copy link
Member

mheon commented Aug 16, 2024 via email

openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/podman that referenced this issue Aug 16, 2024
Strictly speaking we don't need the path yet, but it existing
prevents a lot of strangeness in our path-checking logic to
validate the current Podman configuration, as it was the only
path that might not exist this early in init.

Fixes containers#23515

Signed-off-by: Matt Heon <mheon@redhat.com>
@rmb938
Copy link

rmb938 commented Aug 16, 2024

Having same problem as @j-dominguez9 on Fedora Kionite. Fixed it by running what was mentioned above mkdir /home/${USER}/.local/share/containers/storage/volumes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants