-
Notifications
You must be signed in to change notification settings - Fork 434
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
v0.14.4 armv7 - step-ca - Error opening database of Type badger with source /root/.step/db: error opening Badger database: Unable to mmap RDWR log file: invalid argument #279
Comments
Hey @tuxnice, thanks for opening the issue. This is sort of hidden in the documentation, but have you tried setting |
Hello dopey, yes I tried it, but I got the same error. Here is the section of my ca.json:
thanks in advance, |
I'm hitting the same issue running step-ca in an Alpine container on a Raspberry Pi 4 |
Can you try setting Do an |
There's a Badger issue for this: ipfs/kubo#5305 The suggested solution is to reduce the vLogFileSize, e.g: "vlogFileSize": "100 M", so this needs to be available similarly in ca.json |
@dopey badgerV2 works for me, thanks! |
Awesome! I'll update the documentation to let users know to use |
@dopey
I also added |
@tuxnice would you mind posting the entire |
Sure, I did. Here it is the db section:
Error with the same settings above, with
With
|
@tuxnice I'll cut a release later this afternoon with logFileSize hardcoded to "100 M". If you could test that out and lemme know if it works, that would be great. Assuming it works, we'll have to surface that option in the |
Yes, I'll do. But right now it looks like I have time to test it on the weekend at the earliest. |
@tuxnice Now that I'm looking at the actual code vs. the documentation I think the documentation might be wrong. The name of the attribute should be When you have the chance can you try setting your database configuration to:
If that doesn't fix the issue, then I did cut a release (https://github.com/smallstep/certificates/releases/tag/v0.14.5-rc.2.100MB.badgerV2) that hardcodes the I just updated the documentation. |
Thank you, |
Awesome! Glad that worked. My bad on the documentation snafu. The reason is that most users are using badgerV1 at this time (we assume, since we don't really have a good way of knowing) and badgerV2 is not backwards compatible. The plan is to switch to We could do a soft switch to writing Let me know if you have any questions or suggestions about the switch from v1 to v2. We're still figuring out the process and we want it to be as seamless as possible for users on v1. I'm going to close this issue since I think we got to the bottom of it (bad documentation). But feel free to re-open if you run into any more problems. |
Ladies and Gents o/ Is this issue still ongoing? I suppose that the latest version does not need me to apply the "./config/ca.json" anymore? Install: helm install step-certificates smallstep/step-certificates But when I follow the instructions here : https://smallstep.com/docs/step-ca/getting-started/#run-your-certificate-authority I can only change the ca.json from applying a new configmap (with the changes mentioned here). and
After that I re-create the pod, try again, same error. Am I misunderstanding how is it supposed to work? Thanks! |
I was experiencing this error. It wasn't fixed by using the above guidance. I solved it by:
|
Subject of the issue
The command "step-ca $(step path)/config/ca.json" runs into following error:
Error opening database of Type badger with source /root/.step/db: error opening Badger database: Unable to mmap RDWR log file: invalid argument
Your environment
OS - Raspbian Buster 10.4
Version - step/step-ca v0.14.4 armv7
Installed packages
gccgo/stable 4:8.3.0-1+rpi2 armhf
golang-go/stable,now 2:1.11~1+b6 armhf
Steps to reproduce
~ # step ca init (runs without issues)
~ # step-ca $(step path)/config/ca.json
Error opening database of Type badger with source /root/.step/db: error opening Badger database: Unable to mmap RDWR log file: invalid argument
Expected behaviour
Serving HTTPS on 127.0.0.1:8443 ...
Actual behaviour
Can not run step-ca
Additional context
Maybe could be fixed with:
https://github.com/dgraph-io/badger#memory-usage
The text was updated successfully, but these errors were encountered: