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 3D32A200B9B for ; Wed, 12 Oct 2016 21:35:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3B995160AD4; Wed, 12 Oct 2016 19:35:42 +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 7CD6C160ACA for ; Wed, 12 Oct 2016 21:35:41 +0200 (CEST) Received: (qmail 74706 invoked by uid 500); 12 Oct 2016 19:35:40 -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 74690 invoked by uid 99); 12 Oct 2016 19:35:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2016 19:35:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id EED0D1A059C for ; Wed, 12 Oct 2016 19:35:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.001 X-Spam-Level: *** X-Spam-Status: No, score=3.001 tagged_above=-999 required=6.31 tests=[KAM_BADIPHTTP=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, WEIRD_PORT=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id XZpt7DmpXWyQ for ; Wed, 12 Oct 2016 19:35:36 +0000 (UTC) Received: from monoceres.uberspace.de (monoceres.uberspace.de [95.143.172.184]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 65B645F1EE for ; Wed, 12 Oct 2016 19:35:36 +0000 (UTC) Received: (qmail 23942 invoked from network); 12 Oct 2016 19:35:32 -0000 Received: from localhost (HELO ?10.0.0.250?) (127.0.0.1) by monoceres.uberspace.de with SMTP; 12 Oct 2016 19:35:32 -0000 From: Jan Lehnardt Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Wed, 12 Oct 2016 21:35:29 +0200 Subject: Re: httpd vs chttpd, and 5984 vs 5986 Message-Id: <2A2926EA-5640-40FB-BEB9-7E88334B8F85@jan.io> References: In-Reply-To: To: user@couchdb.apache.org X-Mailer: iPhone Mail (14A456) archived-at: Wed, 12 Oct 2016 19:35:42 -0000 Looks like you skipped over the "setup cluster" step from the installation n= otes on docs.couchdb.org. Even a single/node cluster-of-one needs this, as i= t creates the necessary system databases. At this point, best to ignore the 5986 port (unless for per-node maintenance= ). Cheers Jan -- > On 12 Oct 2016, at 20:44, Timothy McKernan wro= te: >=20 > I've installed CouchDB 2.0.0 from source using: > ./configure > make release > sudo mv rel/couchdb /var/lib/couchdb > sudo chown -R couchdb:couchdb /var/lib/couchdb > sudo -u couchdb /var/lib/couchdb/bin/couchdb >=20 > The problem I'm seeing is that, by default, [chttpd] is being assigned por= t > 5984 (in the default.ini) and [httpd] is assigned 5986. >=20 > Throughout the online docs port 5984 is referenced for the majority of > endpoints, such as fauxton. > Used for pretty much everything, such as couchapps (fauxton is the new > futon) and db access. >=20 > http://docs.couchdb.org/en/2.0.0/intro/tour.html?highlight=3D5984#welcome-= to-fauxton > And port 5986 is the "back-door" port. > http://docs.couchdb.org/en/2.0.0/cluster/databases.html?highlight=3D598= 6 > http://docs.couchdb.org/en/2.0.0/whatsnew/2.0.html?highlight=3D5986 >=20 > So we end up with the following behavior: > md-007:~ $ curl -k -X GET http://127.0.0.1:5984/_all_dbs > [] > md-007:~ $ curl -k -X GET http://127.0.0.1:5986/_all_dbs > ["_dbs","_nodes","_replicator","_users","md_rules","monitor"] > md-007:~ $ curl -k -X GET https://127.0.0.1:6984/_all_dbs > ["_dbs","_nodes","_replicator","_users","md_rules","monitor"] >=20 > It seems that chttpd doesn't have the usual default access to everything > that it used to in couchdb 1.6. Indeed, if you use fauxton over port 5984 > as the docs say to, it _doesn't_ show you any db's, because it clearly > (from the above curl examples) can't see any. And the emulator complains > because it's using 5984 to try and find _users. >=20 > [error] 2016-10-12T18:42:53.106630Z couchdb@localhost emulator -------- > Error in process <0.4185.0> on node couchdb@localhost with exit value: > {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file= ,"src/mem3_shards.erl"},{line,327}]},{mem3_shards,load_shards_from_disk,1,[{= file,"src/mem3_shards.erl"},{line,315}]},{mem3_shards,load_shards_from_disk,= 2,[{file,"src/mem3_shards.erl"},{line,331}]},{mem3_shards,for_docid,3,[{file= ,"src/mem3_shards.erl"},{line,87}]},{fabric_doc_open,go,3,[{file,"src/fabric= _doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{f= ile,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_= changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]} >=20 > What's the correct configuration here? What ports should chttpd and httpd > be set to so that the emulator process isn't erroring?