Questions tagged [couchdb-2.0]

Use couchdb-2.0 for questions specific to the 2.0 major release of CouchDB and its minor releases.

References

122 questions
0
votes
1 answer

lib in views when using couchdb query server

I've built a custom query server for a custom query language. I've tried to create a design document with views map/reduce. In those map/reduce functions (most importantly in the map function) I want to be able to reference library code. I can see…
Jared Davison
  • 333
  • 3
  • 11
0
votes
0 answers

CouchDB with docker-compose not reachable from host (but from localhost)

I am setting up CouchDB using docker-compose with the following docker-compose.yml (the following is a minimal example): version: "3.6" services: couchdb: container_name: couchdb image: apache/couchdb:2.2.0 restart: always …
0
votes
1 answer

CouchDB seq number changes when adding include_docs=true

While playing around with the _changes API from CouchDB (2.1.1), I noticed that the seq number of the resulting records is different when I add the ?include_docs=true. Is this something expected? If yes, can somebody help me understand the logic…
Frankra
  • 133
  • 8
0
votes
1 answer

CouchDB can't set up HTTPS

I am learning to work with CouchDB and I am usually making Ajax calls in order to communicate with my database. I started getting ' Cross-Origin Request blocked ' and as the reason Access-Control-Allow-Origin , so I decided to work with CouchDB…
WestCoast
  • 39
  • 1
  • 8
0
votes
1 answer

couchdb installed via snapd on OpenSuse not working

I've installed couchDb 2.0 via snap onto OpenSuse Tumbleweed. sudo snap install couchdb Then I ran sudo systemctl enable --now snapd.socket Everything works fine until I logout. In my new session I cannot get couchDb running. Would anyone know…
Rick
  • 485
  • 6
  • 23
0
votes
1 answer

Can't listen on remote address

so I installed couchdb on my VPS using snap, it only listened on 127.0.0.1 and this was not ok for me as It's not practical to ssh on a production environment, I would like it to listen on my external IP so I set in the /var/snap/couchdb/1/local.ini…
Omar Hussein
  • 1,057
  • 2
  • 13
  • 31
0
votes
1 answer

Searching a best practice to register users in CouchDB

Coming from a more traditional web frameworks like Django and a little bit Rails, I am a bit confused about what is the best to register new user in your couchdb backed web app. The registration process should include sending an e-mail with an…
user429960
0
votes
1 answer

call to eval() blocked by csp error shows in couchdb _list

can anyone help me to enable the use of Eval() and Function() in couchdb design document. I am trying to use eval() and Function methods in _list function but it always shows the below error when I call the list { "code": 500, "error":…
0
votes
0 answers

CouchDB 2.1 cluster gives "database failed to load" after brought up on instances with new IP addresses

I have a CouchDB cluster with 9 shards running on 3 nodes (and n=3). I brought down the three instances the nodes were running on and created 3 new instances with new internal IP addresses. After this I was getting "Database failed to load" errors…
Wheat
  • 845
  • 4
  • 12
0
votes
1 answer

Browser does not save authentication cookie obtained from CORS request

==== PROBLEM SOLVED ==== The problem described below was caused by the fact that the property 'withCredentials' was not set properly on the underlying xhr request object. This we cannot see from the trace of requests and responses given below. For…
0
votes
1 answer

couchdb server admin created in script cannot create database in the same script

In the same script, I can succesfully create a server admin on the /_config/admins/, then log in as that admin on the _session endpoint. The response is: {"ok":true,"name":"cor","roles":["_admin"]} However, I then cannot create a database:…
0
votes
1 answer

CouchDB 2.1.1: Internal Server Error

Before installing the CouchApp utility, the Sofa blog app and the sample DB myblogdb together with CouchDB 2.1.1 my CouchDB was working find and I never seeing any Internal Server Error. In the last 2 hours a trojan attached itself as a process to…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
0
votes
1 answer

CouchDB Design Doc...Save Failed: Expression Does Not Eval To a Function

So I'm trying to create a design doc in CouchDB and there's a slight problem. This is for a robotics team scouting system. The design doc is supposed to check if a user has the role "marea". If they do, then they are allowed to input a document into…
ShashJar
  • 31
  • 3
0
votes
0 answers

Continuous _changes monitoring and the limit option behaviour

When monitoring _changes/ resource with the following parameters: feed=continuous&limit=5 I receive top 5 rows on the first query, but later no notifications are received. When there is no limit parameter specified, updates are coming, however I…
Tomasz Plonka
  • 285
  • 4
  • 12
0
votes
1 answer

Filter a subset of fields when replicating in couchdb

I have some documents I would like to replicate to per user databases but only with a subset of fields on the main document. The "selector" option works great to easily select the docs I need but it does not appear to support the "fields" option. I…
imagio
  • 1,390
  • 2
  • 16
  • 27
1 2 3
8 9