[oi-dev] couchdb-31 is broken

Marcel Telka marcel at telka.sk
Tue Feb 20 20:34:32 UTC 2024


On Tue, Feb 20, 2024 at 09:29:09PM +0100, Andreas Wacknitz via oi-dev wrote:
> Am 20.02.24 um 21:21 schrieb Bill Sommerfeld via oi-dev:
> > On 2/20/24 12:06, Andreas Wacknitz via oi-dev wrote:
> > > Am 20.02.24 um 20:52 schrieb Bill Sommerfeld via oi-dev:
> > > > On 2/20/24 11:27, Andreas Wacknitz via oi-dev wrote:
> > > > > Am 20.02.24 um 18:49 schrieb Marcel Telka:
> > > > > > BTW, the issue above should be fixable by replacing a file (or
> > > > > > two, or
> > > > > > so) from the backup.
> > > > > > 
> > > > > I have tried pkgrecv but it skipped the couchdb-31 package because
> > > > > it's
> > > > > already there.
> > > > > How can I find the necessary files to copy over?
> > > > 
> > > > Start with the manifest file itself - that's what I believe it's
> > > > failing the checksum for.
> > > > 
> > > > Look inside the repo directory, in:
> > > > 
> > > > publisher/openindiana.org/pkg/database%2Fcouchdb-31
> > > > 
> > > > For
> > > > pkg://openindiana.org/database/couchdb-31@3.1.2,5.11-2023.0.0.0:20230609T222502Z
> > > > 
> > > > 
> > > > there should be a file in that directory named
> > > > 
> > > > 3.1.2%2C5.11-2023.0.0.0%3A20230609T222502Z
> > > > 
> > > > that contains the package manifest.
> > > > 
> > > > Once a manifest file is in place that has the right checksum it may or
> > > > may not complain about other missing files.
> > > I have checked both manfests (actual and old repo). They don't differ
> > > and seem to be complete and thus should be correct.
> > 
> > Then maybe the hash for the manifest file in the repo's catalog is
> > wrong.  Not sure what the best way to correct it is, though.
> > 
> > Perhaps removing the broken package from the repo with pkgrepo remove
> > and then using pkgrecv to restore it it in from the old repo?
> Removing packages from the repo is a little bit tedious as the repo is
> served on an old zone and remove is not supported by its pkgrepo.
> So I have to copy several GB to another system, remove the package
> there, and copy everything back.

I suspect this operation corrupts the repo.  It is not the first time.
Similar corruptions happens regularly :-(.

-- 
+-------------------------------------------+
| Marcel Telka   e-mail:   marcel at telka.sk  |
|                homepage: http://telka.sk/ |
+-------------------------------------------+



More information about the oi-dev mailing list