-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards #54
Comments
Adding _user db solves the issue. |
Clewlb, |
Just do |
@8ivek, just add a _user database into your couchdb instance(node). Like this: curl -X PUT http://127.0.0.1:5984/_users |
Thanks guys :) |
Thanks , It's worked |
same issue:
|
Setup documentation URL has changed: |
Hey everybody, Is there a reason this isn't done in the dockerfile? It seems like it's something that should be part of the startup script especially if everyone using the container image has to do it before they can use the image. Just curious. Thanks! |
See #142. This is an
issue for upstream CouchDB, not the Docker image.
|
Is there a way to pre-create these missing databases for example using the Edit: Here is how I solved it: Docker File
prod.sh
|
When a solution for apache/couchdb#1977 lands, we'll support it in couchdb-docker. |
@ThibaultJanBeyer just a question (i'm trying your solution)... how can this work, if you're doing PUT before starting the couchdb?
|
because there is a 10 seconds sleep
|
@ThibaultJanBeyer hey, I just started having the services using it calling a script if the tables are not there. I already needed to add some other tables so I make a query against the database and if it returns no tables then I call the generation script. Probably not the best way but I've had it in production for several months and have had no issues with Kubernetes auto-scaling and what not. |
It would appear that this change landed in 3.0 ( Does that mean we should expect something like a Or will the image default to |
No, A very large number of people use the image for clusters. Just mount a |
I'd really love to see a |
@jkhsjdhjs Why doesn't this work? echo "[couchdb]" >10-single-node.ini
echo "single_node=true" >> 10-single-node.ini
docker run -p 5984:5984 -v /path/to/10-single-node.ini:/opt/couchdb/etc/local.d/10-single-node.ini apache/couchdb:3.1.0 Now everything is there:
|
Thanks for your quick reply! With your solution I'd have to switch to an image where the
Afterwards it downloads the docker image just fine, but is unable to start it:
|
You should open a new Discussion on this here: https://github.com/apache/couchdb/discussions as your issue is unrelated to the request filed on this topic, nor is it related to "single node mode." |
For reference, a link to the discussion I just started: apache/couchdb#2948 |
I keep getting these from the docker console when running off the mint couchdb image:
The command:
docker run -p 5984:5984 couchdb
The console log:
[notice] 2018-01-05T03:02:44.977427Z nonode@nohost <0.326.0> -------- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:403) <= mem3_shards:load_shards_from_disk/1(line:378) <= mem3_shards:load_shards_from_disk/2(line:407) <= mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134)
[error] 2018-01-05T03:02:49.978270Z nonode@nohost emulator -------- Error in process <0.3612.0> with exit value: {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,load_shards_from_disk...
These errors keep repeating themselves.
My docker info:
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 1
Server Version: 17.09.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.49-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 1.952GiB
Name: moby
ID: BDAD:JKIS:2H2B:YHQK:HNHE:EPJD:NGVJ:UJCI:44SL:GRKT:WJQZ:AA4O
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 19
Goroutines: 31
System Time: 2018-01-05T03:20:54.59263177Z
EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
My hardware is:
Model Name: MacBook Pro
Model Identifier: MacBookPro11,2
Processor Name: Intel Core i7
Processor Speed: 2.3 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 16 GB
Boot ROM Version: MBP112.0142.B00
SMC Version (system): 2.18f15
Serial Number (system): C02MG1NYFD58
Hardware UUID: A111CE82-C171-525C-884E-137091466666
OS is:
System Version: macOS 10.13.2 (17C88)
Kernel Version: Darwin 17.3.0
Boot Volume: Macintosh HD
Boot Mode: Normal
The text was updated successfully, but these errors were encountered: