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

Spin state dir not being created #216

Closed
kate-goldenring opened this issue Oct 28, 2024 · 0 comments · Fixed by #218
Closed

Spin state dir not being created #216

kate-goldenring opened this issue Oct 28, 2024 · 0 comments · Fixed by #218
Labels
bug Something isn't working

Comments

@kate-goldenring
Copy link
Collaborator

After moving to using Spin factors in #189, it seems we are no longer creating a state dir. This is probably due to setting remaining factors config (including state dir) to default. The result is that embedded SQLite is no longer working. For example, a simple todo app on shim v0.16 has the.spin state dir:

$ sudo ls -a /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/c2045da87dc7194596d90481430cc57c509952c5375777b5be162bc638c3cdd0/rootfs
.  ..  assets  .cache  dev  etc  proc  runtime-config.toml  .spin  spin.json  spin.lock  sys  var
$ sudo ls -a /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/c2045da87dc7194596d90481430cc57c509952c5375777b5be162bc638c3cdd0/rootfs/.spin
.  ..  sqlite_db.db

However, canary no longer has .spin in it's rootfs:

sudo ls -a /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/8fcf674a69594014ada4e1bb88ac635bc87388673ac4209480f959390430421e/rootfs
.  ..  assets  .cache  dev  etc  proc  runtime-config.toml  spin.json  sys  var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant