It's an ignorable error caused by the code server scanning for .beam files starting in current working dir. The init script should cd to somewhere that couchdb can read, but does not. Using sudo must have a side effect of changing cwd. I strongly advise returning to su but adding a cd call to somewhere couchdb can read.
> On 29 Sep 2015, at 12:12, Tom Chiverton <[email protected]> wrote: > > I've just installed the latest CouchDb (from source, using EPEL's erlang) on > the latest Amazon Linux, and although it starts up, the 'verify your > installation' tests from Futon do not complete, and errors like this: > > [Fri, 25 Sep 2015 15:14:05 GMT] [error] [<0.20.0>] {error_report,<0.9.0>, > {<0.20.0>,std_error, > "File operation error: eacces. Target: > ./couch_os_daemons.beam. Function: get_file. Process: code_server."}} > > are logged. > If I alter the init script run_command() to be > if sudo -i -u $COUCHDB_USER $command ; then > instead of > if su ... > then everything goes smoothly. > > Does anyone know what I might have done wrong ? To add the user I did: > sudo adduser -r --home /usr/local/var/lib/couchdb -M --shell /bin/bash > --comment "CouchDB Administrator" couchdb > sudo chown -R couchdb:couchdb /usr/local/etc/couchdb > sudo chown -R couchdb:couchdb /usr/local/var/lib/couchdb > sudo chown -R couchdb:couchdb /usr/local/var/log/couchdb > sudo chown -R couchdb:couchdb /usr/local/var/run/couchdb > sudo chown -R couchdb:couchdb /usr/local/lib/couchdb > sudo chmod 0770 /usr/local/etc/couchdb > sudo chmod 0770 /usr/local/var/lib/couchdb > sudo chmod 0770 /usr/local/var/log/couchdb > sudo chmod 0770 /usr/local/var/run/couchdb > -- > <spacer.gif> > <spacer.gif> > <spacer.gif> > Tom Chiverton > Lead Developer > <spacer.gif> > e: [email protected] > p: 0161 817 2922 > t: @extravision > w: www.extravision.com > <spacer.gif> > <outlook-logo.gif> > <spacer.gif> > Registered in the UK at: 107 Timber Wharf, 33 Worsley Street, Manchester, M15 > 4LD. > Company Reg No: 05017214 VAT: GB 824 5386 19 > > This e-mail is intended solely for the person to whom it is addressed and may > contain confidential or privileged information. > Any views or opinions presented in this e-mail are solely of the author and > do not necessarily represent those of Extravision Ltd. > <spacer.gif>
