# Troubleshooting

If your questions are not answered here or in the [**FAQ**](/floating-server/faq.md), please [**submit a support ticket**](https://licensespring.zendesk.com/hc/en-us/requests/new) and our support team will respond as soon as possible!

<details>

<summary>Issue: Missing or Incorrect Configuration File</summary>

**Solution**: Ensure that the `config.yaml` file is placed in the directory from which you are running the Docker container. The configuration file must include the correct settings, such as the database type (Redis or file-based) and API keys. Double-check that the path to the `config.yaml` file is correctly specified in the Docker Compose file:

```yaml
volumes:
  - ./config.yaml:/opt/server/config/config.yaml
```

</details>

<details>

<summary>Issue: Redis Container Not Communicating with the Floating Server</summary>

**Solution**: Ensure both Redis and the Floating Server are running on the same Docker network. You can create a Docker network and connect both containers to it:

```bash
docker network create fs-network
docker run -d --net fs-network --name redis -p 6379:6379 redis/redis-stack-server:latest
docker run -d --net fs-network --name floating-server -p 8080:8080 -v $PWD/config.yaml:/opt/server/config/config.yaml censedata/floating-server:latest
```

</details>

<details>

<summary>Issue: Redis Data Not Persisting After Container Restart</summary>

**Solution**: Ensure that a Docker volume is created and mounted to persist Redis data:

```yaml
volumes:
  - redis_data:/data
```

This ensures that data will be preserved even if the container is stopped or restarted.

</details>

<details>

<summary>Issue: Floating Server Not Accessible</summary>

**Solution**: Verify that the ports are correctly exposed in the Docker configuration. For example:

```yaml
ports:
  - "8080:8080"
```

This exposes the Floating Server on port 8080. Check your firewall and network settings to ensure the port is open.

</details>


---

# 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://docs.licensespring.com/floating-server/floating-server-v1/deployment-methods/docker/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.
