-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
This page covers common GitBack issues and their solutions.
Example:
authentication failed
invalid token
unauthorized
Verify the token:
gitback doctorEnsure the token has the required permissions.
Classic PAT:
repo
Fine-Grained PAT:
Contents: Read-only
Metadata: Read-only
If necessary, generate a new token and re-run:
gitback initRun:
gitback discoverIf no repositories are found:
- Verify GitHub authentication
- Verify repository access
- Verify organization membership if applicable
Validate the environment:
gitback doctorRun:
gitback discoverVerify:
- The account actually owns Gists
- The token is valid
- GitHub API access is working
Check:
gitback doctorExample:
repository inventory missing
Run:
gitback discoverGitBack will regenerate:
repositories.txt
Example:
gist inventory missing
Run:
gitback discoverGitBack will regenerate:
gists.txt
Example:
repository unhealthy
sync failed
Inspect:
gitback healthReview logs:
~/.local/state/gitback/gitback.log
Common causes:
- Repository deleted
- Repository transferred
- Access revoked
- Network interruption
Refresh inventories:
gitback discoverThen retry:
gitback syncVerify:
gitback healthReview:
- Disk space
- Repository failures
- Gist failures
If snapshot creation is blocked by failed assets:
gitback snapshot --forceUse force mode only after reviewing health information.
Example health output:
status: critical
Check:
gitback healthActions:
- Increase available storage
- Enable snapshot retention
- Remove unnecessary snapshots
Example:
snapshot_retention: 30Example:
mirrors directory missing
state directory missing
snapshots directory missing
GitBack automatically recreates:
mirrors/
snapshots/
state/
tmp/
Recovery events are logged automatically.
No reinitialization is required.
Example:
status: warning
Typical causes:
- Failed repositories
- Failed Gists
- Missing inventories
- Snapshot retention concerns
Inspect:
gitback healthReview recommendations included in the report.
Example:
status: critical
Typical causes:
- Low disk space
- Storage issues affecting backup operations
Immediate action is recommended.
Inspect:
gitback healthand review available storage.
Verify checksum:
sha256sum -c snapshot.tar.zst.sha256Expected:
snapshot.tar.zst: OK
If verification fails:
- Re-transfer the snapshot
- Recreate the snapshot
- Check storage integrity
GitBack logs are stored in:
~/.local/state/gitback/gitback.log
Logs use structured JSON and are useful when diagnosing synchronization or snapshot issues.
Collect:
gitback doctor
gitback healthand relevant log entries.
Include:
- GitBack version
- Operating system
- Error messages
- Reproduction steps
This significantly speeds up troubleshooting.
Continue with: