# Troubleshooting

## Checking Status and Restarting Redis

To check the status of the Redis server:

* For getting into the Redis container, use the command “redis-cli”.
* Inside Redis, use the command “PING” -

&#x20;               \- If the response is “PONG” then the server is running.&#x20;

&#x20;               \- If the response is blank or anything else other than “PONG,” the server is not running.

* To get out of the Redis container: “exit”.

## **Process to restart the service if the Redis server is down**

Restarting service mainly involves killing the service and starting it again.

**Procedure to kill a service:**

* For killing any service on a Linux machine, we need the process\_id of the service. The process\_id which we get as the output number for further steps in killing the service by running the command is: **$ ps aux|grep redis**.
* For killing an unresponsive service on a Linux machine, replace the **process\_id\_of\_service** with the value that you have noted down in the above step:&#x20;

&#x20;      **$ sudo kill -9 process\_id\_of\_service**.

* To confirm if the service is killed: **$ sudo service redis-server status**.

**Procedure to start a service:**

* After successfully killing the servic&#x65;**,** to start the service: **$ sudo service redis-server start**.
* To check the status of the service: **$ sudo service redis-server status**.

Note: Check the status of the redis-server as mentioned above.

[![Creative Commons License](https://i.creativecommons.org/l/by/4.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/)*All content on this page by* [*eGov Foundation*](https://egov.org.in/) *is licensed under a* [*Creative Commons Attribution 4.0 International License*](http://creativecommons.org/licenses/by/4.0/)*.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://divoc.digit.org/v2-2/products/issuing-covid-19-vaccination-certificates-in-jamaica/troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
