Troubleshooting

Purpose

Solutions to common problems when using Excavate.

Topics

Topic Description

Common Errors

Frequently encountered errors

Corrupted Files

Handling damaged archives

Platform-Specific

OS-specific issues

Performance Issues

Solving performance problems

Quick Diagnosis

Error: "Target already exists"

Remove the existing target or use a different path:

FileUtils.rm_rf(target)
Excavate::Archive.new(archive).extract(target)

Error: "Unknown archive format"

Check the file extension:

puts File.extname(archive_path)
# Should be .zip, .tar, .msi, etc.

Error: "File not found"

Verify the file exists:

puts File.exist?(archive_path)
puts File.size(archive_path)

Getting Help

If you can’t find a solution:

Next Steps

Browse specific troubleshooting topics for detailed solutions.


Table of contents