Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6EE69EA41 for ; Tue, 5 Feb 2013 23:15:17 +0000 (UTC) Received: (qmail 40642 invoked by uid 500); 5 Feb 2013 23:15:14 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 40599 invoked by uid 500); 5 Feb 2013 23:15:14 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 40547 invoked by uid 99); 5 Feb 2013 23:15:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 23:15:13 +0000 Date: Tue, 5 Feb 2013 23:15:13 +0000 (UTC) From: "Daniel Woelfel (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (COUCHDB-1669) Unable to start CouchDB in background through a psuedo-tty MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Woelfel updated COUCHDB-1669: ------------------------------------ Summary: Unable to start CouchDB in background through a psuedo-tty (was: Unable to start CouchDB in background through a psuedo_tty ) > Unable to start CouchDB in background through a psuedo-tty > ----------------------------------------------------------- > > Key: COUCHDB-1669 > URL: https://issues.apache.org/jira/browse/COUCHDB-1669 > Project: CouchDB > Issue Type: Bug > Reporter: Daniel Woelfel > > CouchDB crashes when started as a background process in a psuedo_tty. > Steps to reproduce: > On a machine that you can ssh into localhost do: > ssh -tt localhost "/path/to/couchdb -b" > When the connection closes, CouchDB will be killed. > A few things I've discovered while debugging > When I do > ssh -tt localhost "~/build-couchdb/build/bin/couchdb -b && sleep 10 && curl localhost:5984" > The output from the command is: > Apache CouchDB has started, time to relax. > {"couchdb":"Welcome","version":"1.2.1"} > Connection to localhost closed. > The contents or couchdb's stdout file is > Apache CouchDB 1.2.1 (LogLevel=info) is starting. > Apache CouchDB has started. Time to relax. > [info] [<0.32.0>] Apache CouchDB has started on http://127.0.0.1:5984/ > [info] [<0.131.0>] 127.0.0.1 - - GET / 200 > The contents of couchdb's stderr is > heart_beat_kill_pid = 32631 > heart_beat_timeout = 11 > heart: Mon Feb 4 07:31:57 2013: Erlang has closed. > heart: Mon Feb 4 07:31:58 2013: Executed "/home/ubuntu/build-couchdb/build/bin/couchdb -k" -> 0. Terminating. > This happens no matter how I start CouchDB: as a service, with the init script, with nohup, or with the command above. I built CouchDB using the build instructions for Ubuntu 12.04 from the wiki and using the build-couchdb project on Github. > The really odd thing is that this only happens when I start couchdb with `ssh -tt`. If I ssh into localhost and start couchdb in the background, it will continue running after I exit the ssh session. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira