lageIBUSP / notaR

Repositório para o código do notaR 4.0
2 stars 2 forks source link

Servidor fora do ar 2024-02-15 #93

Closed Lobz closed 6 months ago

Lobz commented 6 months ago

Reportado para mim hoje (dia 15). Erro no browser: 503. Erro no docker ps: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Lobz commented 6 months ago

$ sudo service docker start Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

Lobz commented 6 months ago

Erro do docker no journalctl:

Feb 15 17:20:39 Ecologia systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: A start job for unit docker.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A start job for unit docker.service has finished with a failure.
-- 
-- The job identifier is 15629 and the job result is failed.
Feb 15 17:20:39 Ecologia systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The unit docker.socket has entered the 'failed' state with result 'service-start-limit-hit'.

Procurei o problema na intternet e encontrei sugestões de rebootar o servidor (https://stackoverflow.com/questions/59752840/docker-socket-failed-with-result-service-start-limit-hit-after-protecting-doc). Seguindo a sugestão de um dos comentários, tambpem conferi o status:

$ systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2024-02-15 17:20:39 UTC; 8min ago
     Docs: https://docs.docker.com
  Process: 22725 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
 Main PID: 22725 (code=exited, status=1/FAILURE)

$ /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character ',' after top-level value

O arquivo de configuração .json contém o seguinte:

{
        "debug":true
},
{
        "log-level":"debug"
},
{
        "live-restore":true
}
Lobz commented 6 months ago

Corrigi o arquivo de configuração e consegui reiniciar o serviço. Novo arquivo de configuração:

{
        "debug":true,
        "log-level":"debug",
        "live-restore":true
}
Lobz commented 6 months ago

Serviço no ar