🔧Troubleshooting Bootstraping
This guide will help you debug common bootstraping issues.
Issues appearing here only happen on bootstrap. Other issues happening at runtime are not documented here.
Post-install job is failing
The post-install job is failing.
The issue is a configuration issue, or a network issue.
Detection
kubectl get jobs --all-namespacesWith jobs looking like:
NAMESPACE NAME STATUS COMPLETIONS DURATION AGE
<namespace> toucan-stack-postinstall Failed 0/1 1m 1dPossible causes
The post-install job initializes:
The admin account.
The permissions of the admin account.
The permissions of the backend.
Therefore, the issues could be linked to:
The reachability of the authentication server Keycloak.
The reachability of the authorization server SpiceDB.
A programming error.
The first issue is very likely caused by configuration or network issue.
The second issue is very unlikely because the authorization server can only be accessible internally. Meaning, the Helm Chart should have already been configured for the authorization server to be reachable.
Investigation
Logs should indicates the errors. Search the errors on Google.
Issues could be linked to (but not limited to):
A programming error.
Mitigation
Contact the support for help.
Vault is in CrashLoopBackOff state
The vault container is crashing repeatedly, stuck in crash loop.
The issue is a configuration issue, or a network issue.
Detection
With events looking like:
Possible causes
On bootstrap, if the vault container is crashing, it's very likely linked to the PostStart lifecycle Hook.
The lifecycle Hook is responsible for:
Fetching or inserting the vault bootstraping secret.
Setup the KV2 secrets engine.
Step 1 can fail if RBAC has been disabled: configuration issue.
Lastly, it can also fail due to implementation errors.
Investigation
Mitigation
Failed at step 1
Check if the RBAC is properly configured:
A
RoleandRoleBindingboth namedtoucan-stack-vault-server-secret-manager(or similar) must be present.A
ServiceAccountnamedtoucan-stack-vault-server(or similar) must be present.
Unknown failures
Contact the support.
Last updated
Was this helpful?