# Troubleshooting

#### “Parece que você clonou um repositório vazio.”

Se você vir esta mensagem ao tentar clonar um repositório hospedado pelo GitLab, isso provavelmente se deve a uma configuração NGINX ou Apache desatualizada ou a uma instância do GitLab Workhorse ausente ou mal configurada. Verifique novamente se você [installed Go](https://docs.gitlab.com/ee/install/installation.html#3-go), [installed GitLab Workhorse](https://docs.gitlab.com/ee/install/installation.html#install-gitlab-workhorse), E corretamente [configured NGINX](https://docs.gitlab.com/ee/install/installation.html#site-configuration).

#### `google-protobuf` “LoadError: /lib/x86\_64-linux-gnu/libc.so.6: version ‘GLIBC\_2.14’ not found”

Isso pode acontecer em algumas plataformas para algumas versões da gem google-protobuf. A solução é instalar uma versão somente fonte desta gem.

Primeiro, você deve encontrar a versão exata do google-protobuf que sua instalação do GitLab requer:

```
cd /home/git/gitlab

# Only one of the following two commands will print something. It
# will look like: * google-protobuf (3.2.0)
bundle list | grep google-protobuf
bundle check | grep google-protobuf
```

Abaixo, 3.2.0 é usado como exemplo. Substitua-o pelo número da versão que você encontrou acima:

```
cd /home/git/gitlab
sudo -u git -H gem install google-protobuf --version 3.2.0 --platform ruby
```

Finalmente, você pode testar se o google-protobuf carrega corretamente. O seguinte deve imprimir 'OK'.

```
sudo -u git -H bundle exec ruby -rgoogle/protobuf -e 'puts :OK'
```

If the `gem install` command fails, you may need to install the developer tools of your OS.

No Debian/Ubuntu:

```
sudo apt-get install build-essential libgmp-dev
```

No RedHat/CentOS:

```
sudo yum groupinstall 'Development Tools'
```

### Erro ao compilar recursos do GitLab

Ao compilar ativos, você pode receber a seguinte mensagem de erro:

```
Killed
error Command failed with exit code 137.
```

Isso pode ocorrer quando o Yarn mata um contêiner que fica sem memória. Para corrigir isso:

1. Aumente a memória do seu sistema para pelo menos 8 GB.
2. Execute este comando para limpar os ativos:

   ```
   sudo -u git -H bundle exec rake gitlab:assets:clean RAILS_ENV=production NODE_ENV=production
   ```

Execute o comando yarn novamente para resolver quaisquer conflitos:

```
sudo -u git -H yarn install --production --pure-lockfile
```

Recompile os recursos:

```
sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production
```


---

# 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://liedsons-organization.gitbook.io/gitlab-no-ubuntu/~/changes/v2SMoF2OR3hlOcgvW1pm/instalacao-e-configuracao-source/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.
