The /usr/local/etc/rc.d/couchdb3 file has an error in the path in the start section This HOME=/var/run/couchdb \ ERL_CRASH_DUMP=/var/run/couchdb/erl_crash.dump \ must be: HOME=/var/run/couchdb3 \ ERL_CRASH_DUMP=/var/run/couchdb3/erl_crash.dump \ The complete start section is: couchdb3_start() { # chdir manually as overriding _start() blocks rc.subr defaults cd "${couchdb3_chdir}" /usr/sbin/daemon -p ${pidfile} \ -P ${daemonpidfile} \ -t ${name} \ -u ${couchdb3_user} \ env ERL_FLAGS="${erl_flags}" \ HOME=/var/run/couchdb3 \ ERL_CRASH_DUMP=/var/run/couchdb3/erl_crash.dump \ COUCHDB_FAUXTON_DOCROOT=/usr/local/www/couchdb3 \ COUCHDB_QUERY_SERVER_JAVASCRIPT="/usr/local/libexec/couchdb3/bin/couchjs /usr/local/libexec/couchdb3/share/server/main.js" \ COUCHDB_QUERY_SERVER_COFFEESCRIPT="/usr/local/libexec/couchdb3/bin/couchjs /usr/local/libexec/couchdb3/share/server/main-coffee.js" \ ${command} }
thanks! This will be fixed in the 3.3.2 release landing today.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b70939ee08bde39f31b5dc578a515cef5472fc0f commit b70939ee08bde39f31b5dc578a515cef5472fc0f Author: Dave Cottlehuber <dch@FreeBSD.org> AuthorDate: 2023-05-22 14:12:56 +0000 Commit: Dave Cottlehuber <dch@FreeBSD.org> CommitDate: 2023-05-22 14:12:56 +0000 databases/couchdb3: update to 3.3.2 And fix a long-standing error in rc.d script that affects new installs. PR: 271177 Reported by: Jose Jachuf <jjachuf@gmail.com> Sponsored by: SkunkWerks, GmbH databases/couchdb3/Makefile | 3 +-- databases/couchdb3/distinfo | 6 +++--- databases/couchdb3/files/couchdb3.in | 4 ++-- databases/couchdb3/files/patch-rel_reltool.config | 2 +- databases/couchdb3/pkg-plist | 14 +++++++------- 5 files changed, 14 insertions(+), 15 deletions(-)