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 C33E3200C89 for ; Sat, 20 May 2017 01:05:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C1AF9160BD2; Fri, 19 May 2017 23:05:26 +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 14D54160BD1 for ; Sat, 20 May 2017 01:05:25 +0200 (CEST) Received: (qmail 10451 invoked by uid 500); 19 May 2017 23:05:24 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 10439 invoked by uid 99); 19 May 2017 23:05:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2017 23:05:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A98D6C326A for ; Fri, 19 May 2017 23:05:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 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, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id QFcrNrpQlhen for ; Fri, 19 May 2017 23:05:22 +0000 (UTC) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 4062C5F20C for ; Fri, 19 May 2017 23:05:22 +0000 (UTC) Received: by mail-wm0-f45.google.com with SMTP id d127so97884434wmf.0 for ; Fri, 19 May 2017 16:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=dNPaLFqtLx8ibTtKkIt3Rw1nhZ7eGtYJcyb6qEJRCkM=; b=eireF8SOMJpBrPOI01FbVUqBlwwFQrkArfp2Ep+jV9/F7fHFkSPIXFZ8sarGKMqIPF ubUqWu8v40a+Gmkw5Tdy6VDjNE6bly3X/9wmmr42F8EAs+3sqY/412cRdvoDn/k/czpM Y+OZAR/f+1TJ0zi+pYkncW4CDNpDlOfJ3asoN4sGNjLseQ4yBnWqtkGuX5nvgvlbrLPG iJ375e/RhQ3wYlS9gOxX+dkVzY8JSuNgImL8pAPQKfvd5EChPjXTMnORH0keuSUbXpuB uLQV5V6v12ofeBXOdo7Ke5sBDW4/7VBFXK0rhdIbpyrJlxd2zZvAy4Cjc+fTRRNqhUE9 ErLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=dNPaLFqtLx8ibTtKkIt3Rw1nhZ7eGtYJcyb6qEJRCkM=; b=RaZlM7xMZk1M0Nf34F8l9l4utkjHEctrmGkXXWpB57fdY61Z5k7PQh2+08UvlRBBVc XyDmaaBp03R/CzdPyIqMGlwz5hF5ePNLD2E9OSldvlCls75+Itxl6lCkHubNK+csgG9E gZkG0nMxwjKUTpwwNEZhZ8QRu3Gb5SBt2pkdtccljCNB5qT3kqTLfBsRb9aPVf7BTm72 aTaGwYswxabJjUdSzAjdo566zPNWYbf0VDyPtZXOLoL8NKxi6A+tCrYybzQoUgISVInY Xjvlz7X2/BspcjPv30BoYHpSkHb0LTWQjsnRaG4PyRQzZ8cqeeP5NAm3AsGZINENQLQl jxnA== X-Gm-Message-State: AODbwcAxkTThOML40xBhp9i84UVQzKOa36tEZnLkbIStWXoZgjX3Ny0x l/dGOaZYJA+lA894Vbd5SA44tI+oKDpR X-Received: by 10.80.129.229 with SMTP id 92mr8513687ede.161.1495235115571; Fri, 19 May 2017 16:05:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.164.138 with HTTP; Fri, 19 May 2017 16:05:15 -0700 (PDT) In-Reply-To: References: From: Chetas Joshi Date: Fri, 19 May 2017 16:05:15 -0700 Message-ID: Subject: Re: Solr coreContainer shut down To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary="94eb2c06aabceb6029054fe88d2a" archived-at: Fri, 19 May 2017 23:05:27 -0000 --94eb2c06aabceb6029054fe88d2a Content-Type: text/plain; charset="UTF-8" I found the reason why this is happening! I am using chef and running install_sol_service.sh with option -n -f. So, every time chef-client runs it is stopping the already running solr instance. Now, I have removed option -f (no upgrade) but running into an error. I have a question on the following peice of code. if [ ! "$SOLR_UPGRADE" = "YES" ]; then if [ -f "/etc/init.d/$SOLR_SERVICE" ]; then print_usage "/etc/init.d/$SOLR_SERVICE already exists! Perhaps Solr is already setup as a service on this host? To upgrade Solr use the -f option." exit 1 fi if [ -e "$SOLR_EXTRACT_DIR/$SOLR_SERVICE" ]; then print_usage "$SOLR_EXTRACT_DIR/$SOLR_SERVICE already exists! Please move this directory / link or choose a different service name using the -s option." exit 1 fi fi If I don't wanna upgrade and there is an already installed service, why should it be exit 1 and not exit 0? Shouldn't it be like.... if [ ! "$SOLR_UPGRADE" = "YES" ]; then if [ -f "/etc/init.d/$SOLR_SERVICE" ]; then print_usage "/etc/init.d/$SOLR_SERVICE already exists! Perhaps Solr is already setup as a service on this host? To upgrade Solr use the -f option." *exit 0* fi Thanks! On Fri, May 19, 2017 at 1:59 PM, Chetas Joshi wrote: > Hello, > > I am trying to set up a solrCloud (6.5.0/6.5.1). I have installed Solr as > a service. > Every time I start solr servers, they come up but one by one the > coreContainers start shutting down on their own within 1-2 minutes of their > being up. > > Here are the solr logs > > 2017-05-19 20:45:30.926 INFO (main) [ ] o.e.j.s.Server Started @1600ms > > 2017-05-19 20:47:21.252 INFO (ShutdownMonitor) [ ] > o.a.s.c.CoreContainer Shutting down CoreContainer instance=1364767791 > > 2017-05-19 20:47:21.262 INFO (ShutdownMonitor) [ ] o.a.s.c.Overseer > Overseer (id=169527934494244988-:8983_solr-n_0000000006) closing > > 2017-05-19 20:47:21.263 INFO (OverseerStateUpdate-169527934494244988- > :8983_solr-n_0000000006) [ ] o.a.s.c.Overseer Overseer Loop > exiting : :8983_solr > > 2017-05-19 20:47:21.268 INFO (ShutdownMonitor) [ ] > o.a.s.m.SolrMetricManager Closing metric reporters for: solr.node > > > The coreContainer just shuts down (no info in the solr logs). Is the jetty > servlet container having some issue? Is it possible to look at the Jetty > servlet container logs? > > Thanks! > --94eb2c06aabceb6029054fe88d2a--