> For the complete documentation index, see [llms.txt](https://vitrina-blogerov.gitbook.io/bloggers-showcase/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vitrina-blogerov.gitbook.io/bloggers-showcase/vozmozhnye-oshibki/ne-khvataet-resursov-servera.md).

# Не хватает ресурсов сервера

Установка долго собирает контейнеры, база не запускается, Docker падает или появляются ошибки нехватки места.

### Симптомы

* установка зависает на сборке;
* контейнеры постоянно перезапускаются;
* PostgreSQL не стартует;
* появляются ошибки `no space left on device`;
* сервер начинает отвечать очень медленно;
* бот и админка работают нестабильно.

### Вероятные причины

* слишком мало RAM;
* мало свободного места на диске;
* слабый CPU для сборки контейнеров;
* на сервере уже работают другие тяжелые сервисы;
* Docker cache занял много места.

### Что проверить

```bash
free -h
df -h
sudo docker system df
```

Проверьте состояние контейнеров:

```bash
sudo /opt/bloggers_platform/apps/ru/manager.sh status
```

### Как исправить

1. Используйте сервер минимум с 1 ГБ RAM и 4 ГБ свободного места.
2. Для активной эксплуатации лучше брать запас по памяти и диску.
3. Если место закончилось, удалите ненужные файлы или увеличьте диск.
4. После увеличения ресурсов перезапустите нужную версию:

```bash
sudo /opt/bloggers_platform/apps/ru/manager.sh restart
```

{% hint style="info" %}
Маленький сервер может пройти установку, но стать нестабильным при загрузке медиа, рассылках, AI-запросах или одновременной работе нескольких языковых версий.
{% endhint %}

### Когда обращаться в поддержку

Если ресурсов достаточно, но контейнеры все равно падают, нужны логи конкретного сервиса: `backend`, `bot` или `db`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://vitrina-blogerov.gitbook.io/bloggers-showcase/vozmozhnye-oshibki/ne-khvataet-resursov-servera.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
