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

error opening /home/step/config/ca.json: open /home/step/config/ca.json: no such file or directory (Minishift) #31

Open
minaeshak opened this issue Jan 1, 2021 · 4 comments

Comments

@minaeshak
Copy link

After installing the chart on minishift . I've got "error opening /home/step/config/ca.json: open /home/step/config/ca.json: no such file or directory" and the pods are not able run

image

image

image

@maraino
Copy link
Collaborator

maraino commented Jan 4, 2021

@minaeshak Can you post the logs of one of the pods named ca-xxxxx. Those are bootstrap jobs in charge of creating the certificate, keys, and ca.json.

@windowsrefund
Copy link

windowsrefund commented Nov 2, 2022

I'm hitting this as well just trying to setup a RA using these instructions. I should point out those instructions seem to be incomplete when compared to these (notice the diff in terms of configuration fields mentioned). In any case, after reviewing both, I am confident my values.yaml is sane and yet, my pod still enters into a CrashLoopBackOff status because it can't find the files mentioned.

❯ helm ls -n core
NAME                    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART                           APP VERSION
step-certificates       core            1               2022-11-01 23:28:59.263645962 -0400 EDT deployed        step-certificates-1.22.1        0.22.1

❯ kga -n core
NAME                      READY   STATUS             RESTARTS       AGE
pod/step-certificates-0   0/1     CrashLoopBackOff   6 (3m4s ago)   9m24s

NAME                        TYPE       CLUSTER-IP      EXTERNAL-IP   PORT(S)         AGE
service/step-certificates   NodePort   10.99.158.185   <none>        443:32400/TCP   9m24s

NAME                                 READY   AGE
statefulset.apps/step-certificates   0/1     9m24s

❯ k get cm -n core
NAME                          DATA   AGE
kube-root-ca.crt              1      2d22h
step-certificates-bootstrap   1      23m
step-certificates-certs       0      23m
step-certificates-config      0      23m
step-certificates-secrets     0      23m

❯ k logs -n core step-certificates-0
Defaulted container "step-certificates" out of: step-certificates, step-certificates-init (init)
error opening /home/step/config/ca.json: open /home/step/config/ca.json: no such file or directory

Which, if any, of the mentioned docs are up to date and correct? As I've been reading more documentation on this site, I get the sense there have been many changes to how things are bootstrapped and the various use cases, along with the relevant docs, seems quite fragmented. Is using this chart solely to run a RA even still legit?

Thanks in advance.

@maraino
Copy link
Collaborator

maraino commented Nov 2, 2022

@windowsrefund that example is deprecated you should use this https://github.com/smallstep/helm-charts/tree/master/step-certificates#tldr

This method also has the benefit of re-creating the same configuration multiple times.

@hslatman
Copy link
Member

hslatman commented Nov 3, 2022

Hey @maraino, I've looked into @windowsrefund's question on Discord and had to do some manual changes to the generated values.yml when setting up an RA in this way. I also found your issue smallstep/cli#598. It's pretty close to some of the things I've done recently, so I may give it a shot soon 🙂

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

4 participants