Return-Path: Delivered-To: apmail-archiva-users-archive@www.apache.org Received: (qmail 53444 invoked from network); 11 Aug 2010 05:20:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Aug 2010 05:20:41 -0000 Received: (qmail 13470 invoked by uid 500); 11 Aug 2010 05:20:41 -0000 Delivered-To: apmail-archiva-users-archive@archiva.apache.org Received: (qmail 13347 invoked by uid 500); 11 Aug 2010 05:20:40 -0000 Mailing-List: contact users-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@archiva.apache.org Delivered-To: mailing list users@archiva.apache.org Delivered-To: moderator for users@archiva.apache.org Received: (qmail 82177 invoked by uid 99); 11 Aug 2010 04:34:32 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Sender: Brett Porter Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: Need help cleaning up managed repositories on Archiva 1.1.3 From: Brett Porter In-Reply-To: <98F84E611092E341A948BD63E00543B1664F24AAE9@SM-FLOR-VXMB04A.wdw.disney.com> Date: Wed, 11 Aug 2010 14:33:57 +1000 Content-Transfer-Encoding: quoted-printable Message-Id: <03A6BA20-A281-477B-9D05-157B46DD9419@apache.org> References: <98F84E611092E341A948BD63E00543B1664F24AAE9@SM-FLOR-VXMB04A.wdw.disney.com> To: users@archiva.apache.org X-Mailer: Apple Mail (2.1081) There are several things to attend to here. If you are concerned about root owning the files, you should look into = running Archiva as a different user (in the standalone bundle, see = RUN_AS_USER in the bin/archiva file). If you are concerned about anonymous uploads, you need to remove the = "manager" roles from the guest account, and allocate it to the users = that should have permission to upload. Recent versions of archiva contain a UI button for managers to delete = artifacts by filling in a form. Finally, the purge configuration you've set only applies to snapshots. = To ensure it is enabled, you need to check that it is turned on in the = "Repository Scanning" configuration page, and then restart the server. = You can run a "scan repository now" with "process all artifacts" = (requires upgrading to a new version to be available) from the = repositories page on the snapshot repository to force it to do a clean = up. Hope that helps, Brett On 11/08/2010, at 7:37 AM, Rosenfeld, David X -ND wrote: > We have an Archiva server (running version 1.1.3) that is out of disk = space. It has two managed repositories, "internal" and "snapshots". >=20 > The "internal" repository is a Maven 2.x repository, with Purge By = Days Older Than =3D 30, Purge By Retention Count =3D 2. Releases = Included is checked, Snapshots Included is unchecked, Scannable is = checked, Delete Released Snapshots is unchecked. The cron for this = repository is "0 0 * * * ?". >=20 > The "snapshots" repository is a Maven 2.x repository, with Purge By = Days Older Than =3D 3, Purge By Retention Count =3D 3. Releases = Included is unchecked, Snapshots Included is checked, Scannable is = checked, Delete Released Snapshots is unchecked. The cron for this = repository is "0 0,30 * * * ?". >=20 > There are only two users defined, "admin" (which has the System = Administrator role) and "guest" (which has Global Repository Manager and = Local Repository Manager roles). >=20 > As far as I can tell, the builds that are uploading artifacts to this = repository are doing so essentially anonymously. All of the files in = the Archiva repository file tree are owned by root. I am unable to get = a "Delete Artifact" button in the web GUI for any artifact at all. It = appears that my only way of cleaning up disk space on this server would = be to delete files from the tree via the command line. >=20 > I would like to find a better way to delete (and also manage) the = older artifacts in these repositories. I'm very new at this, so any and = all help is welcome. >=20 > Thanks in advance. >=20 > David Rosenfeld > Build Engineer > WDPRO Development Services >=20 >=20 -- Brett Porter brett@apache.org http://brettporter.wordpress.com/