From user-return-23321-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Jan 22 21:32:07 2013 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C1ECEF79 for ; Tue, 22 Jan 2013 21:32:07 +0000 (UTC) Received: (qmail 20787 invoked by uid 500); 22 Jan 2013 21:32:06 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 20722 invoked by uid 500); 22 Jan 2013 21:32:05 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 20712 invoked by uid 99); 22 Jan 2013 21:32:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2013 21:32:05 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nestor.urquiza@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-wg0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2013 21:31:58 +0000 Received: by mail-wg0-f48.google.com with SMTP id 16so1412584wgi.15 for ; Tue, 22 Jan 2013 13:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=NdWl5f72dj0qrTLNOoOkpAPbpCbnqB/Q+KUYLwsiIY4=; b=CrlpL9OGnuKjVBbJkf4QGlvq9WqfIoV31lMxC38OBFDbzM+GFEPL5wBAPkvy0itEMW +nVN6MpQXJO3BGgfiUeacCdtfj5a8kcBZW3TIhZ+62FK0W1/mwiicrbHs0ZOJWQfIdF+ /v7VGYOLdGo/sUzkQhpwAjFT1qQWiebopEjcMsDW+PHcsAGnKPoJ/BwgXXl30DUnuTiq N+4bbC7nsVOSICyJcfZ1PudGDolCg+Y0gdl54B/2MR05uMLz9aylpJPfHa5TifuC3HZ+ Qm5iHppABiPkwxGOfYRV1eHzJf4Ij4Wl5t/WK1/415Ki8MyehJIGuM8wivUHIzY3OCcV 4W7g== MIME-Version: 1.0 X-Received: by 10.180.80.230 with SMTP id u6mr23425930wix.20.1358890298672; Tue, 22 Jan 2013 13:31:38 -0800 (PST) Received: by 10.217.4.146 with HTTP; Tue, 22 Jan 2013 13:31:38 -0800 (PST) Date: Tue, 22 Jan 2013 16:31:38 -0500 Message-ID: Subject: etc/init.d/couchdb stop does not stop the 1.2.0 server built from sources From: Nestor Urquiza To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hello guys, I have seen this issue in the archives for different version so I am bringing it once again. Apologies if I missed something in which case a link would be appreciated. As the subject says at this moment we are unable to stop couchdb from the startup script. Anybody has any idea on how to further troubleshoot this problem? 1. See below. The server won't really stop: dev@udesktop2:/opt/tomcat$ sudo /usr/local/etc/init.d/couchdb stop * Stopping database server couchdb [ OK ] dev@udesktop2:/opt/tomcat$ sudo /usr/local/etc/init.d/couchdb status Apache CouchDB is not running. dev@udesktop2:/opt/tomcat$ curl -k https://localhost:6984 {"couchdb":"Welcome","version":"1.2.0"} dev@udesktop2:/opt/tomcat$ 2. Below is the output of the script in debug mode: dev@udesktop2:/opt/tomcat$ sudo /usr/local/etc/init.d/couchdb stop + SCRIPT_OK=0 + SCRIPT_ERROR=1 + DESCRIPTION=database server + NAME=couchdb + basename /usr/local/etc/init.d/couchdb + SCRIPT_NAME=couchdb + COUCHDB=/usr/local/bin/couchdb + CONFIGURATION_FILE=/usr/local/etc/default/couchdb + RUN_DIR=/usr/local/var/run/couchdb + LSB_LIBRARY=/lib/lsb/init-functions + test ! -x /usr/local/bin/couchdb + test -r /usr/local/etc/default/couchdb + . /usr/local/etc/default/couchdb + COUCHDB_USER=couchdb + COUCHDB_STDOUT_FILE=/dev/null + COUCHDB_STDERR_FILE=/dev/null + COUCHDB_RESPAWN_TIMEOUT=5 + COUCHDB_OPTIONS= + test -r /lib/lsb/init-functions + . /lib/lsb/init-functions + FANCYTTY= + [ -e /etc/lsb-base-logging.sh ] + . /etc/lsb-base-logging.sh + LOG_DAEMON_MSG= + parse_script_option_list stop + log_daemon_msg Stopping database server couchdb + [ -z Stopping database server ] + log_use_fancy_output + TPUT=/usr/bin/tput + EXPR=/usr/bin/expr + [ -t 1 ] + [ xxterm-256color != x ] + [ xxterm-256color != xdumb ] + [ -x /usr/bin/tput ] + [ -x /usr/bin/expr ] + /usr/bin/tput hpa 60 + /usr/bin/tput setaf 1 + [ -z ] + FANCYTTY=1 + true + /usr/bin/tput xenl + /usr/bin/tput cols + COLS=115 + [ 115 ] + [ 115 -gt 6 ] + /usr/bin/expr 115 - 7 + COL=108 + log_use_plymouth + [ n = y ] + plymouth --ping + printf * Stopping database server couchdb * Stopping database server couchdb + /usr/bin/expr 115 - 1 + /usr/bin/tput hpa 114 + printf + stop_couchdb + run_command /usr/local/bin/couchdb -d + command=/usr/local/bin/couchdb -d + test -n + test -n couchdb + su couchdb -c /usr/local/bin/couchdb -d + return 0 + log_end_msg 0 + [ -z 0 ] + [ 108 ] + [ -x /usr/bin/tput ] + log_use_plymouth + [ n = y ] + plymouth --ping + printf \r + /usr/bin/tput hpa 108 + [ 0 -eq 0 ] + echo [ OK ] [ OK ] + return 0 3. We have tested the same behavior in a couple of servers: $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS" Thanks! - Nestor