Return-Path: X-Original-To: apmail-couchdb-erlang-archive@minotaur.apache.org Delivered-To: apmail-couchdb-erlang-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3098DC28B for ; Wed, 17 Jul 2013 09:20:25 +0000 (UTC) Received: (qmail 93005 invoked by uid 500); 17 Jul 2013 09:20:23 -0000 Delivered-To: apmail-couchdb-erlang-archive@couchdb.apache.org Received: (qmail 92967 invoked by uid 500); 17 Jul 2013 09:20:21 -0000 Mailing-List: contact erlang-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: erlang@couchdb.apache.org Delivered-To: mailing list erlang@couchdb.apache.org Received: (qmail 92956 invoked by uid 99); 17 Jul 2013 09:20:19 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jul 2013 09:20:19 +0000 Received: from localhost (HELO mail-vb0-f49.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jul 2013 09:20:18 +0000 Received: by mail-vb0-f49.google.com with SMTP id 12so1196447vbf.36 for ; Wed, 17 Jul 2013 02:20:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=2wJFJIgSMw0Hwo94SG+8KauNMW3gbjCkICn2TlzhPpU=; b=lwjnTgQc05KatfBAyKqmzbEyDWU6XKskPa0ouXASAkcTLmNDyk/VHyr/mntbsM/F4Q vIIApAO0Zd+VJ0/qQy0KtIETNKH20MQYkht5nXKVGY3mh+3Xb6gBa1YgZ0f8uLoqgotz Y4B2szXAcutAvvyUTm0nWLnztgEMepl5RSW+ykE31+Mvwf9qwotq4PuETdmyNODoZ3vS djZOvxcaVkcPK4xO7wQeHlQJzp5Be3h5+J8alyG573rlOKAlAKgQRRp1uTFN/FF60rEY 7fEXV4fmEX6vL/g5TCuV7jmdhR2vwtZF9SZ2293yLhpKlWQAB8ujgqlJVcYoZiJwGyvY GGYQ== MIME-Version: 1.0 X-Received: by 10.220.168.7 with SMTP id s7mr1800289vcy.4.1374052817959; Wed, 17 Jul 2013 02:20:17 -0700 (PDT) Received: by 10.220.149.73 with HTTP; Wed, 17 Jul 2013 02:20:17 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Jul 2013 10:20:17 +0100 Message-ID: Subject: Re: CouchDB on etop From: Robert Newson To: erlang@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 CouchDB does not, by default, run as a distributed Erlang node, which explains the failure to connect (it's not listening). You can add '-name couchdb@127.0.0.1' or similar to the startup options to change that. B. On 17 July 2013 08:45, Alexander Shorin wrote: > Hi there, > > I just tried to run etop against CouchDB inspired by one G+ post that > provided shortcut script. I'd added -sname 'couchdb@localhost' (yes, > with single quotes around the node name) argument for CouchDB startup > and successfully located erlang cookie within couchdb user home dir > (/var/lib/couchdb for me). > > The result command to run etop was looked as: > > erl -name etop-`date +%s` -hidden -s etop -s erlang halt \ > -output text -node couchdb@127.0.0.1 -setcookie secret \ > -tracing off -sort msg_q -interval 5 > > But it had failed with an error: > > Erlang R16B (erts-5.10.1) [source] [64-bit] [smp:4:4] [async-threads:10] > > Eshell V5.10.1 (abort with ^G) > (etop-1374045535@ashdarh.enlashor)1> Error Couldn't connect to node > 'couchdb@127.0.0.1' > > and CouchDB didn't log any error messages about unwelcome connections > from outside. I couldn't use couchdb@localhost for -node argument > since it produce invalid node name error. Using long node name also > was with no luck. > > Actually, I'd successfully solve my problem with entop[1] help, but > wonder why erl command ahd failed to connect? Probably, entop handles > connection right somewhere deep in sources and I feel the problem is > too trivial, but looks I'd missed something... > > [1]: https://github.com/mazenharake/entop > > > -- > ,,,^..^,,,