mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #202] Windows Docker error on resuming archiving process #1647
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#1647
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mrbenns on GitHub (Mar 30, 2019).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/202
Describe the bug
Successfully ran several thousand archives but then had to restart windows and now unable to get Archivebox to resume?
Screenshots or log output
@pirate commented on GitHub (Mar 30, 2019):
Ah crap, unfortunately
masterdidn't have power-off protection yet, we just added that a few days ago ondevand it hasn't been released to master yet.The error you're seeing is because your
index.jsonfile was only written halfway before your computer rebooted, leaving it damaged.Here are the steps to recover everything:
recovered_urls.txtoutput/index.jsoninto that text fileoutput/sources/*.txtinto that text fileoutput/archive/<timestamp>/index.jsonfiles into that filerecovered_urls.txt, deleteoutput/index.json./archive recovered_urls.txtIt will regenerate your
output/index.jsonfile, and in the process, it will pick up any existing archived data in theoutput/archive/<timestamp>folders without overwriting it (so you won't lose any archived pages, but the index metadata will start over from scratch). In theory, you shouldn't have any data loss of previously archived pages if you follow these steps.In the future, no one will ever experience this issue again, because as I mentioned we added atomic write enforcement on dev, you can see how that fix works here: https://github.com/pirate/ArchiveBox/pull/197/commits/d2a34f260287af8348ca2ffc7f5b0116bb2ecaf1
@mrbenns commented on GitHub (Mar 30, 2019):
Thank you for the very quick response :-)
Will try that
@pirate commented on GitHub (Mar 30, 2019):
Ok good luck! Let me know if you have trouble. If you want you can send me your archive folder and I can help recover it for you (if you're ok with sharing that data, no worries if not).