# Service Issues

**Soika API Service Not Starting**

1. **Check Docker service status:**

   ```
   sudo systemctl status docker
   ```
2. **Check Soika service status:**

   ```
   sudo systemctl status soika-docker
   ```
3. **View logs:**

   ```
   sudo journalctl -u soika-docker -f
   docker logs --tail=100 -f $(docker ps --filter "name=soika-api" --format "{{.ID}}")
   ```
4. **Manual service restart:**

   ```
   sudo systemctl restart soika-docker
   ```
5. **Check for port conflicts:**

   ```
   sudo netstat -tulpn | grep 4142
   ```
6. **Reinitialize database:**

   ```
   sudo /var/lib/soika/soika_db.sh
   ```

**SoikaStack Service Not Starting**

1. **Check service status:**

   ```
   sudo systemctl status soikastack
   ```
2. **View logs:**

   ```
   sudo journalctl -u soikastack -f
   sudo cat /var/lib/soika/soikastack_logs/output.log
   sudo cat /var/lib/soika/soikastack_logs/error.log
   ```
3. **Manual service restart:**

   ```
   sudo systemctl restart soikastack
   ```
4. **Check for port conflicts:**

   ```
   sudo netstat -tulpn | grep 4141
   ```

### Common Issues <a href="#common-issues" id="common-issues"></a>

**Permission Problems**

If you encounter permission issues:

```
# Set proper directory permissions
sudo chmod -R 755 /var/lib/soika
sudo chown -R $(whoami):$(whoami) /var/lib/soika
```

**NVIDIA drivers issue**

```
If the issue like below:

root@soika-admin-SYS:/var/lib/soika/soikastack_logs# nvidia-smi
Failed to initialize NVML: Driver/library version mismatch
NVML library version: 550.144

Fix by running this command and then run the nvidia-smi command again

sudo apt update && sudo apt full-upgrade
```

**Network Connection Issues**

If you experience network connectivity problems during installation:

1. **Check DNS resolution:**

   ```
   ping 8.8.8.8
   nslookup s3.dualstack.eu-central-1.amazonaws.com
   ```
2. **Check proxy settings if applicable:**

   ```
   echo $http_proxy
   echo $https_proxy
   ```
3. **Test connectivity to download servers:**

   ```
   curl -I https://s3.dualstack.eu-central-1.amazonaws.com
   curl -I http://47.128.72.20
   ```


---

# 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/installation-issues/service-issues.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.
