Error: database static dir ... does not match our static dir ... database configuration mismatch

Raymond Raymond event 2025-01-09 visibility 17
more_vert
Error: database static dir ... does not match our static dir ... database configuration mismatch

Context

When using podman/docker with .NET Aspire 9 on Ubuntu, I encountered the following error:


The error from the container runtime check was: Error: database static dir "/home/${USER}/snap/code/174/.local/share/containers/storage/libpod" does not match our static dir "/home/${USER}/snap/code/179/.local/share/containers/storage/libpod": database configuration mismatch


Resolve the error

The error occurred after my VS Code update in snap. Previously all local caches of containers are stored in `~/snap/code/174/.local/share/containers/storage/libpod` while the new ones are stored in `~/snap/code/179/.local/share/containers/storage/libpod`. Your error message might be slightly different.


I've run the following commands to remove VS Code local files. Please make sure you have backed-up these configuration in case anything goes wrong as I'm not familiar with VS Code .local/share folder and its purpose.


sudo rm -R /home/${USER}/snap/code/174
sudo rm -R /home/${USER}/snap/code/179/.local/share/containers/storage


After restart .NET Aspire host project, everything goes back to normal:

20250109214942-image.png


More from Kontext
comment Comments
No comments yet.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts