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 4DDDE200C23 for ; Wed, 22 Feb 2017 10:17:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4C862160B67; Wed, 22 Feb 2017 09:17:36 +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 97B99160B49 for ; Wed, 22 Feb 2017 10:17:35 +0100 (CET) Received: (qmail 60829 invoked by uid 500); 22 Feb 2017 09:17:34 -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 60817 invoked by uid 99); 22 Feb 2017 09:17:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2017 09:17:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DA6FCC03AF for ; Wed, 22 Feb 2017 09:17:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.32 X-Spam-Level: X-Spam-Status: No, score=-0.32 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id IkGsRcl1Qxy8 for ; Wed, 22 Feb 2017 09:17:31 +0000 (UTC) Received: from mail-qt0-f182.google.com (mail-qt0-f182.google.com [209.85.216.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 458945F56B for ; Wed, 22 Feb 2017 09:17:31 +0000 (UTC) Received: by mail-qt0-f182.google.com with SMTP id x35so3825898qtc.2 for ; Wed, 22 Feb 2017 01:17:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Tfvkfay5VQGn4bo6j8ZG/MxflRnFGyG70Pez27CqYHQ=; b=OCZuihrGPEbCIw4pixyXx6ejer6E/PVAR2bqRMvvL8yv/hdlzGie57LTnXVGiHO9Qj oi4IKaW8L5pWsbGIMApS9Th8MxMaoZM2iMlMJbBteNbLdCTK4NI6w9C26uNfFwlkRXjq CbjZ8YYF2MPYNpOnvT8O0xb3pLXLESQDP2cJq3s2FMP8ZgR1Ic7FHTvH9WFrW61/R7Qv Tifj9eDiwH2j5I6+vyYKsq177CA2ni+904TZnH2nZSHteSjq+9rRZ4usVtrujjtl0a/6 8y1XyU4B5LEYNd63ThBjJrCdw+Q7Ue/3CAv7PwWktCGlEB1im7WJHqyNaJBsAW1VEq5h /lcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Tfvkfay5VQGn4bo6j8ZG/MxflRnFGyG70Pez27CqYHQ=; b=m1ETaYkT5hV376hJwi1GhWmJxHCJq5Z5r82ZH8H7G5RNFJvoUDW582He+yk/TPpVvZ smqP116OQAgCCE/lx2r8BtjFoc/qF3k6zMDpaa9JMLmX6jbPDHN4LiOiazZFADM5m6Nf RWwZkRuGvgmaLB0fnRiWsToql2WNI6PZ9/ct9U80yEYnq8TgXNow836AQwZ7x0gFrvgT UojCPLXbRKXLUVQ1GhWju2eH04IDdcBrvmFnWBrFF6zHgB6Q/8FvOBWI4656kGM3zhrj w7W/tBvcnWZ1d0nUnvZ6KsRUsAUK8sjOmbSO1KcJm7OPnYMxgy47Uonm1FHKiLKPFGhR t/pA== X-Gm-Message-State: AMke39mO0YTMUbfvcao+8n+zyng4FtnbFN+29ZpvKq7jnh4Caj40CXvmz5nTv1aHyXQLDMyvT2v7HwLOyso1DQ== X-Received: by 10.237.39.158 with SMTP id a30mr10562037qtd.65.1487755050728; Wed, 22 Feb 2017 01:17:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.55.76.18 with HTTP; Wed, 22 Feb 2017 01:17:10 -0800 (PST) In-Reply-To: References: From: Daniel Munch Date: Wed, 22 Feb 2017 10:17:10 +0100 Message-ID: Subject: Re: Command line only install of 2.0 (Linux) To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Wed, 22 Feb 2017 09:17:36 -0000 Hi Dan, in case you're talking about a single-node setup I agree, the documentation isn't very clear on that. I recently submitted a pull request which should make it more clear, but apparently it didn't make it to the site yet: https://github.com/apache/couchdb-documentation/pull/94/files?short_path=31ac1c6#diff-31ac1c6a7e05dc83bededf911e5b4807 So in a nutshell: For a single-node setup, instead of using the wizard, you can also manually configure an admin user in the config file like explained in http://docs.couchdb.org/en/2.0.0/config/auth.html#server-administrators Afterwards you have to create the three system databases _users, _replicator and _global_changes like explained in the doc. This is equivalent to the setup wizard and can be carried out form the command line. Best, Daniel On Wed, Feb 22, 2017 at 9:53 AM, Dan Ballance wrote: > Hi folks, > > We've started using CouchDB recently and decided to start with your 2.0 > release. We're really loving the platform so far. We are trying to deploy > CouchDB 2.0 with a configuration management application called Salt. I have > a working configuration that does 99% of the install - although there > appear to be a couple of final steps that need to be performed in a web > browser which is not ideal from a config management PoV. > > So here are the final steps I have - please correct me if I am not doing > this right. I saw an error in my logs which Googling brought me to this > Hacker News thread: > > https://news.ycombinator.com/item?id=12545569 > > The technique proposed seems to work fine. I go to > http://hostname:5984/_utils, create an admin account and then proceed to > the single server setup which completes the installation of the necessary > database tables. So my question is: > > Is there any way to set up the admin account and trigger the database > tables to be created without an administrator visiting the server in a web > browser? > > many thanks in advance for your valuable time, > > Dan Ballance.