From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 19 00:00:34 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5A991065686 for ; Mon, 19 Dec 2011 00:00:34 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9FCD98FC16 for ; Mon, 19 Dec 2011 00:00:19 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBJ00JIP055677 for ; Mon, 19 Dec 2011 00:00:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBJ00JV9055676; Mon, 19 Dec 2011 00:00:19 GMT (envelope-from gnats) Resent-Date: Mon, 19 Dec 2011 00:00:19 GMT Resent-Message-Id: <201112190000.pBJ00JV9055676@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Scott Seekamp Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFB6C106566B for ; Sun, 18 Dec 2011 23:59:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id CEC2C8FC08 for ; Sun, 18 Dec 2011 23:59:45 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBINxjW7038644 for ; Sun, 18 Dec 2011 23:59:45 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id pBINxjqN038643; Sun, 18 Dec 2011 23:59:45 GMT (envelope-from nobody) Message-Id: <201112182359.pBINxjqN038643@red.freebsd.org> Date: Sun, 18 Dec 2011 23:59:45 GMT From: Scott Seekamp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/163441: CouchDB multiple port installation issues. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2011 00:00:34 -0000 >Number: 163441 >Category: ports >Synopsis: CouchDB multiple port installation issues. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 19 00:00:19 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Scott Seekamp >Release: 8.2-RELEASE >Organization: >Environment: FreeBSD mydomain 8.2-RELEASE FreeBSD 8.2-RELEASE #3: Sat Apr 16 14:48:05 MDT 2011 root@mydomain:/usr/obj/usr/src/sys/CUSTOM amd64 >Description: New installation of CouchDB has the following issues: /usr/local/etc/couchdb/ files in this folder are owned by root which doesn't allow updating by the couchdb user during runtime. CouchDB cannot replace admin passwords in the local.ini file. The line in the rc script: couchdb_flags="-b -a ${couchdb_etcdir}/default.ini -a ${couchdb_etcdir}/local.ini ${respawn} -o ${logfile} -e ${errfile} -p ${pidfile Does not appear to be called or does not set the variables properly. When starting CouchDB using the rc script it never runs in daemon mode and stays in the foreground. >How-To-Repeat: Do a fresh install of CouchDB from ports. For problem number one - attempt to set an admin account in local.ini. It will fail. For problem number two - attempt to start CouchDB with the rc script. It will stay in the foreground even though the script includes the "-b" background flag. >Fix: I was able to fix issue number one by changing: couchdb_flags to command_args in the rc script. This may not be the proper best practices variable names, but it does seem to work. For problem two you can change the file ownership of local.ini from root to couchdb and it appears to fix the issue. Again, I don't know if those are the proper ways to fix the install, but it has worked for me. >Release-Note: >Audit-Trail: >Unformatted: