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,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 15D521F8C6; Tue, 24 Aug 2021 20:11:16 +0000 (UTC) Date: Tue, 24 Aug 2021 20:11:15 +0000 From: Eric Wong To: Konstantin Ryabitsev Cc: meta@public-inbox.org Subject: Re: nntpd errors retrieving group list Message-ID: <20210824201115.GA8587@dcvr> References: <20210824135835.7ujvhisruasihlpo@nitro.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210824135835.7ujvhisruasihlpo@nitro.local> List-Id: Konstantin Ryabitsev wrote: > Hello: > > I tried the nntpd daemon on x-lore, but I seem to be hitting something odd > while retrieving the group list. This is from syslog: > > public-inbox-nntpd: Can't call method "minmax" on an undefined value at /usr/local/share/perl5/PublicInbox/NNTP.pm line 264. > public-inbox-nntpd: during long response[14] - 0.0 03772 > > This is in nntpd.out.log > > [14] MODE READER - 0.000052 > [14] LIST - 0.003624 pending > deferred[14] aborted - 0.003772 > > All entries in the config file have a newsgroup= entry, so I don't have any > immediate insights why something would be "undefined" at that line. Any chance you're out-of-FDs or permissions are wrong? There's also an off chance a non-inbox (extindex) object is there. Perhaps this debugging patch can shine a light on things: diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 9df47133..6f07db84 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -261,8 +261,11 @@ sub parse_time ($$;$) { sub group_line ($$) { my ($self, $ibx) = @_; - my ($min, $max) = $ibx->mm->minmax; - more($self, "$ibx->{newsgroup} $max $min n"); + eval { + my ($min, $max) = $ibx->mm->minmax; + more($self, "$ibx->{newsgroup} $max $min n"); + }; + warn "Error: $@ - $ibx $ibx->{newsgroup}\n" if $@; } sub newgroups_i {