-
Notifications
You must be signed in to change notification settings - Fork 441
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
Badger failure on Windows Subsystem for Linux (fixed on Badger 2.0) #156
Comments
Looks like the changes to use badger 2 are not very large. However, the data stored by badger v1 is incompatible with the data stored by v2. The change will require users to migrate their databases, or start from scratch. We'll have to discuss with the team to figure out a timeline. I think most users are probably using the database in a nearly ephemeral way anyway. Unless you're using revocation, in which case you would lose the history of all revoked certs unless you migrated the DB. |
@dopey: Although I don't really need revocations because this should be used for localhost development, it would be still nice to have this fully working on WSL. Couldn't badger be used in a way that it autodetects the database file format and offer an optional migration to the user? Edit: The other supported database, bbolt also got issues with latest WSL (go |
We discussed this in the morning, and I'll do my best to take a look this week. Current thinking is try to open the db with v2, if that fails then fallback to v1 and log a message that directs the user to the badger migration docs.
Try omitting the db attribute entirely. I've just tried that and it works locally. |
*And/or additionally offer a DB |
Yeah, that was my initial idea too. If the method I described above isn't working out then I'll fallback to this. |
Update on this: I tried to load badger and badger/v2 from the same project and the build fails with the following error:
I believe this is because there is common code being run from the Short term I can build a branch of Would a branch be useful to people or do you prefer to have specific builds in the github releases? |
Could the v1 badger package be dynamically loaded using a |
Maybe. We don't use plugins anywhere else in our codebase and I've never used them before. I’m weary of introducing something I don't yet understand. However, if you'd like to submit a PR that does this, I'd be happy work with you to get it merged. |
Could we open an issue with badger to describe the situation and see if they have any guidance? |
Update on the issue we opened on Badger is that they are looking into this to see if there's anything they can do to ease the transition :/ |
Let me check "only badger 2.0 working" interim release is useful |
I'll build an interim release that supports only badger2 and link it tomorrow. |
Here's a link to a release built using badger2 -> https://github.com/smallstep/certificates/releases/tag/v0.14.0-rc.4.badger2 |
@dopey: Just pulled the latest image from DockerHub (auto-build, nice!). |
Thank you @dopey I just tested my Ubuntu in Windows 10. |
I'm seeing this on the latest release
|
@gclawes was a previous version of I just tested on linux/ubuntu and darwin and don't have any trouble opening the DB. If this is, indeed, an issue with linux/arm not supporting badger v1, then we should be able to fix this in the 0.15 release, which should be a quick follow. Badger recently pushed a fix allowing the use of both badger v1 and v2 simultaneously, which unblocks us being able to support badger v2. I'm happy to create a release that uses badgerV2 if you'd be willing to try that out to see if it fixes your issue. |
This is the first version I am testing on ARM. I see the same with
|
I'd be happy to test anything you want. My testing platform is this:
I also have an RPi 4 w/ ubuntu 64-bit. |
Made a badger2 release - https://github.com/smallstep/certificates/releases v014.3-rc.1.badger2. Let me know if that works (or doesn't). |
I'm getting this on my armv7 box:
|
Removing /root/.step and re-running
I originally had over-written an existing
|
Subject of the issue
I got this bug while trying out step-ca on WSL: dgraph-io/badger#722
According to the comment at the end, it was fixed when upgrading to badger 2. step-ca still currently uses 1.5.3.
Your environment
Steps to reproduce
Use Windows 10 WSL version 1909 OS build 18363.535, get ubuntu wsl. Get step-ca. And try running it after
step ca init --ssh
.The text was updated successfully, but these errors were encountered: