Skip to content

Commit 8379397

Browse files
Added faq for invalid token error in litmusctl (#160)
* Added faq for invalid token error in litmusctl Signed-off-by: SarthakJain26 <[email protected]> * Fixed typo Signed-off-by: SarthakJain26 <[email protected]>
1 parent d1c5eb1 commit 8379397

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

website/docs/faq.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ To run LitmusPortal you need to have a minimum of 1 GiB memory and 1 core of CPU
6464

6565
Yes, you can use Litmuschaos in production. Litmus has a wide variety of experiments and is designed as per the principles of chaos. But, if you are new to Chaos Engineering, we would recommend you to first try Litmus on your dev environment, and then after getting the confidence, you should use it in Production.
6666

67-
### How is resilience score is calculated?
67+
### How is resilience score calculated?
6868

6969
The Resilience score is calculated on the basis of the weightage and the Probe Success Percentage of the experiment. Resilience for one single experiment is the multiplication of the weight given to that experiment and the Probe Success Percentage. Then we get the total test result by adding the resilience score of all the experiments. The Final Resilience Score is calculated by dividing the total test result by the sum of the weights of all the experiments combined in the single workflow. For more detail refer to [this blog](https://dev.to/litmus-chaos/how-the-resilience-score-algorithm-works-in-litmus-1d22).
7070

@@ -81,3 +81,7 @@ To configure a git repo the user must provide the Git URL of the repository and
8181
- SSH Key
8282

8383
Once GitOps is enabled, any new workflows created will be stored in the configured repo in the path `litmus/<project-id>/<workflow-name>.yaml`.
84+
85+
### How to solve `invalid token` issue in litmusctl?
86+
87+
You can use the command `litmusctl config set-account` to generate a new token. You get `invalid token` error if the authorization token is expired. Authorization token has a life span of 24 hours.

website/docs/troubleshooting.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,14 @@ kubectl cp /home/amitkrdas/Chaos-Charts/chaos-charts/ litmus/litmusportal-serve
9696
```
9797

9898
- Step 4: Once the chaos charts directory is copied, refresh the ChaosHub page in ChaosCenter.
99+
100+
### Getting invalid token error while running litmusctl commands
101+
102+
Invalid token error occurs when the authorization token is not valid or expired. Authorization token expires in 24 hours. To solve the problem you need to generate a new token and update it in
103+
.litmusconfig.
104+
105+
The following command can be used to do the same
106+
107+
```
108+
litmusctl config set-account
109+
```

website/versioned_docs/version-2.4.0/faq.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,7 @@ To configure a git repo the user must provide the Git URL of the repository and
8181
- SSH Key
8282

8383
Once GitOps is enabled, any new workflows created will be stored in the configured repo in the path `litmus/<project-id>/<workflow-name>.yaml`.
84+
85+
### How to solve `invalid token` issue in litmusctl?
86+
87+
You can use the command `litmusctl config set-account` to generate a new token. You get `invalid token` error if the authorization token is expired. Authorization token has a life span of 24 hours.

website/versioned_docs/version-2.4.0/troubleshooting.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,14 @@ kubectl cp /home/amitkrdas/Chaos-Charts/chaos-charts/ litmus/litmusportal-serve
9696
```
9797

9898
- Step 4: Once the chaos charts directory is copied, refresh the ChaosHub page in ChaosCenter.
99+
100+
### Getting invalid token error while running litmusctl commands
101+
102+
Invalid token error occurs when the authorization token is not valid or expired. Authorization token expires in 24 hours. To solve the problem you need to generate a new token and update it in
103+
.litmusconfig.
104+
105+
The following command can be used to do the same
106+
107+
```
108+
litmusctl config set-account
109+
```

0 commit comments

Comments
 (0)