# Principais erros

## Erros de Apontamento DNS

### Erro ao gerar o certificado HTTPS

* Verifique se o apontamento foi prapagado
* Acesse a VPS como root e execute o comando

```
sudo certbot --nginx
```

## Erros de Banco de Dados

## Erro ao acessar Postgres

{% hint style="info" %}
Internal server error: SequelizeConnectionError: could not open file "global/pg\_filenode.map": Permission denied
{% endhint %}

Acessar o terminal com root

```
docker container restart portainer
```

Acessar o portainer, abrir console do postgres e executar o comando

<pre><code><strong>chown -R postgres /var/lib/postgresql
</strong></code></pre>

### Caso o erro persista, criar uma rotina no crontab

Acessar o terminal com root

```
docker exec -u root -it postgresql bash -c "chown -R postgres:postgres /var/lib/postgresql/data"
```

## Erros de Frontend

## Customização não são carregadas no front

Acessar a VPS como deployzdg

Realizar as customizações

```
cd ~
cd zpro.io
cd frontend
pm2 stop all
export NODE_OPTIONS=--openssl-legacy-provider && npx quasar build -P -m pwa
pm2 restart all
```


---

# 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://ajuda.zdg.com.br/avancado-recursos-tecnicos/principais-erros.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.
