Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 56A02C70E for ; Fri, 13 Jul 2012 03:25:16 +0000 (UTC) Received: (qmail 35391 invoked by uid 500); 13 Jul 2012 03:25:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 35076 invoked by uid 500); 13 Jul 2012 03:25:14 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 35018 invoked by uid 99); 13 Jul 2012 03:25:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2012 03:25:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FSL_RCVD_USER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcdcu-couchdb-user@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2012 03:25:06 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SpWUm-0001Ft-J1 for user@couchdb.apache.org; Fri, 13 Jul 2012 05:24:44 +0200 Received: from 76-219-201-97.lightspeed.irvnca.sbcglobal.net ([76.219.201.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Jul 2012 05:24:44 +0200 Received: from bwcode4u by 76-219-201-97.lightspeed.irvnca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Jul 2012 05:24:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: user@couchdb.apache.org From: bsquared Subject: Re: Help needed, Ubuntu 12.04 errors starting couchdb 1.2 Date: Thu, 12 Jul 2012 20:24:31 -0700 Lines: 102 Message-ID: <86hatce428.fsf@gmail.com> References: <86sjcweniw.fsf@gmail.com> <86liioejba.fsf@gmail.com> <3C2D6EE4-853E-4985-832E-9B200AFEBB78@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 76-219-201-97.lightspeed.irvnca.sbcglobal.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:dCwAeYK2fUhg3KctBM5dYEFriIE= X-Virus-Checked: Checked by ClamAV on apache.org Robert Newson writes: > from our INSTALL.Unix file; > > Security Considerations > ----------------------- > > You should create a special `couchdb` user for CouchDB. > > On many Unix-like systems you can run: > > adduser --system \ > --home /usr/local/var/lib/couchdb \ > --no-create-home \ > --shell /bin/bash \ > --group --gecos \ > "CouchDB Administrator" couchdb > > On Mac OS X you can use the Workgroup Manager to create users: > > http://www.apple.com/support/downloads/serveradmintools1047.html > > You must make sure that: > > * The user has a working POSIX shell > > * The user's home directory is `/usr/local/var/lib/couchdb` > > You can test this by: > > * Trying to log in as the `couchdb` user > > * Running `pwd` and checking the present working directory > > Change the ownership of the CouchDB directories by running: > > chown -R couchdb:couchdb /usr/local/etc/couchdb > chown -R couchdb:couchdb /usr/local/var/lib/couchdb > chown -R couchdb:couchdb /usr/local/var/log/couchdb > chown -R couchdb:couchdb /usr/local/var/run/couchdb > > Change the permission of the CouchDB directories by running: > > chmod 0770 /usr/local/etc/couchdb > chmod 0770 /usr/local/var/lib/couchdb > chmod 0770 /usr/local/var/log/couchdb > chmod 0770 /usr/local/var/run/couchdb > > > On 12 Jul 2012, at 22:55, bsquared wrote: > >> Dave Cottlehuber writes: >> >>> On 12 July 2012 22:24, bsquared wrote: >>>> >>>> Hello, >>>> I recently installed the latest couchdb on Ubuntu 12.04. I used the >>>> wiki page referenced in the Install.Unix file as a reference, but I am >>>> getting errors on startup. I have not run the test suite yet as I >>>> figured these errors would have to be corrected first. >>>> >>>> All the errors are similar to this line: >>>> [Thu, 12 Jul 2012 19:36:22 GMT] [error] [<0.20.0>] >>>> {error_report,<0.9.0>, >>>> {<0.20.0>,std_error, "File operation >>>> error: eacces. Target: >>>> ./couch_httpd_misc_handlers.beam. Function: >>>> get_file. Process: code_server."}} >>>> >>>> The couchdb.log file is linked below. >>>> >>>> Thank you. >>>> -- >>>> Regards, >>>> Brian Winfrey >>>> >>>> couchdb.log: http://gist.github.com/3100667 >>>> >>> >>> EACCES = unable to read/write a file. I'm guessing the couchdb beam >>> files need a chmod +r applied for the user that runs couchdb. >>> >>> A+ >>> Dave >>> >> Thanks. >> The file mode for the beam files is 644 (rw-r--r--). The owner is root:root. >> -- >> Regards, >> Brian Winfrey >> > > Thank you. I uninstalled and followed the directions in the INSTALL.Unix file rather than the wiki and it worked as advertised. -- Regards, Brian Winfrey