mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #726] Bug: Pocket since high-water-mark gets set even when indexing fails #1970
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#1970
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 @cpmsmith on GitHub (Apr 28, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/726
Describe the bug
I'm setting up Pocket importing for the first time, meaning I'm importing a lot of old links, some of which are on now-defunct websites. When one of them fails, the entire import fails, but the
sincevalue inpocket_api.dbis still set, meaning when I try to re-import my Pocket feed, it only retrieves new items, leaving me with no URLs archived.Steps to reproduce
ArchiveBox version
@mAAdhaTTah commented on GitHub (Apr 28, 2021):
The URLs should still be added to your database, so if you need to download those urls, you can run
archivebox updateto go through your db and do that process.@pirate My understanding is this isn't specific to the Pocket API implementation though, is it?
@cpmsmith commented on GitHub (Apr 28, 2021):
I thought so as well, but when the
addfails, no snapshots get added:@pirate commented on GitHub (Apr 28, 2021):
Yeah I think it's missing a try: except: block around the crawl step, because it's a preprocessing step done before the actual archiving it doesn't have our usual "if snapshot fails, continue anyway" logic around it.
For now you may have to revert to adding URLs one at a time when using
--depth=1mode until this is fixed in the next version. To fix the immediate issue of not being able to add these pages / re-update urls that are already present, you can try using thearchivebox add --update-all ...orarchivebox add --overwrite ...flags depending on what your desired behavior when encountering a previously-added URL is.@cpmsmith commented on GitHub (Apr 28, 2021):
I tried this as well, but it doesn't work either, as the URLs aren't being indexed at all.
Raw output from
--update-alland--overwriteThis is why I think it's Pocket-specific: because the Pocket API consumer saves the
sincevalue, it stops reporting the existence of the old URLs at all, even though it never successfully indexed them. Files have been written indata/sources, butdata/archiveis still empty.More to the point, if I delete the
sources/pocket_api.dbfile and runaddagain, the behaviour changes: it starts attempting to index all the 1-hop-out URLs again, rather than just sayingNo links found, even without using--overwriteor--update-all.@pirate commented on GitHub (Apr 28, 2021):
Ah yeah, you're right, this is pocket api specific then.