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 D48ED200C13 for ; Mon, 6 Feb 2017 18:02:23 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D2D05160B56; Mon, 6 Feb 2017 17:02:23 +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 27FE8160B53 for ; Mon, 6 Feb 2017 18:02:23 +0100 (CET) Received: (qmail 6520 invoked by uid 500); 6 Feb 2017 17:02:22 -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 6506 invoked by uid 99); 6 Feb 2017 17:02:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2017 17:02:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id F350CC0C68 for ; Mon, 6 Feb 2017 17:02:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, 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] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=wissel.net Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 1FlzLtVmLguq for ; Mon, 6 Feb 2017 17:02:18 +0000 (UTC) Received: from mail-it0-f43.google.com (mail-it0-f43.google.com [209.85.214.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8B7045FAF3 for ; Mon, 6 Feb 2017 17:02:17 +0000 (UTC) Received: by mail-it0-f43.google.com with SMTP id r185so61242523ita.0 for ; Mon, 06 Feb 2017 09:02:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wissel.net; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=2gCMMscIfuaD4xn/6BQUrfGO/COU8V4MTsmVzlFSlJs=; b=MgOxboJHhxzvH/+L9zcD9sT89JrPgii+DpWT+SoUIvbNgU24k5sqmq+tRNSizkJWph 75b3gpVxEf2X+xouQfzXAkL7IlxiSLRFxEFgfbxgdWlCzrwQzAAbvGlQVwDfqC10LRsk Lhrc/xL7TW1HPVqZh7BEiVtLqgj6QNRnaVXlg= 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=2gCMMscIfuaD4xn/6BQUrfGO/COU8V4MTsmVzlFSlJs=; b=izOad+EOZ9JaCMWNFWI3ZgYSxz70Qa7wsg1OmTzIGc45f/m4/TYRpzFMaVgby/Mpba WeD9CfjguZX9etGl1IuY+AVblpL/YU7KAcdhyu8ZWtdwVy5mqvJYJA3wUKNZ4dxYR6sW BkXhon6Gf5Z2xP+/3nasvWgzFa5Ol+up2KjVjVLB/L8yLW6fKOSeZduUAhCFFzvxK5xm 6+yeBdWIzmtAKNsu8pMBKfuxcprAmrrP61G32dw03BcecsoNpmI3PvBLx2oHueWmn83C qyOtAWIuVXV1xF8WpiIz3wfbZIOPvg1rfz4ZsM//9WIdU0jtwgcz6hGGsoc8aP47npw9 aLfA== X-Gm-Message-State: AIkVDXIpPuAIHPTB2owT318JW54qrJLRIgDkTEllXPQGGzioD5W3XQXEjqqd5m0K24/7UR8CRSVn+SMosJbX+A== X-Received: by 10.36.33.135 with SMTP id e129mr7810088ita.9.1486400536325; Mon, 06 Feb 2017 09:02:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.16.12 with HTTP; Mon, 6 Feb 2017 09:01:55 -0800 (PST) X-Originating-IP: [103.252.200.112] In-Reply-To: References: From: Stephan Wissel Date: Tue, 7 Feb 2017 01:01:55 +0800 Message-ID: Subject: Re: Database missing from Fauxton To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001a11473feef6530c0547df9767 archived-at: Mon, 06 Feb 2017 17:02:24 -0000 --001a11473feef6530c0547df9767 Content-Type: text/plain; charset=UTF-8 Update: Using the url http://localhost/mydb worked at the end. What I tried: - use "create_target" : true with http://localhost/mydb -> failed, permission denied - use "create_target" : true with http://adminuser:adminpassword@localhost/mydb -> failed, permission denied - create mydb first, replicate with http://localhost/mydb -> worked Seems like 2 bugs: - database needs URL, local name doesn't work - database creation fails even for admin account Nevertheless: I got my objective for now, happy camper Create a nice day! Stephan H. Wissel Phone: +65 96673269 Blog Twitter Google+ Facebook LinkedIn Xing Sametime *Skype* On Tue, Feb 7, 2017 at 12:38 AM, Stephan Wissel wrote: > Hi Bob, > > Thx for the reply. I'm not sure what CouchDB was creating. It is visible > from the replicator, but not via URL. > I'll try the using an URL later and update the thread > > On Sun, 5 Feb 2017 at 22:07, Robert Samuel Newson > wrote: > >> Try using a url for the "target" value, I think what's happening here is >> that couchdb has made an unsharded database (if you see your database on >> localhost:5986/mydb that confirms it). >> >> B. >> >> >> > On 5 Feb 2017, at 13:12, Stephan Wissel wrote: >> > >> > Hi there, >> > >> > I used curl to replicate a database to Couch2 on a Mac posting this >> payload >> > to localhost... : >> > { >> > "target": "mydb", >> > "source": { >> > "url": "https://someserver/mydb" >> > }, >> > "connection_timeout": 60000, >> > "user_ctx": { >> > "name": "stw", >> > "roles": ["_admin"] >> > }, >> > "create_target" : true >> > } >> > >> > Worked like a charm.... except the database doesn't show up in Fauxton >> and >> > can't be addressed from a URL. I tried again without create_target and >> it >> > replicates without an error - so database exists. >> > >> > I checked: the database file mydb.couch got created in >> > ~/Library/Application Support/CouchDB2/var/lib/couchdb but nothing in >> the >> > shards directory >> > >> > When I use Fauxton to create a database manually (e.g. otherdb), the >> file >> > shows up in >> > ~/Library/Application Support/CouchDB2/var/lib/ >> couchdb/shards/[shardnumber] >> > but not the couchdb directory. Also when I swap mydb with otherdb and >> try >> > to replicate (without create_target=true) I get the error "Database not >> > found". >> > >> > What do I miss here? >> > -- >> > Mobile message, pegged on glass. >> > >> > Best regards >> > Stephan H. Wissel >> > http://www.wissel.net/ >> >> -- > Mobile message, pegged on glass. > > Best regards > Stephan H. Wissel > http://www.wissel.net/ > --001a11473feef6530c0547df9767--