I haven't attached any COUCHDB_USER variable to my BASH session (unless the couchdb script adds it, but I see no COUCHDB_USER in that script). So, no 'su'ing away from root.
Is there any known problem in between CouchDB and Erlang/OTP R15B01? Any idea, downgrading Erlang version would do any good? CGS On Thu, May 31, 2012 at 5:48 PM, Robert Newson <[email protected]> wrote: > I don't see how that changes the contents of our startup script (where > we do ' if su $COUCHDB_USER -c "$command"; '). If you don't have that > variable declared it won't su, but this error is so often caused by > running as the wrong user that I thought I'd mention it. > > B. > > On 31 May 2012 16:40, CGS <[email protected]> wrote: > > Very sure as I am logged in as root when I start CouchDB (the same > terminal > > session I used for make install which worked without any error). > > > > CGS > > > > > > > > > > On Thu, May 31, 2012 at 5:33 PM, Robert Newson <[email protected]> > wrote: > > > >> Are you sure couchdb's startup script isn't "su"'ing to a different > >> user, though? > >> > >> On 31 May 2012 16:22, CGS <[email protected]> wrote: > >> > Dear lists, > >> > > >> > I recently installed CouchDB 1.2.0 from source on CentOS 5.8 (final) > with > >> > Erlang/OTP R15B01 (installed from source with no errors at > installation). > >> > It reported no errors in configuration (not even warnings) and no > errors > >> in > >> > make && sudo make install. Still, I keep receiving the following > message > >> > when I try to start it: > >> > > >> > Apache CouchDB 1.2.0 (LogLevel=info) is starting. > >> > {"init terminating in > >> > > >> > do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}} > >> > > >> > couch_server_sup.erl (line 98): {ok, Pid} = > supervisor:start_link({local, > >> > couch_server_sup}, couch_server_sup, BaseChildSpecs), > >> > > >> > No log entry. > >> > > >> > I know it returns {error, shutdown} instead of {ok, Pid}, but my > question > >> > is how can I find what exactly is the problem there? Log level to > debug > >> > doesn't add any other info. > >> > > >> > It's not a problem of permissions because I run couchdb as root. I > used > >> > 0.0.0.0 as IP and the default values for the rest. The erl_crash.dump > >> file > >> > doesn't provide other information (or I miss it, so, if anyone wants > to > >> > inspect it, I can provide it). > >> > > >> > Regards, > >> > CGS > >> >
