Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Dec 2011 23:59:45 GMT
From:      Scott Seekamp <sseekamp@risei.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/163441: CouchDB multiple port installation issues.
Message-ID:  <201112182359.pBINxjqN038643@red.freebsd.org>
Resent-Message-ID: <201112190000.pBJ00JV9055676@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112182359.pBINxjqN038643>