single_node=true setting in local.ini does not auto-create system databases. #3257
-
DescriptionI run a CouchDb server in a local container (for local development only). I expect the server to automatically create the system databases on startup (eg. "_users") , because I have the According to the documentation, this should work. But when my server starts up, there are no system databases (even after waiting several minutes). I don't want to initialize the system dbs using the web interface, because I need to automate creation of the server. Steps to ReproduceUse the following dockerfile:
And use the following local.ini file (on local machine, copied into the container). A duplicate of the default couchdb ini file, with added single_node line:
And use the following mycustom.ini file to use different default port. (I attempted to set single_node=true here as well, but no luck)
Then build and run the container. Then open the couchDb Fauxton at http://localhost:31986/_utils/ and view list of databases. Expected BehaviourThe _users database should exist. But no databases exist: Your Environment
Additional ContextThe couchDb container logs: [info] 2020-11-10T13:05:33.247999Z nonode@nohost <0.11.0> -------- Application couch_log started on node nonode@nohost [info] 2020-11-10T13:05:33.350830Z nonode@nohost <0.216.0> -------- Apache CouchDB 3.1.1 is starting. [info] 2020-11-10T13:05:33.350889Z nonode@nohost <0.217.0> -------- Starting couch_sup [info] 2020-11-10T13:05:33.438418Z nonode@nohost <0.11.0> -------- Application couch started on node nonode@nohost [info] 2020-11-10T13:05:33.719995Z nonode@nohost <0.11.0> -------- Application couch_replicator started on node nonode@nohost [notice] 2020-11-10T13:05:38.693711Z nonode@nohost <0.346.0> -------- couch_replicator_clustering : cluster stable [notice] 2020-11-10T13:05:48.457433Z nonode@nohost <0.250.0> -------- rexi_server : cluster stable [notice] 2020-11-10T13:05:53.692250Z nonode@nohost <0.324.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I cannot reproduce this. With the two files provided in a temp directory:
I then launch the container using To be 100% sure I am talking to the container's CouchDB, I run a shell inside of it:
There is a slight delay in creation of those databases, but this is expected for CouchDB. |
Beta Was this translation helpful? Give feedback.
-
Filed #3259 for this bug. |
Beta Was this translation helpful? Give feedback.
I cannot reproduce this. With the two files provided in a temp directory: