How to start couchdb and yaws if config is readonly

how to start couchDB? config is READ-ONLY!

some command-line keys to point db to none-default config maybe?


[nix-shell:~]$ couchdb
Apache CouchDB 1.7.1 (LogLevel=info) is starting.
Error opening log file /nix/store/984kmrqx8sjag6nrbggvz1pa259ma9sy-couchdb-1.7.1/var/log/couchdb/couch.log: read-only file system{"init terminating in do_boot",

just the same thing with yaws :frowning:

[nix-shell:~]$ yaws
Erlang/OTP 18 [erts-] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:true]

Eshell V7.3.1.4  (abort with ^G)
=INFO REPORT==== 29-May-2020::19:26:30 ===
Yaws: Using config file /nix/store/g7ybzh6rsccjfxlx1lfddpv6vdzr84bc-yaws-2.0.6/etc/yaws/yaws.conf

=INFO REPORT==== 29-May-2020::19:26:30 ===
Warning, Skip invalid docroots at line 120 : /build

=ERROR REPORT==== 29-May-2020::19:26:30 ===
Failed to set Yaws error report handler: {error,erofs}

=ERROR REPORT==== 29-May-2020::19:26:30 ===
Yaws: bad conf: No valid docroot configured for virthost 'localhost' (port: 8000) terminating

UDP: i found old man-page for CouchDB-1.2.1

       -a FILE
              add configuration FILE to chain

       -A DIR add configuration DIR to chain

       -n     reset configuration file chain (including system default)

nothing from it works :frowning:

Have you checked the many options you can set in configuration.nix?

the piece of my /etc/nixos/configuration.nix file:

 environment.systemPackages = with pkgs; [
  ] ;

is that not suffiicient ? name me the options pls


Though can’t find anything for yaws using the option search.

“Failed to get option data”


Then use nixos-options services.couchdb and tab complete to navigate it’s children and get explanations of those options

$ man configuration.nix

1 Like