Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5BA34200BFC for ; Sat, 14 Jan 2017 09:07:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5A35D160B35; Sat, 14 Jan 2017 08:07:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A527D160B28 for ; Sat, 14 Jan 2017 09:07:48 +0100 (CET) Received: (qmail 31143 invoked by uid 500); 14 Jan 2017 08:07:47 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 31133 invoked by uid 99); 14 Jan 2017 08:07:47 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jan 2017 08:07:47 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 5CE8E3A20D5 for ; Sat, 14 Jan 2017 08:07:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1004870 - in /websites/staging/directory/trunk/content: ./ apacheds/advanced-ug/2.2.1-debian-instance-layout.html Date: Sat, 14 Jan 2017 08:07:47 -0000 To: commits@directory.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170114080747.5CE8E3A20D5@svn01-us-west.apache.org> archived-at: Sat, 14 Jan 2017 08:07:49 -0000 Author: buildbot Date: Sat Jan 14 08:07:46 2017 New Revision: 1004870 Log: Staging update by buildbot for directory Modified: websites/staging/directory/trunk/content/ (props changed) websites/staging/directory/trunk/content/apacheds/advanced-ug/2.2.1-debian-instance-layout.html Propchange: websites/staging/directory/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Sat Jan 14 08:07:46 2017 @@ -1 +1 @@ -1778727 +1778728 Modified: websites/staging/directory/trunk/content/apacheds/advanced-ug/2.2.1-debian-instance-layout.html ============================================================================== --- websites/staging/directory/trunk/content/apacheds/advanced-ug/2.2.1-debian-instance-layout.html (original) +++ websites/staging/directory/trunk/content/apacheds/advanced-ug/2.2.1-debian-instance-layout.html Sat Jan 14 08:07:46 2017 @@ -312,6 +312,15 @@ h2:hover > .headerlink, h3:hover > .head

Again, you must provide the instance name if it's not the default one

+

Repairing the indexes

+

Sometime, the database get corrupted. Hopefully, this is not frequent, but when it happens, it left you in a position where there is nothing you can do but re-injecting a backup.

+

That is more than annoying, and the latest version (2.0.0-M23) as an added feature that allows you to repair the indexes (this is a best effort, it might not work in all cases). Here is the step to follow in order to run the tool :

+
$ sudo /etc/init.d/apacheds-<version> repair /var/lib/apacheds-<version>/<instance>
+
+ + +

All the indexes will be recreated, based on the content of the master table (which contains all the entries). You can also remove all the database files but the master.db and master.lg files from each user partitions in /var/lib/apacheds-//partitions, before running the command.

+

The server should restart with a working database (it might take a bit of time, but not that much : rebuilding indexes is orders of magnitude faster than injcting entries in the server).

Logs

You can check what's going on in the apacheds-<version>instances/<instance-name>/log/apacheds.log file, which is created using the configuration set in apacheds-<version>instances/<instance-name>/conf/log4j.properties.

Typically, when you start the server, you will get such log :