couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Wissel <step...@wissel.net>
Subject Re: Database missing from Fauxton
Date Mon, 06 Feb 2017 16:38:48 GMT
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 <rnewson@apache.org>
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 <stephan@wissel.net> 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/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message