From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id CF7721F87F; Tue, 11 Jun 2019 19:24:43 +0000 (UTC) Date: Tue, 11 Jun 2019 19:24:43 +0000 From: Eric Wong To: Ali Alnubani Cc: meta@public-inbox.org Subject: Re: error: failed to run repack Message-ID: <20190611192443.opg3afru6tfueabr@dcvr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: Ali Alnubani wrote: > Hi, > > I keep seeing the following in my logs for multiple lists: > > timestamp public-inbox-watch[PID]: Auto packing the repository in background for optimum performance. > timestamp public-inbox-watch[PID]: See "git help gc" for manual housekeeping. > timestamp public-inbox-watch[PID]: error: The last gc run reported the following. Please correct the root cause > timestamp public-inbox-watch[PID]: and remove path/to/repo.git/git/0.git/gc.log. > timestamp public-inbox-watch[PID]: Automatic cleanup will not be performed until the file is removed. > timestamp public-inbox-watch[PID]: fatal: Failed to write bitmap index. Packfile doesn't have full closure (object 817390f628f74a55c627f1ddab8a44aa029753a0 is missing) Do you have a path/to/repo.git/git/0.git/objects/info/alternates ? Bitmaps won't work when packing a repo with alternates In other words, does 817390f628f74a55c627f1ddab8a44aa029753a0 exist in your 0.git, or somewhere else? The normal epoch repos (git/[0-9]+.git) aren't created with alternates by default; instead all.git uses git/[0-9]+.git as alternates. > timestamp public-inbox-watch[PID]: error: failed to run repack > > Running 'git-fsck -full' in path/to/repo.git/git/0.git doesn't report any issues. > > I imported my archives using scripts/import_vger_from_mbox. > > Any clue? Also is it safe to attempt a manual git-gc? You might have the same result. You can probably disable bitmaps in all.git/config and set it in a git repo that does have full closure.