You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2017/11/18 16:53:51 UTC

[GitHub] csuwildcat opened a new issue #68: Can't create DBs via nano, but can do so via command line

csuwildcat opened a new issue #68: Can't create DBs via nano, but can do so via command line
URL: https://github.com/apache/couchdb-nano/issues/68
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   
   I am running the official docker image for couchdb on Windows, and it starts right up with my app, the dashboard works, and everything seems fine. The issue is that in my app nano's create db calls do not actually create new databases in the instance. When I manually curl to create via the localhost URL, new databases are created without issue.
   
   I don't get any errors or warnings about this, but the issue feels like some sort of config or auth issue where the lib is either writing to the wrong directory or can't write to the one it is supposed to. I can't really explain it, given I can issue commands directly and it works fine.
   
   ## Expected Behavior
   <!--- If you're describing a bug, tell us what should happen -->
   
   When I run `create()`, I should be able to create a new database and view it in the dashboard. 
   
   <!--- If you're suggesting a change/improvement, tell us how it should work -->
   
   ## Current Behavior
   <!--- If describing a bug, tell us what happens instead of the expected behavior -->
   
   Calls to `create()` report no errors, but fail to add a new db to the instance.
   
   <!--- If suggesting a change/improvement, explain the difference from current behavior -->
   
   ## Possible Solution
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
   
   ## Steps to Reproduce (for bugs)
   <!--- Provide a link to a live example, or an unambiguous set of steps to -->
   
   I can provide the exact proj if you need it, but it is the most vanilla install possible:
   
   Docker compose looks like this:
   
   ```
   version: '2'
   services:
     hub:
       build: .
       ports:
         - "3000:3000"
       environment:
         - ENVIRONMENT=dev
         - COUCHDB_URL="http://localhost:5984"
     couchdb:
       image: "couchdb"
       ports:
         - "5984:5984"
   ```
   
   Nano include looks like this:
   
   `const nano = require('nano')(appConfig.dbURL);  // dbURL is the localhost:5984`
   
   <!--- reproduce this bug. Include code to reproduce, if relevant -->
   1. Docker-compose up
   2. Run node proj
   3. Run simple nano `create()`
   4. No errors, just doesn't create a database
   
   ## Context
   <!--- How has this issue affected you? What are you trying to accomplish? -->
   
   Can't use couchdb/nano until this first step works.
   
   ## Your Environment
   <!--- Include as many relevant details about the environment you experienced the bug in -->
   * Version used: 1.6.1
   * Browser Name and version: Node 8.3.0
   * Operating System and version (desktop or mobile): Windows 10 desktop
   * Link to your project: https://github.com/decentralized-identity/hubs/tree/master/implementations/node
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services