🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5559

Bug#979115: snapshot.debian.org: please only update the list of available timestamps after the sync is complete

#5559
From: Philipp Kern
Date: Sun, 22 Nov 2026 15:30
28 lines
3129 bytes
On Sat, Jan 02, 2021 at 11:06:57PM +0100, Johannes 'josch' Schauer wrote:
> for the newest timestamp that one can find via
> http://snapshot.debian.org/archive/debian/ it can happen that some of
> the files in it return a 404. Maybe new timestamps are added to the web
> interface before the download of all content is complete?
> 
> The webinterface should only show new timestamps once all their content
> is completely available for download.

At the time I took over this was already intended to be solved by
internal redirection logic. I think it was actually broken but as far as
I can it should work now: When a tree has been synced to the database,
it's immediately available to all hosts - even though the
content-addressable tree has not been synced yet, through DB
replication. If the local file does not exist, the other hosts will
transparently proxy to the primary machine. This requires the primary
machine to be available for serving.

We have a ton of scraping load on the hostname-based Apache vhosts,
which are used for this. So I had to block direct access. /file/ is
exempted from the blocks. As long as the primary is up, this should
thus work.

What we are missing is an integration test for this to ensure that it
keeps working.

Kind regards
Philipp Kern
Technical Details
Message-ID: <O2hFU-duBP-43@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <BsXfZ-1c1-23@gated-at.bofh.it> <BsXfZ-1c1-23@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Philipp Kern <pkern@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#979115: snapshot.debian.org: please only update the list of available timestamps after the sync is complete
Date: Sun, 22 Nov 2026 16:30:02 +0100
Message-ID: <O2hFU-duBP-43@gated-at.bofh.it>
References: <BsXfZ-1c1-23@gated-at.bofh.it> <BsXfZ-1c1-23@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov 22 15:21:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Philipp Kern <pkern@debian.org>, 979115@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-snapshot@lists.debian.org
X-Debian-Pr-Message: followup 979115
X-Debian-Pr-Package: snapshot.debian.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Crossassassin-Score: 2
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004166
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 28
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Debian Bug Tracking System <submit@bugs.debian.org>
X-Original-Date: Sun, 22 Nov 2026 15:18:55 +0000
X-Original-Message-ID: <awMH3wb6xAaLthws@master.debian.org>
X-Original-References: <160962521755.2943271.5233874153302182757.reportbug@localhost> <160962521755.2943271.5233874153302182757.reportbug@localhost>