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

panic: file missing #67

Closed
mplanchard opened this issue Nov 30, 2023 · 1 comment
Closed

panic: file missing #67

mplanchard opened this issue Nov 30, 2023 · 1 comment

Comments

@mplanchard
Copy link

I've somehow gotten myself into a state where running local-kms with any arguments results in:

❯ local-kms -vvv --help 
INFO[2023-11-30 18:54:38.709] Local KMS Version Unknown (Commit Hash Unknown) 
panic: file missing

goroutine 1 [running]:
github.com/nsmithuk/local-kms/src/data.NewDatabase(...)
        github.com/nsmithuk/local-kms/src/data/database.go:15
github.com/nsmithuk/local-kms/src.Run({0x964759, 0x4}, {0x968bf0, 0xf})
        github.com/nsmithuk/local-kms/src/server.go:19 +0x356
main.main()
        github.com/nsmithuk/local-kms/start.go:111 +0x57d

any ideas?

@mplanchard
Copy link
Author

Resolved by explicitly setting KMS_DATA_PATH to a different directory.

It would be reasonable I think to default this to an XDG-compliant configuration directory, rather than /tmp/local-kms, since /tmp can be wiped out at any time for any reason

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

1 participant