Troubleshooting
Common issues and solutions for PanelAlpha Snapshot Tool.
Quick Diagnostics
# Check logs for errors
sudo tail -50 /var/log/pasnap.log
# Test storage connection
sudo ./pasnap.sh --test-connection
# Verify Docker is running
sudo systemctl status docker
# Check disk space
df -h
Common Issues
Permission Denied
Symptom: Permission denied errors when running commands.
Solution: Always run with sudo:
Docker Not Running
Symptom: Cannot connect to Docker daemon or similar errors.
Solution:
# Start Docker
sudo systemctl start docker
# Enable Docker to start on boot
sudo systemctl enable docker
# Verify Docker is running
sudo systemctl status docker
Repository Connection Failed
Symptom: unable to open config file or connection timeout errors.
Solution:
-
Test the connection:
-
Verify configuration:
-
For S3:
- Check AWS credentials are correct
- Verify bucket exists and is accessible
-
Check region is correct
-
For SFTP:
- Verify SSH key is set up
- Test SSH connection manually:
ssh user@hostname - Check remote directory exists
Insufficient Disk Space
Symptom: no space left on device errors.
Solution:
-
Check available space:
-
Clean up old snapshots:
-
Clean Docker resources:
Database Backup Fails
Symptom: Errors related to MySQL or database dumps.
Solution:
-
Check if PanelAlpha is running:
-
Verify database container is healthy:
-
Check database credentials in
.envfile -
Try restarting containers:
Snapshot Restoration Fails
Symptom: Errors during --restore operation.
Solution:
-
Ensure PanelAlpha is stopped:
-
Check disk space is sufficient
-
Verify snapshot exists:
-
Check logs for specific errors:
Cron Job Not Running
Symptom: Automatic backups are not being created.
Solution:
-
Check cron status:
-
View cron jobs:
-
Check cron service:
-
Reinstall cron job:
SSL Certificate Issues After Restore
Symptom: SSL errors or certificate warnings after restoration.
Solution:
-
Regenerate certificates:
-
Restart nginx:
Log Analysis
View Recent Logs
Search for Errors
Search for Specific Date
Getting Help
If you're still experiencing issues:
-
Collect diagnostic information:
-
Open an issue on GitHub:
- GitHub Issues
- Include the diagnostic information (remove sensitive data)
Recovery Procedures
Complete Reset
If the tool is in an inconsistent state:
# Remove configuration
sudo rm /opt/panelalpha/app/.env-backup
# Reinstall
sudo ./pasnap.sh --install
# Reconfigure
sudo ./pasnap.sh --setup
Manual Database Restore
If automatic restore fails, you can manually restore the database: