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 2B6E1200B9B for ; Wed, 12 Oct 2016 12:10:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2A325160AD4; Wed, 12 Oct 2016 10:10:52 +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 49853160AD3 for ; Wed, 12 Oct 2016 12:10:51 +0200 (CEST) Received: (qmail 88538 invoked by uid 500); 12 Oct 2016 10:10:45 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 88521 invoked by uid 99); 12 Oct 2016 10:10:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2016 10:10:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 53297180647 for ; Wed, 12 Oct 2016 10:10:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.757 X-Spam-Level: *** X-Spam-Status: No, score=3.757 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URI_HEX=1.313, URI_TRY_3LD=0.065] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ThNm6K7TsPDH for ; Wed, 12 Oct 2016 10:10:42 +0000 (UTC) Received: from mail-yw0-f182.google.com (mail-yw0-f182.google.com [209.85.161.182]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 864335FB09 for ; Wed, 12 Oct 2016 10:10:41 +0000 (UTC) Received: by mail-yw0-f182.google.com with SMTP id t193so30178217ywc.2 for ; Wed, 12 Oct 2016 03:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=8qWV637DycYlGWjo/6htdYnHmC4Hwh8VIWQWpAgGOQI=; b=rKocAtFAifHZ8kTqjR5Ltr1URMIrb45MFmgV5RJgukQEcAypgeDuZs2fSKq0JDv9pv Hz5bqL0UDhp3H2bMBcGr72ijpgRyOZIxyrMYsisICQH8tNE1VFnaVGHwbOmFr9jSXfRZ 5GUcoFWMBsAfDMnbdSTieipD4MIGAPqrFwQs6OwaHCEd+DGzwOj496hWkTpxhHhQqs8q /ZwsD559WFSeFpx+hTjtoJ0ozyNFusAiAwumGWNKjnnmDn8BqXgwtsBq6WBLup+qAuC1 +2y2OW+gf/mDZ4y8kV6nEn3Y+4kKW138ndDHjDj7mdmVHbuTqojLXr39csVZU0Tv63gi IQuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=8qWV637DycYlGWjo/6htdYnHmC4Hwh8VIWQWpAgGOQI=; b=f/GAFcAjqUa/jyjn8icqm59LYUNYyE4nRciH6/pZnce/YeUKvMxNBkLHLxGj0goA/p Qsxdu8RR3Ou7O2iVZxNHTdwfOhU+3IYuUOnc5osF6dYl2j9P3nrEH7EBiWWDAwlrzIaQ gTRyHaVVBkEA78Jzz0gOxgQrkn6OUmT5y9ZwsU9/h9TkZseMlstoiYzMcaXls4B+UU4j WudfIQ4n+DV9SU7OFN/IeZB4HyE4kvzuZZtdou685Hb0t/t0VlEU7N4NDBhHd6qD4NdE AlVSuhSDfIBjJcVXDp+YUg14v9x+ULh1ZI3D18THz1khnsVjqh0PamlrlZ/PNTh+jw9Q yAag== X-Gm-Message-State: AA6/9RkR+oSgs6603604dyMHGNRRAmdPwQ2kThz/KXPm8QZNjwvvkP31sQbNPwWrP12SysaN2/+E7UeWqoQeWg== X-Received: by 10.129.168.132 with SMTP id f126mr260071ywh.56.1476267040404; Wed, 12 Oct 2016 03:10:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.12.68 with HTTP; Wed, 12 Oct 2016 03:10:10 -0700 (PDT) In-Reply-To: <1476093550521-4717735.post@n4.nabble.com> References: <1476093550521-4717735.post@n4.nabble.com> From: Christopher Shannon Date: Wed, 12 Oct 2016 06:10:10 -0400 Message-ID: Subject: Re: Active MQ Data.db got corrupted To: dev@activemq.apache.org Content-Type: multipart/alternative; boundary=94eb2c13d5ae8982f3053ea83430 archived-at: Wed, 12 Oct 2016 10:10:52 -0000 --94eb2c13d5ae8982f3053ea83430 Content-Type: text/plain; charset=UTF-8 It's hard to say what caused the issue with the missing journal files. The version you are on is pretty old and there have been many fixes to KahaDB in later versions of the broker. One thing you can do is to set the ignoreMissingJournalfiles flag to true as described here http://activemq.apache.org/kahadb.html which will allow the broker to start up and continue even with the missing files. On Mon, Oct 10, 2016 at 5:59 AM, ramapriyan wrote: > We faced one production issue due to the below error. Can any one help on > the > reason for the error > > 2016-10-08 14:34:47,384 | INFO | Refreshing > org.apache.activemq.xbean.XBeanBrokerFactory$1@f356d114: startup date [Sat > Oct 08 14:34:47 EAT 2016]; root of context hierarchy | > org.apache.activemq.xbean.XBeanBrokerFactory$1 | main > 2016-10-08 14:34:48,226 | INFO | > PListStore:[/opt/apache-activemq-5.9.1/data/localhost/tmp_storage] > started | > org.apache.activemq.store.kahadb.plist.PListStoreImpl | main > 2016-10-08 14:34:48,497 | INFO | Using Persistence Adapter: > KahaDBPersistenceAdapter[/opt/apache-activemq-5.9.1/data/kahadb] | > org.apache.activemq.broker.BrokerService | main > 2016-10-08 14:34:53,113 | INFO | KahaDB is version 5 | > org.apache.activemq.store.kahadb.MessageDatabase | main > 2016-10-08 14:34:53,154 | INFO | Recovering from the journal ... | > org.apache.activemq.store.kahadb.MessageDatabase | main > 2016-10-08 14:34:53,213 | INFO | Recovery replayed 1361 operations from > the > journal in 0.089 seconds. | org.apache.activemq.store. > kahadb.MessageDatabase > | main > 2016-10-08 14:34:53,216 | INFO | Some journal files are missing: [992, > 993, > 996, 997, 998, 999, 1001, 1002, 1003, 1006, 1007, 1008, 1009, 991] | > org.apache.activemq.store.kahadb.MessageDatabase | main > 2016-10-08 14:34:53,218 | ERROR | Failed to start Apache ActiveMQ > ([localhost, null], java.io.IOException: Detected missing/corrupt journal > files. 57 messages affected.) | org.apache.activemq.broker.BrokerService | > main > 2016-10-08 14:34:53,220 | INFO | Apache ActiveMQ 5.9.1 (localhost, null) > is > shutting down | org.apache.activemq.broker.BrokerService | main > 2016-10-08 14:34:53,221 | INFO | Connector openwire stopped | > org.apache.activemq.broker.TransportConnector | main > 2016-10-08 14:34:53,221 | INFO | Connector amqp stopped | > org.apache.activemq.broker.TransportConnector | main > 2016-10-08 14:34:53,221 | INFO | Connector stomp stopped | > org.apache.activemq.broker.TransportConnector | main > 2016-10-08 14:34:53,222 | INFO | Connector mqtt stopped | > org.apache.activemq.broker.TransportConnector | main > 2016-10-08 14:34:53,222 | INFO | Connector ws stopped | > org.apache.activemq.broker.TransportConnector | main > 2016-10-08 14:34:53,223 | INFO | > PListStore:[/opt/apache-activemq-5.9.1/data/localhost/tmp_storage] > stopped | > org.apache.activemq.store.kahadb.plist.PListStoreImpl | main > 2016-10-08 14:34:53,224 | INFO | Stopping async queue tasks | > org.apache.activemq.store.kahadb.KahaDBStore | main > 2016-10-08 14:34:53,224 | INFO | Stopping async topic tasks | > org.apache.activemq.store.kahadb.KahaDBStore | main > 2016-10-08 14:34:53,224 | INFO | Stopped KahaDB | > org.apache.activemq.store.kahadb.KahaDBStore | main > 2016-10-08 14:34:53,635 | INFO | Apache ActiveMQ 5.9.1 (localhost, null) > uptime 5.404 seconds | org.apache.activemq.broker.BrokerService | main > 2016-10-08 14:34:53,635 | INFO | Apache ActiveMQ 5.9.1 (localhost, null) > is > shutdown | org.apache.activemq.broker.BrokerService | main > 2016-10-08 14:34:53,635 | INFO | Closing > org.apache.activemq.xbean.XBeanBrokerFactory$1@f356d114: startup date [Sat > Oct 08 14:34:47 EAT 2016]; root of context hierarchy | > org.apache.activemq.xbean.XBeanBrokerFactory$1 | main > > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/Active-MQ-Data-db-got-corrupted-tp4717735.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. > --94eb2c13d5ae8982f3053ea83430--