Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The "Error_messages" page has been changed by matiu. The comment on this change is: Added a gentoo error fix up. http://wiki.apache.org/couchdb/Error_messages?action=diff&rev1=23&rev2=24 -------------------------------------------------- sudo port install couchdb }}} + === Gentoo failed start up error === + + I got this error on gentoo: + + {{{ + =SUPERVISOR REPORT==== 14-Sep-2010::06:34:21 === + Supervisor: {local,couch_server_sup} + Context: start_error + Reason: shutdown + Offender: [{pid,undefined}, + {name,couch_primary_services}, + {mfa,{couch_server_sup,start_primary_services,[]}}, + {restart_type,permanent}, + {shutdown,infinity}, + {child_type,supervisor}] + + + =CRASH REPORT==== 14-Sep-2010::06:34:21 === + crasher: + initial call: application_master:init/4 + pid: <0.32.0> + registered_name: [] + exception exit: {bad_return, + {{couch_app,start, + [normal, + ["/etc/couchdb/default.ini", + "/etc/couchdb/local.ini"]]}, + {'EXIT', + {{badmatch,{error,shutdown}}, + [{couch_server_sup,start_server,1}, + {application_master,start_it_old,4}] } } } } + in function application_master:init/4 + ancestors: [<0.31.0>] + messages: [{'EXIT',<0.33.0>,normal}] + links: [<0.31.0>,<0.7.0>] + dictionary: [] + trap_exit: true + status: running + heap_size: 987 + stack_size: 24 + reductions: 115 + neighbours: + + =INFO REPORT==== 14-Sep-2010::06:34:21 === + application: couch + exited: {bad_return,{{couch_app,start, + [normal, + ["/etc/couchdb/default.ini", + "/etc/couchdb/local.ini"]]}, + {'EXIT',{{badmatch,{error,shutdown}}, + [{couch_server_sup,start_server,1}, + {application_master,start_it_old,4}]} } } } + type: temporary + }}} + + I surmise the problem is that once you've run couchdb as root once, it mucks up all the file ownerships so you can't run it as the couchdb user again. + + So my fix was to totally delete it all and start again, like this (running as root): + + {{{ + /etc/init.d/couchdb stop + killall -9 couchdb + killall -9 beam + emerge --unmerge couchdb + rm -rf /etc/conf.d/couchdb + rm -rf /etc/couchdb + rm -rf /etc/default/couchdb + rm -rf /etc/init.d/couchdb + rm -rf /etc/logrotate.d/couchdb + rm -rf /usr/bin/couchdb + rm -rf /usr/bin/couchjs + rm -rf /usr/lib/couchdb + rm -rf /usr/share/couchdb + rm -rf /usr/share/doc/couchdb-0.10.1 + rm -rf /usr/share/man/man1/couchdb.1.bz2 + rm -rf /usr/share/man/man1/couchjs.1.bz2 + rm -rf /var/lib/couchdb + rm -rf /var/log/couchdb + rm -rf /var/run/couchdb + userdel couchdb + /etc/init.d/couchdb start + }}} + + That's basically a mega uninstall and re-install. + + You might be able to do it with some: + + {{{ + chown couchdb:couchdb -R ... + }}} + + If you really can't loose whatever data and configs you have .. or you could back them up first :) + == Runtime Errors ==
