Troubleshooting
Soluções para problemas comuns do BackupAlly.
Erros de Conexão
MySQL: Connection Refused
Error: Connection refused (os error 111)Causas:
- MySQL não está rodando
- Porta incorreta
- Firewall bloqueando
Soluções:
# Verificar se MySQL está rodando
sudo systemctl status mysql
# Testar conexão
mysql -h localhost -u backup -p
# Verificar porta
netstat -tlnp | grep 3306PostgreSQL: Authentication Failed
Error: password authentication failedSoluções:
- Verifique credenciais:
psql -h localhost -U backup -d postgres- Verifique pg_hba.conf:
host all backup 127.0.0.1/32 scram-sha-256- Reload config:
sudo systemctl reload postgresqlMongoDB: Connection Timeout
Error: connection timed outSoluções:
# Verificar se MongoDB está rodando
sudo systemctl status mongod
# Testar conexão
mongosh --eval "db.adminCommand('ping')"Erros de Permissão
Permission Denied
Error: Permission denied (os error 13)Soluções:
- Execute como root:
sudo backupally backup --target website- Ou ajuste permissões do diretório:
sudo chown -R backupally:backupally /var/www/htmlMySQL: Access Denied
Error: Access denied for user 'backup'@'localhost'Solução:
GRANT SELECT, SHOW DATABASES, LOCK TABLES ON *.* TO 'backup'@'localhost';
FLUSH PRIVILEGES;Erros de Storage
S3: Access Denied
Error: Access DeniedCausas:
- Credenciais inválidas
- Permissões insuficientes
- Bucket não existe
Soluções:
- Verifique credenciais:
backupally secrets get aws_access_key- Verifique permissões IAM:
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:ListBucket",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::bucket-name",
"arn:aws:s3:::bucket-name/*"
]
}B2: Invalid Authorization
Error: Invalid authorization tokenSolução:
Regenere a Application Key no console B2 e atualize:
backupally secrets set b2_key_id "novo-key-id"
backupally secrets set b2_app_key "novo-app-key"Espaço em Disco Insuficiente
Error: No space left on deviceSoluções:
- Verifique espaço:
df -h /tmp
df -h /backup- Limpe temporários:
rm -rf /tmp/backupally/*- Ajuste diretório temporário:
[global]
default_temp_path = "/var/tmp/backupally"Erros de Criptografia
Invalid Key
Error: Failed to decrypt: Invalid keyCausa: Tentando restaurar com chave diferente.
Solução:
- Verifique fingerprint do backup:
backupally inspect backup.ally- Use a chave correta:
backupally restore \
--target mysql-prod \
--snapshot snap_xxx \
--key /path/to/correct-key.pemKey Not Found
Error: Key file not foundSolução:
# Verificar se chave existe
ls -la /etc/backupally/keys/
# Regenerar se necessário
backupally keys generate --name default --set-defaultErros de Scheduler
Task Não Executa
Verificações:
- Task está habilitada?
backupally task list- Scheduler está rodando?
sudo systemctl status backupally-scheduler- Condição não atendida?
# Ver logs
sudo journalctl -u backupally-scheduler -f- Fora da janela?
Verifique [window] na task.
Hot Reload Não Funciona
Solução:
# Forçar reload
sudo systemctl reload backupally-scheduler
# Ou reiniciar
sudo systemctl restart backupally-schedulerErros de Rede
Timeout
Error: Connection timed outSoluções:
- Aumente timeout:
[network]
timeout_seconds = 600- Verifique conectividade:
curl -v https://s3.amazonaws.comSSL Certificate Error
Error: certificate verify failedSoluções:
- Atualize certificados:
sudo apt update && sudo apt install ca-certificates- Para MinIO self-signed:
[[storage]]
driver = "minio"
verify_ssl = falseLogs e Debug
Habilitar Debug
backupally --log-level debug backup --target mysql-prodVer Logs do Scheduler
sudo journalctl -u backupally-scheduler -fArquivo de Log
tail -f /var/log/backupally/backupally.logVerificar Configuração
backupally config verify
backupally task validate mysql-prodObter Ajuda
Se o problema persistir:
- Verifique logs com
--log-level debug - Consulte a documentação
- Abra issue no repositório
By Borlot.com.br on 11/02/2026