# View the Server Log and Restart Server

## About Server Logs

We use [`supervisor`](http://supervisord.org/running.html) to run and manage the logs for the [eVOLVER server](/evolver/software/server-raspberry-pi.md). eVOLVERs should come pre-configured with this.

We also provide a utility monitoring and restart script, `evolvercron` and `server_monitor.sh`. To use, add the crontab job line in `evolvercron` into your cron installation.

## View Server Logs

{% hint style="info" %}
To understand what you see in the server log, take a look at the information [here](/evolver/software/server-raspberry-pi.md#serial-message-structure).
{% endhint %}

1. Connect to your server via the following command (replace `<eVOLVER_IP>` with your eVOLVER's IP)
   1. `ssh pi@<eVOLVER_IP>`
2. Enter the eVOLVER server's password

### \[Option 1] View the server log *live*

1. Enter the supervisor environment via the following command:
   1. `sudo supervisorctl`
2. Use the following command to follow the eVOLVER server log:
   1. `tail -f evolver`
3. `Ctrl+C` to exit

### \[Option 2] View the whole server log file

The [server monitor](https://github.com/FYNCH-BIO/evolver/blob/694ffbd91d6392bb84f2675f95c6fa81add58f03/utils/server_monitor.sh#L4) stores the log file here: `/var/log/supervisor/`&#x20;

You can either view there or move it to your computer for more analysis

## Restart the eVOLVER Server

1. If you are currently following the eVOLVER server in `supervisorctl`, use `ctrl+C` to exit. Otherwise, follow steps to [view server log](#view-server-logs).
2. Enter the following command:
   1. `restart evolver`
3. If you quickly follow the server via `tail -f evolver` you should see it restart


---

# 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://khalil-lab.gitbook.io/evolver/guides/view-the-server-log-and-restart-server.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.
