[ https://issues.apache.org/jira/browse/COUCHDB-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joan Touzet reassigned COUCHDB-1669: ------------------------------------ Assignee: Joan Touzet > 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 > Assignee: Joan Touzet > > 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 was sent by Atlassian JIRA (v6.2#6252)