mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 09:06:02 +03:00
[GH-ISSUE #962] Bug: Running archivebox update --index-only doesn't upgrade Snapshot index.{html,json} files #3620
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#3620
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 @mwnoo on GitHub (Apr 7, 2022).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/962
Describe the bug
I tried to update the
data/archive/<timestamp>/index.{json,html}files by running thearchivebox update --index-onlycommand as described in #544. I expected that this command would update theindex.{json,html}files in thedata/archive/<timestamp>/folders, but the updatedindex.{json,html}files are only written toOUTPUT_DIRand not to the timestamp folder. The updatedindex.{json,html}files in theOUTPUT_DIRare probably only used by sonic to create the search index.Steps to reproduce
giton thearchivefolderarchivebox update --index-only(also tried:archivebox update --index-only --overwritebut same result)index.{json,html}only written toOUTPUT_DIRgit statusshows no changes to the archive folderdata/archive/<timestamp>/index.{json,html}files are not updatedScreenshots or log output
N/A
ArchiveBox version
Config
@pirate commented on GitHub (Apr 11, 2022):
This is by design, for safety and performance on large collections the timestamp folder index files are only lazily updated when they actually need to be changed. If you want to update them all, check all the snapshot rows in the UI and click the update button.
I've added more notes to the Wiki page on upgrading to explain this: https://github.com/ArchiveBox/ArchiveBox/wiki/Upgrading-or-Merging-Archives#merge-two-or-more-existing-archives
I've also added a new DB/filesystem troubleshooting area to the wiki that may help people arriving here from Google: https://github.com/ArchiveBox/ArchiveBox/wiki/Upgrading-or-Merging-Archives#database-troubleshooting
Contributions/suggestions welcome there.
@mwnoo commented on GitHub (Apr 15, 2022):
Thanks @pirate for the UI suggestion (I focused mainly on the CLI options)
Great project!