couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edison Ch" <ediso...@scandiumsc.com>
Subject freebsd 10 couchdb 1.6 wont start
Date Sat, 02 Aug 2014 12:57:22 GMT
Dear all,

I install couchdb 1.6 fresh from port of freebsd 10 and it won't start with the following
errors:

-------
[couchdb@host1 ~]$ couchdb -i
Erlang/OTP 17 [erts-6.1] [source] [64-bit] [smp:8:8] [async-threads:4] [kernel-poll:true]

Eshell V6.1  (abort with ^G)
1> Apache CouchDB 1.6.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,{failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,couch_server,{function_clause,[{couch_passwords,hash_admin_password,["couchdb"],[{file,"couch_passwords.erl"},{line,30}]},{couch_server,'-hash_admin_passwords/1-fun-0-',2,[{file,"couch_server.erl"},{line,148}]},{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},{couch_server,init,1,[{file,"couch_server.erl"},{line,172}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
-------

People told me that error cause by incorrect permissions. I have corrected all permissions
in /usr/local/etc/couchdb, /usr/local/share/couchdb, /var/db/couchdb, /var/log/couchdb, /usr/local/lib/couchdb
to couchdb:couchdb

I even ensure that couchdb user has home to /usr/local/lib/couchdb --

http://docs.couchdb.org/en/latest/install/freebsd.html#installation-from-ports

-- above document shows that couchdb should not have home directory /sbin/nologin - it is
a bit mess up to compare against 

http://couchdb.readthedocs.org/en/latest/install/unix.html#security-considerations

---

I am at my wit ends. I am sure that there is bugs in installation script of couchdb 1.6 in
freebsd 10! I have repeat the process multiple times.

Any help would be great.

Edison  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message