From owner-freebsd-bugs@FreeBSD.ORG Wed Jul 1 17:10:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58C9B106566C for ; Wed, 1 Jul 2009 17:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 33DC58FC25 for ; Wed, 1 Jul 2009 17:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n61HA1rT033985 for ; Wed, 1 Jul 2009 17:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n61HA1Gl033984; Wed, 1 Jul 2009 17:10:01 GMT (envelope-from gnats) Resent-Date: Wed, 1 Jul 2009 17:10:01 GMT Resent-Message-Id: <200907011710.n61HA1Gl033984@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jim Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3CEC1065673 for ; Wed, 1 Jul 2009 17:03:41 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id C1EB08FC15 for ; Wed, 1 Jul 2009 17:03:41 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n61H3f7i032397 for ; Wed, 1 Jul 2009 17:03:41 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n61H3f6o032396; Wed, 1 Jul 2009 17:03:41 GMT (envelope-from nobody) Message-Id: <200907011703.n61H3f6o032396@www.freebsd.org> Date: Wed, 1 Jul 2009 17:03:41 GMT From: Jim To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/136225: Portaudit reports database too old when updating X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2009 17:10:01 -0000 >Number: 136225 >Category: misc >Synopsis: Portaudit reports database too old when updating >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 01 17:10:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Jim >Release: 7.1 >Organization: Graff Chevrolet >Environment: FreeBSD **********.com 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: For several days now, I've received the following error when running 'portaudit -F' to update the vulnerability database: auditfile.tbz 100% of 53 kB 10 kBps portaudit: Database too old. Old database restored. portaudit: Download failed. After some searching online, I found this post: http://www.pubbs.net/freebsd/200906/49732/ in which it's suggested that the problem lie with the URL that portaudit uses to update it's database. Basically, change line 42 from : ${portaudit_sites="http://portaudit.FreeBSD.org/"} to : ${portaudit_sites="http://www.FreeBSD.org/ports/"} Looking at the output of portaudit -d before this change indicated that the database was created on June 23. After making this change and running portaudit -F again (which did not produce the error, portaudit -d showed the database time stamp as being today, July 1. The new update site, portaudit.freebsd.org, is up and serving hypertext, so I'd guess it's an updating issue. Additionally, I would like to suggest that the site to update from be turned into an array, and if one update location is unavailable or hasn't been updated for n days, portaudit cycle through the remaining URLs. Strictly speaking, this is beyond the scope of this bug report, but would provide more redundancy and stability to the functionality of this port. >How-To-Repeat: Run portaudit -F on version 0.5.3 of the port with the default update site in place. >Fix: Change line 42 from : ${portaudit_sites="http://portaudit.FreeBSD.org/"} to : ${portaudit_sites="http://www.FreeBSD.org/ports/"} >Release-Note: >Audit-Trail: >Unformatted: