# Debugging Tools

**Service Logs**

```
# Soika API logs
sudo journalctl -u soika-docker -f
sudo cat /var/lib/soika/logs/*

# SoikaStack logs
sudo journalctl -u soikastack -f
sudo cat /var/lib/soika/soikastack_logs/*
```

**System Information**

Collect system information for support:

```
# System info
uname -a
lsb_release -a

# Disk space
df -h

# Memory usage
free -m

# Docker status
docker info
docker ps

# Service status
systemctl status soika-docker
systemctl status soikastack
```

### Recovery <a href="#recovery" id="recovery"></a>

If all troubleshooting fails, you can try reinstalling:

1. **Stop and disable services:**

   ```
   sudo systemctl stop soika-docker
   sudo systemctl disable soika-docker
   sudo systemctl stop soikastack
   sudo systemctl disable soikastack
   ```
2. **Backup data:**

   ```
   sudo cp -r /var/lib/soika /var/lib/soika_backup_$(date +%Y%m%d%H%M%S)
   ```
3. **Clean up:**

   ```
   sudo rm -rf /var/lib/soika/*
   ```
4. **Reinstall:**

   ```
   curl -sSL https://s3.dualstack.eu-central-1.amazonaws.com/pkg.soika.ai/soika-api/soika-install-docker.sh | sudo bash
   curl -sSL https://s3.dualstack.eu-central-1.amazonaws.com/pkg.soika.ai/soikastack/install-server.sh | sudo bash
   ```

#### Getting Support <a href="#getting-support" id="getting-support"></a>

If you continue to experience issues after trying these troubleshooting steps, please contact support with:

1. Service logs
2. System information
3. Description of the issue
4. Steps you've already taken to troubleshoot


---

# 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://soika-labs.gitbook.io/soika-mockingjay/troubleshooting/debugging-tools.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.
